OpenXcom Forum

Modding => Work In Progress => Topic started by: Churon127 on August 24, 2013, 04:08:33 pm

Title: Newbie help for modding needed...
Post 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
Title: Re: Newbie help for modding needed...
Post by: Yankes on August 24, 2013, 05:31:06 pm
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.
Title: Re: Newbie help for modding needed...
Post by: SupSuper on August 24, 2013, 09:22:32 pm
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.