Skip to content

Дебаг невидимое электричество - #1116

Open
666XxttimurkaxX666 wants to merge 2 commits into
makura-games:masterfrom
666XxttimurkaxX666:add-debug-admin
Open

Дебаг невидимое электричество#1116
666XxttimurkaxX666 wants to merge 2 commits into
makura-games:masterfrom
666XxttimurkaxX666:add-debug-admin

Conversation

@666XxttimurkaxX666

@666XxttimurkaxX666 666XxttimurkaxX666 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Краткое описание

для ивентологов

Ссылка на багрепорт/Предложение

Медиа (Видео/Скриншоты)

Скриншот-20260806-151632 Скриншот-20260806-151640

Changelog

🆑 timur

  • add: добавлены дебаг невидимые кабели, подстанции, лкп, смэс и генераторы

Summary by CodeRabbit

  • Новые возможности
    • Добавлены невидимые отладочные элементы энергосистемы: генератор, SMES, подстанция и APC.
    • Добавлены невидимые кабели высокого и среднего напряжения, а также кабельное расширение для APC.
    • SMES, подстанция и APC поддерживают автоматическую перезарядку.
    • Добавлены русские локализации для всех новых элементов.

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@WardexOfficial, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 56 minutes

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

Wait for the limit to reset, then comment @coderabbitai review or push new commits to the PR.

An organization admin can change what happens after included review limits in Billing.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 8e2374b6-6403-4a57-a862-c9be70d916ab

📥 Commits

Reviewing files that changed from the base of the PR and between 1a8e35a and 1cb2783.

📒 Files selected for processing (2)
  • Resources/Locale/ru-RU/_prototypes/_scp/entities/structures/debug_power.ftl
  • Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml
📝 Walkthrough

Walkthrough

Добавлены семь невидимых DEBUG-прототипов энергетических устройств и кабелей. Устройства получили параметры генерации или автоматической перезарядки. Для всех прототипов настроены физические фикстуры. Добавлена русская локализация.

Changes

Отладочные энергетические прототипы

Layer / File(s) Summary
Невидимые DEBUG-кабели
Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml, Resources/Locale/ru-RU/_prototypes/_scp/entities/structures/debug_power.ftl
Добавлены невидимые кабели MV, APC extension и HV. Настроены узлы питания, типы кабелей, прототипы после разрезания и локализация.
Невидимые источники и накопители энергии
Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml, Resources/Locale/ru-RU/_prototypes/_scp/entities/structures/debug_power.ftl
Добавлены генератор, SMES, подстанция и APC. Генератор получил мощность 300000 и плавное наращивание питания. SMES, подстанция и APC получили автоматическую перезарядку с rate 50000.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested labels: 🧊 Нет C# 🧊, 📚 Изменения: Локализация 📚, 📦 YAML | Прототип 📦

Suggested reviewers: wardexofficial

🚥 Pre-merge checks | ✅ 11
✅ Passed checks (11 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed Заголовок точно отражает основную цель изменений: добавление отладочных невидимых электрических сущностей.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Ss14 Bridge Sync ✅ Passed PR изменяет только два файла в Resources; изменений в .agents/rules, .agents/skills или требуемых bridge-каталогах нет.
Ss14 Fork/Project Folder Selection ✅ Passed Активный форк — Fire: remote содержит project-fire, а оба новых файла находятся в _Scp/_scp; файлов в _Sunrise и Sunrise-маркеров в изменениях нет.
Ss14 C# Rules ✅ Passed Проверка неприменима: в изменениях PR присутствуют только два файла .ftl и .yml; изменённых файлов .cs нет.
Ss14 Yaml/Ftl Rules ✅ Passed Проверены оба изменённых файла: все ID CamelCase с префиксом Scp, компоненты без суффикса Component, FTL-ключи ent- и локализации соответствуют прототипам.
Ss14 Prototype ↔ Ftl Parity ✅ Passed Все 7 новых prototype ID имеют соответствующие ent-* ключи в ru-RU; для каждого задан .suffix и .desc, включая наследование описаний базовых сущностей.
Ss14 Prediction Safety ✅ Passed Проверка неприменима: PR изменяет только Resources/.yml и Resources/.ftl; Content.Shared, предсказанный ввод и общий код не изменены.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml`:
- Around line 5-18: Добавьте в каждый DEBUG-прототип кабеля компоненты CableVis
с точкой подключения node: power и CableVisualizer с соответствующим
statePrefix: mvcable_, lvcable_ или hvcable_. Используйте эти компоненты рядом с
существующими NodeContainer и Cable, чтобы визуализация обновляла спрайт по
ConnectedMask вместо фиксированного state.
- Around line 7-8: Исправьте ссылки sprite в прототипе debug_power, включая
состояния mvcable_15, lvcable_15 и hvcable_15: используйте существующие
fork-ассеты из Resources/Textures/_Scp/Structures/Power/Cables вместо
несуществующих путей _Scp/Structures/Power/Cables, либо добавьте отсутствующие
ассеты по этим путям.
- Around line 1-145: Run the mandatory localization validation for the YAML
prototypes in debug_power.yml, checking FTL coverage for every player-facing
prototype ID introduced or changed, including ScpCableMVInvisible,
ScpCableApcExtensionInvisible, ScpCableHVInvisible, ScpDebugInvisibleGenerator,
ScpDebugInvisibleSMESRecharging, ScpDebugInvisibleSubstationRecharging, and
ScpDebugInvisibleAPCRecharging. Add or update the corresponding localization
entries as required by the validation.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 0e61843e-aeaa-43d4-871e-258d18d4d2c5

📥 Commits

Reviewing files that changed from the base of the PR and between 467aa52 and e288b33.

📒 Files selected for processing (2)
  • Resources/Locale/ru-RU/_prototypes/_scp/entities/structures/debug_power.ftl
  • Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml

Comment thread Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml
Comment thread Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml
Comment thread Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml
Comment on lines +39 to +40
- type: Visibility
layer: 2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я сомневаюсь в мерже из-за компонента - type: Visibility, поэтому пожалуйста, протестируй это очень детально, так как компонент не такой уж и стабильный может быть

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants