Author Topic: Sections in acsetup.cfg  (Read 1497 times)

Radiant

  • Mittens Knight
  • AGS Baker
  • Return once more to the Two Kingdoms!
    • I can help with publishing
    • I can help with story design
    • Radiant worked on one or more games that won an AGS Award!
    •  
    • Radiant worked on one or more games that was nominated for an AGS Award!
Sections in acsetup.cfg
« on: 05 Oct 2016, 12:43 »
I'm curious, how does acsetup.cfg deal with a layout like this,

Code: Adventure Game Studio
  1. [sound]
  2. some_stuff=1
  3. [misc]
  4. some_other_stuff=2
  5. [sound]
  6. final_stuff=3

In other words, two sections 'sound'. Does that work? Do the section headers matter? Should I merge them?

Crimson Wizard

  • Local Moderator
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Lifetime Achievement Award Winner
    • Crimson Wizard worked on one or more games that won an AGS Award!
    •  
    • Crimson Wizard worked on one or more games that was nominated for an AGS Award!
Re: Sections in acsetup.cfg
« Reply #1 on: 05 Oct 2016, 13:02 »
Not sure about previous versions, latest versions should merge them on reading.
...I think I tested that out before, but I can test again just in case.

OTOH, current engine actually supports multiple config files, read-only one in game installation folder (as default, and for backwards compatibility), and writeable in user "saved games" folder (this currently is Windows setup, other ports may have only one file in practice). Their contents get merged without problem, second config values overriding previous one, but not erasing options that do not exist in second.
« Last Edit: 05 Oct 2016, 13:05 by Crimson Wizard »

Radiant

  • Mittens Knight
  • AGS Baker
  • Return once more to the Two Kingdoms!
    • I can help with publishing
    • I can help with story design
    • Radiant worked on one or more games that won an AGS Award!
    •  
    • Radiant worked on one or more games that was nominated for an AGS Award!
Re: Sections in acsetup.cfg
« Reply #2 on: 05 Oct 2016, 13:05 »
Not sure about previous versions, latest versions should merge them on reading.
...I think I tested that out before, but I can test again just in case.

Can you tell me as of which version it merges them?

Crimson Wizard

  • Local Moderator
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Lifetime Achievement Award Winner
    • Crimson Wizard worked on one or more games that won an AGS Award!
    •  
    • Crimson Wizard worked on one or more games that was nominated for an AGS Award!
Re: Sections in acsetup.cfg
« Reply #3 on: 05 Oct 2016, 13:16 »
Can you tell me as of which version it merges them?

According to git history, the new ini reading code was added since 3.3.5.0 and 3.4.0.7 (which was first 3.4 alpha that included 3.3.5 changes).