Comment 4 for bug 895535

Revision history for this message
DCoder DCoder (dcoder1337) wrote :

They do enumerate automatically, but you still need to have unique value on the left hand side. Which can be a problem or at least a complication when [#include] comes into play. Just yesterday pd tripped over this himself -
;rules
[#include]
000=rules_General.ini
; stuff
100=rules_Sides.ini
; stuff

;rules_Sides.ini
[#include]
0=rules_Side_Soviet.ini
1=rules_Side_Allied.ini
2=rules_Side_Yuri.ini
3=rules_Side_Other.ini

; rules_Side_Soviet.ini
;Soviet stuff
[#include]
0=rules_Side_Soviet_Infantry.ini
1=rules_Side_Soviet_Vehicles.ini
2=rules_Side_Soviet_Aircraft.ini
3=rules_Side_Soviet_Buildings.ini
.... oops, the [#include] entries in Soviet overwrote those in Sides. The idea itself is good, I just don't want to code it myself.