Repository navigation
limits: drowning is not a SYSERR, and name the char who is really lost - #4245
Merged
Merged
Conversation
"SYSERR: Pulse character in kNowhere." fired twice in a minute today and
four times in a week, always on the same path:
Player <name> died under water (room 33114)
[charlife] AddToExtractedList <name> #-1 room 33114
SYSERR: Pulse character in kNowhere.
[charlife] ExtractCharFromWorld <name> #-1 room 0
Death calls AddToExtractedList, which sets purged and pulls the character
out of the room, while the descriptor stays kPlaying until the end of the
pulse. beat_points_update walks the descriptor list in that window, finds
in_room == kNowhere and shouts. Skipping the character is right; calling
it an error is not.
Now the line is logged only for a character nobody is extracting -- the
case where somebody really did lose a player outside the world -- and it
carries the name, without which there was nothing to go on.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Что видно в логе
За неделю
SYSERR: Pulse character in kNowhere.сработал четыре раза, два из них сегодня с разницей в 38 секунд. Окружение одно и то же в каждом случае:Утонул — и сразу строка.
Почему
AddToExtractedList(world_characters.cpp:102) ставитset_purged(true)и вызываетRemoveCharFromRoom, то естьin_roomстановитсяkNowhere. Дескриптор при этом до конца пульса остается вkPlaying.beat_points_updateидет поdescriptor_list, попадает в это окно, видитin_room == kNowhereи ругается.Пропустить такого чара — правильно,
continueна месте. Называть это ошибкой — нет: это нормальный однопульсовый зазор между смертью и удалением.Вторая половина беды — строка не называет никого. Если чар действительно потерялся вне мира, по ней не узнать, кто это, и дальше идти некуда.
Правка
SYSERRостается только для чара, которого никто не удаляет (!purged()) — это и есть настоящая потеря — и теперь несет имя.Проверка
build_nounity(-Dunity=off), 932 теста, 929 прошли, 3 отключены штатно. Это же пятый коммит по счету,build_nounity/.last_checked_shaобновлен.🤖 Generated with Claude Code