aliens

Author Topic: Newbie help for modding needed...  (Read 4426 times)

Offline Churon127

  • Squaddie
  • *
  • Posts: 2
    • View Profile
Newbie help for modding needed...
« 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

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: Newbie help for modding needed...
« Reply #1 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.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Newbie help for modding needed...
« Reply #2 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.
« Last Edit: September 06, 2013, 05:46:23 am by SupSuper »