OpenXcom Forum
Modding => Work In Progress => Topic started by: Churon127 on August 24, 2013, 04:08:33 pm
-
Hi guys,
Sorry but i cant find the answer to a very basic problem I got:
I can open files with my Notepad++ (and Change the language to YAML).
I can Change the values of entries (for instance in a savegame).
I CAN NOT however add a line in a file without the game crashing immediately.
For instance I wanted to add an autofire mode for the heavy leaser. So i went to the ruleset and copy pasted the 2 lines that the heavy laser is missing which are present with the normal laser (accuracyAuto: 46 and tuAuto: 34)
As soon as i do that the game doesnt start anymore and i get the message "blabla error at the lines i added: illegal tab when looking for identification")
Same when I add items in savegames or just give a soldier of mine a different armor - it's just weird
-
YAML is very strict about white spaces, if you add 2 spaces before before some line you change its meaning.
I didnt use YAML allot but if you change space to tab it break file probably.
-
Be sure to check these options so Notepad++ doesn't add tabs: https://www.ufopaedia.org/index.php?title=File:OpenXcomNotepadYaml.png
Enable "show all characters" or search for "\t" to find any problematic ones. YAML only supports spaces, and everything must line up correctly.