aliens

Author Topic: Can a mod have two .rul files with an items: section?  (Read 1575 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Can a mod have two .rul files with an items: section?
« 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?

Offline Nord

  • Commander
  • *****
  • Posts: 1625
  • The Gate is open.
    • View Profile
Re: Can a mod have two .rul files with an items: section?
« Reply #1 on: April 29, 2020, 01:50:17 pm »
yes, in alphabetic order.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Can a mod have two .rul files with an items: section?
« Reply #2 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.

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: Can a mod have two .rul files with an items: section?
« Reply #3 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.