Repository navigation
Данные: server.xml → data/server.json (награды квестов, требования, таймеры) - #43
Merged
Merged
Conversation
…аймеры) parse_config.py разбирает и server.xml — та же склейка документов inferno (477 штук) с серверной частью данных, которую читает встроенный в клиент сервер игры: 21 секция, 11 782 сущности, в том числе 2 431 действие — награды всех квестов. config.json и локали не изменились. Тесты: синтетический server.xml и эталонные итоги v1.3.12. Refs #30 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks
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.
Что сделано
tools/parse_config.pyразбираетconfig/server.xmlтем же многодокументным загрузчиком, что иconfig.xml.parse_config(name)пишетdata/<name>.jsonиdata/<name>_sections.json.data/server.json(11 МБ) иdata/server_sections.json: 21 секция, 11 782 сущности:actions— 2 431 действие, награды всех 2 355 квестов (число совпадает с разборомlibinferno.so);requirements(5 105),timings(1 329),contracts(896);buildings,soldiers,units,behaviors;league_stage_technologies,tickersи др.server.xmlс атрибутомserver="1",configиserverне смешиваются;test_data.py— сводка и эталон v1.3.12 для обоих файлов (21 / 11 782 / 2 431).server.jsonи абзац оserver.xmlв «Модели данных».Зачем
Задачи экономики (#13) и квестов (#26) теперь можно делать без
raw/: данные лежат в git.Как проверено
config.json,config_sections.jsonи локали после пересборки байт в байт прежние.ruff check .проходит, 78 тестов зелёные.Первый пункт #30 закрыт. Связка действий с квестами и требованиями остаётся в задаче.
Refs #30
🤖 Generated with Claude Code