Skip to content

ini section includes section templates

Renegade edited this page Dec 4, 2011 · 1 revision

INI section includes / section templates

This specification was automatically generated from a feature request imported into Ares's LaunchPad bugtracker. If you are interested in fleshing out this feature, please update this page.

Original Request

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=InvisibleLow Speed=100 Warhead=SAFlame Report=InitiateAttack OccupantAnim=UCINIT OpenToppedAnim=GUNFIRE

Damage=30 Range=6

PsychicJabE would include all keys from PsychicJab, then override Damage and Range.

Specification details

Goals

  • This needs to be filled by a supporter/drafter of this specification.

Suggestions / Notes

  • This needs to be filled by a supporter/drafter of this specification.

See also

Clone this wiki locally