OpenXcom Forum

Modding => Help => Topic started by: The Martian on April 29, 2020, 12:46:05 pm

Title: Can a mod have two .rul files with an items: section?
Post by: The Martian on April 29, 2020, 12:46:05 pm
Can two .rul files each with an items: section exist in the same Mod's ruleset folder?

Also, if the above is possible, what determines which file's items: list is loaded first?
Title: Re: Can a mod have two .rul files with an items: section?
Post by: Nord on April 29, 2020, 01:50:17 pm
yes, in alphabetic order.
Title: Re: Can a mod have two .rul files with an items: section?
Post by: Meridian on April 29, 2020, 02:30:25 pm
You cannot count on alphabetical order.

Different platforms (win/android/mac/etc.), locales (en/ru/sk/etc.) and load structures (e.g. ziploader) will have DIFFERENT order.

Don't make anything depend on alphabetical order, ever.
Title: Re: Can a mod have two .rul files with an items: section?
Post by: The Martian on May 02, 2020, 08:38:13 am
To keep the order as desired I'll make use of the listOrder: variable.

Thank you for the help.