INI section includes / section templates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ares |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Sometimes you need to create multiple sections that contain largely the same keys and values, causing a lot of copy & paste work and making INIs large as hell. You see that a lot throughout INI files, in fact, it applies to most units.
I would like to introduce a possibility to make a section "include" another, so that the latter serves as a template to the former. All keys defined in the template section would be copied to the using section.
This would, of course, only be possible if the template section has been defined before.
As for the semantics, I'm thinking of the following example:
[PsychicJab]
Damage=25
ROF=15
Range=4.5
Projectile=
Speed=100
Warhead=SAFlame
Report=
OccupantAnim=UCINIT
OpenToppedAnim=
[PsychicJabE]
Damage=30
Range=6
PsychicJabE would include all keys from PsychicJab, then override Damage and Range.
I support this, and agree with the reasoning behind it. I believe this would be a very useful feature if implemented.