Starfield
0 of 0

File information

Last updated

Original upload

Created by

Ice9000

Uploaded by

ice9000

Virus scan

Safe to use

Tags for this mod

About this mod

This is not a guide, this is a python script to convert the Starfield_en_en.xml, mentioned in A step-by-step guide on AI voice modding, to a JSON file using your specified NPC path. Also downloads for all constellation companions converted JSON dialogue data.

Permissions and credits
Note: This is not the guide. This is just a script to generate a JSON file for A step-by-step guide on AI voice modding.

A python script to convert the Starfield_en_en.xml, mentioned in A step-by-step guide on AI voice modding, to a JSON file using your specified NPC path. You can do this for all known NPC paths. Citizens, enemies, other companions, etc. Use their guide and generate your JSON dialogue file similar to theirs using this script.

Included in misc downloads are all constellation companion JSON dialogue data.

Instructions:
  • In terminal, I use VSCode terminal, but you can use command prompt just make sure your path to the script is correct.
  • set the variable npc_name = "yournpcpathgamefolder" EX for Sarah Morgan npc_name = "npcfsarahmorgan" --- You can change this using Notepad++ if you don't use an IDE.
  • enter into terminal "py xml_to_JSON.py" with no quotes
  • script will generate elevenlabs_dictionary.json and a copy of your npcpath.json for backup
  • you may want to check your JSON file for unicode characters. I cannot automate this as it will delete unicode characters from the JSON dialogue data. For example "é" is interpreted as \u00e9 when JSON is dumped you'll want to convert that manually to "e"
  • continue following A step-by-step guide on AI voice modding

I'm a big fan of making modding accessible so do whatever you want with these resources. Get out there and make some good mods!