Skip to content

Support new list-based ExcelOutput JSON format - #3

Open
KXAzuki wants to merge 1 commit into
mrzjy:mainfrom
KXAzuki:starrailjsonl-newformat
Open

Support new list-based ExcelOutput JSON format#3
KXAzuki wants to merge 1 commit into
mrzjy:mainfrom
KXAzuki:starrailjsonl-newformat

Conversation

@KXAzuki

@KXAzuki KXAzuki commented May 23, 2026

Copy link
Copy Markdown

Summary

  • Game data ExcelOutput/*.json files changed from a dict ({id: info}) to a list ([{...}]) format, which broke parsing with AttributeError: 'list' object has no attribute 'items'.
  • Convert each loaded list back into an ID-keyed dict right after json.load, so the rest of the parsing logic works unchanged.
  • Affected files: MessageContactsCamp, MessageContactsConfig, MessageItemConfig, MessageGroupConfig, MessageSectionConfig (in util/message_util.py) and TalkSentenceConfig (in util/common.py).

Test plan

  • python get_dialogues.py --lang=CHS --repo=<data repo> runs to completion
  • Output: messages 729 / train_visitor 369 / story 312 dialogues generated

Game data ExcelOutput files changed from dict ({id: info}) to list
([{...}]) format. Convert each list to an ID-keyed dict after loading
so the existing parsing logic works unchanged.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant