-
Notifications
You must be signed in to change notification settings - Fork 292
fix: Выбор шасси борга: модули и скин выдаются вместе, скин не ломается после перезахода #3159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ultradyper
wants to merge
4
commits into
AdventureTimeSS14:master
Choose a base branch
from
ultradyper:fix/borg-chassis-selection
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
d1641a2
fix: Выбор шасси борга: модули и скин одним сообщением, фикс ERROR-ск…
ultradyper 03f970a
style: Ревью #3159: короткие и верные комментарии в правках ванили
ultradyper ef953a8
fix: Ревью #3159: подтип применяется в ADT-системе, ванильный хендлер…
ultradyper c7eb8c9
fix: Недостающий using SharedBorgSwitchableSubtypeSystem
ultradyper File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 15 additions & 3 deletions
18
Content.Server/ADT/Silicons/Borgs/BorgSwitchableSubtypeSystem.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ты все ещё кардинально меняешь систему. Мне это не нравится, я думаю можно сделать нормальный багфикс.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ну почему нету никаких уточнений как по другому, что можно сделать? Если тебя не устраивает предлагай.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Посмотри есть ли этот баг у оффов. Если нет, то значит у них это исправлено. Если не исправлено, то значит баг в ADT коде.
Каким образом при рассинхроне могло потеряться одно сообщение, но при этом остаться другое? Это бред, если такое случается, то раз в миллион случаев, а баг постоянный.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Проверил официальный репозиторий (space-wizards/space-station-14) через GitHub API. Факты:
У оффов вообще нет системы скинов боргов: поиск по
BorgSubtypeдал 0 результатов.BorgSwitchableSubtypeComponent,BorgSelectSubtypeMessage,BorgSubtypePrototype- целиком ADT-фича. Баг "двух сообщений" у оффов невозможен в принципе.У оффов выбор шасси атомарный: одно сообщение
BorgSelectTypeMessage-> один обработчик ->SelectBorgModule(модули + внешний вид) ->CloseUiтут же. В нашем форкеCloseUiв ванильномSelectBorgModuleзакомментирован ADT-правкой, а закрытие UI переехало в обработчик второго сообщенияBorgSelectSubtypeMessage. Атомарность разорвана на два независимых шага - в этом первопричина постоянного бага, а не в "рассинхроне" (ты прав, это бред).ERROR-спрайт после перезахода: ванильный клиентский
BorgSystem.UpdateBorgAppearanceбезусловно ставит стейт слоя Light из ванильного шасси (HasMindState/NoMindState), которого нет в RSI скина. У оффов этого бага нет, потому что скинов нет.Вывод: баг целиком в ADT-слое. Текущий фикс (тип и подтип одним сообщением) по сути восстанавливает оффовскую атомарность выбора - это багфикс, а не редизайн системы.