Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Multiple conf.ini  (Read 3071 times)

0 Members and 1 Guest are viewing this topic.

4ent

  • member
  • Offline Offline
  • Posts: 70
Multiple conf.ini
« on: April 06, 2012, 04:53:50 AM »

Hi,
as you know various dynamic campaigns has various dgen section of conf.ini
It is possible to make script for automatic changing conf.ini when switching from one campaign to another?
Logged

skyrish10

  • member
  • Offline Offline
  • Posts: 29
Re: Multiple conf.ini
« Reply #1 on: December 31, 2012, 05:31:44 AM »

nope, it will crash the campaign generator
Logged

4ent

  • member
  • Offline Offline
  • Posts: 70
Re: Multiple conf.ini
« Reply #2 on: January 01, 2013, 03:00:05 PM »

Ok i understand
Logged

SAS~Monty27

  • SAS Team
  • member
  • Offline Offline
  • Posts: 3850
  • Action and Adventure!
    • SPEEDMACHINE
Re: Multiple conf.ini
« Reply #3 on: January 11, 2013, 05:31:00 PM »

A Batch file is possible.  Back in the day before my 8GB Quadcore Nvidea Kickass Rig I ran several CONF.INI's (depending on the flight map), switching them in and out through a sub menu before launch.  This isn't really automatic though...
Logged

SAS~Gerax

  • SAS Team
  • member
  • Offline Offline
  • Posts: 4765
Re: Multiple conf.ini
« Reply #4 on: January 12, 2013, 12:15:49 AM »

A Batch file is possible.

When not familiar with making your own batch procedure make it via jsgme.

Make yourself the relevant config.inis, put them in folders with easy to remember
names and put this folders into the jsgme directory. Choose the right one before
starting your DGEN session.  ;)
Logged
i7-13700K, MSI RTX4090, Kingston 64GB, Asus Z790-P, Crucial SSD 1TB, Kingston SSD 4TB;

SAS~Monty27

  • SAS Team
  • member
  • Offline Offline
  • Posts: 3850
  • Action and Adventure!
    • SPEEDMACHINE
Re: Multiple conf.ini
« Reply #5 on: January 12, 2013, 01:23:15 AM »

A Batch file is possible.

When not familiar with making your own batch procedure make it via jsgme.

Make yourself the relevant config.inis, put them in folders with easy to remember
names and put this folders into the jsgme directory. Choose the right one before
starting your DGEN session.  ;)
Oh excellent solution, and me being a JSGME advocate from start... ;D
Logged

marcost

  • Modder
  • member
  • Offline Offline
  • Posts: 1086
  • Keep calm and run away
Re: Multiple conf.ini
« Reply #6 on: January 12, 2013, 03:06:18 AM »

Hi if you want to have a go at a batch file, here is a simple one that will do what you want:

@echo off
xcopy /s/e/y  LOCATION OF THE CONF.INI YOU WANT TO LOAD LOCATION OF IL2 ROOT FOLDER
cd LOCATION OF IL2 ROOT FOLDER
start il2fb.exe

Paste the above into notepad, save and rename the file .bat rather than .txt

Double-clicking this file will copy your conf.ini from a safe location (create a folder somewhere with each one in) and paste it into IL2, overwriting the one that is there already. It then starts IL2 so is pretty much automatic. You can create a shortcut to this .bat file to launch it from your desktop (right click, create shortcut).

Remember to backup your original conf.ini before running the .bat as it will overwrite it! You can create as many .bat as you want, each one loading a different conf.ini

Make sure there are no spaces in folder names or the .bat won't work

Test on a backup of your IL2 folder before trying on your main one! 

Here is a real example, just to make clear where the file addresses go (obviously yours will be different):

@echo off
xcopy /s/e/y  E:\IL2_1946\CONFSWITCHER\CONFDGEN E:\IL2_1946
cd E:\IL2_1946
start il2fb.exe

Above I have created a folder in IL2 root folder, called 'CONFSWITCHER'. Within 'CONFSWITCHER' folder is a folder for each conf.ini version I want and the conf.ini file is there. The above .bat loads my conf.ini for dgen campaigns which I have put in a folder called 'CONFDGEN'.

The easiest way to get the address of your files and folders is to navigate to them with Windows Explorer, left click on the address bar at the top so that the address shows, right click and copy. then paste into the .bat file

.bat files are useful and fun when you get used to them, worth a play if you haven't used them before. You can name the .bat file whatever you want so you know what it does and if you create a shortcut to it, you could change the icon on the shortcut to make it clear what it does.

Regards,

M
Logged

4ent

  • member
  • Offline Offline
  • Posts: 70
Re: Multiple conf.ini
« Reply #7 on: January 12, 2013, 11:47:01 AM »

Thank you
Logged

SAS~Gerax

  • SAS Team
  • member
  • Offline Offline
  • Posts: 4765
Re: Multiple conf.ini
« Reply #8 on: January 12, 2013, 12:03:09 PM »

Oh excellent solution, and me being a JSGME advocate from start... ;D
And normally I'm the one avoiding JSGME and making me tricky batches wherever I can ..
To be flexible is the magic word.  or "pragmatic".  ;D  ;)
Logged
i7-13700K, MSI RTX4090, Kingston 64GB, Asus Z790-P, Crucial SSD 1TB, Kingston SSD 4TB;
Pages: [1]   Go Up
 

Page created in 0.072 seconds with 21 queries.