PDA

View Full Version : SIOC question



barkay
10-07-2008, 04:53 AM
Dear fellow members,

I have noticed something quite interesting right after I have started to work on a new script for my airplanes in FSX. No matter which .ssi file I load SIOC still reads sioc.ini file by default causing the wrong values to be entered. Normally it should also change the .ini file dependng on the airplane used. However no matter I didi helped the issue. By the time sioc loads it automatically goes to my previos script which I have given in here and loads the sioc. ini file. Is anybody tried to use different scripts for different airplanes together with different named .ini file other than SIOC.ini?

Best Regards,

barkay

jmig
10-07-2008, 08:08 AM
Dear fellow members,

I have noticed something quite interesting right after I have started to work on a new script for my airplanes in FSX. No matter which .ssi file I load SIOC still reads sioc.ini file by default causing the wrong values to be entered. Normally it should also change the .ini file dependng on the airplane used. However no matter I didi helped the issue. By the time sioc loads it automatically goes to my previos script which I have given in here and loads the sioc. ini file. Is anybody tried to use different scripts for different airplanes together with different named .ini file other than SIOC.ini?

Best Regards,

barkay

You have to change the name from SIOC.INI to your file's name in the config section of SIOC.INI. Here is a section of my SIOC.INI with the test program I am using set as the script.

[ Fichero de configuracion ]
[ Configuration File ]
CONFIG_FILE=.\minitest.ssi
[Minitest]

Hope this helps,

kiek
10-07-2008, 10:42 AM
Is anybody tried to use different scripts for different airplanes together with different named .ini file other than SIOC.ini?

Hi,
There is only one sioc.ini file for sioc.exe in use. You cannot use other names then sioc.ini ...

If you want sioc to load a different script you have to change the CONFIG parameter in SIOC.ini like John said.

If you need other settings in sioc.ini per aircraft you have to make and keep different sioc.ini files. You can either manually rename the right one to sioc.ini (before starting sioc.exe) or write a good old MS DOS batch job that does that for you.

Nico

barkay
10-07-2008, 12:40 PM
Gentlemen,

Thanks to both of you for answers. Subject understood. Different sioc.ini files to be put when flying with different airplanes by renaming.

Once again thank you very much

Best regards,

barkay

pdpo
10-08-2008, 03:02 AM
What I have done also is that in my SIOC script itself I read the first 4 bytes of the planes
identification. Depending on the identification I set a local value called Lv_PlaneId to a certain
value and some of the script logic depends on the type of plane it loaded in the FS.
This even works then when you load another plane in FS, the script sees this and adapts
its functionality. In the offset where the identification changes you can initialise whatever
is needed to transition smoothly the script from one plane type to another.

Greetings Peter

kiek
10-08-2008, 03:31 AM
Very clever Peter!

However, the penalty of your aproach is that your SIOC script can become very complicated due to the fact it has to support several planes. I prefer to have simple scripts.

I only fly the 767 but have different scripts for FS9 and FSX, I'll give it a try to merge the two. But how do you comment out Vars that are not needed for a certain type? Otherwise my lekseecon program will still see them as active and will try to connect them with the Level-D ...(but wrong type..)

Nico

jmig
10-08-2008, 07:45 AM
I love the idea Peter. I too fly a lot of different airplanes.

My problem would be trying to remember what the switches do in different airplanes. I can see it now, "Let's see to open air refueling door I flip this one. Oh crap! I just jettisoned the external fuel tanks."

:D

I never use the selective aircraft feature in FSUIPC for that reason.

pdpo
10-08-2008, 03:29 PM
Niko, Jimig,

you are both right .....
my script has become very large and complicated ....
pressing certain switches can do different things in different aircraft but this I also try to avoid as much as possible. But for example I tried to map my hardware FCU to a normal
FS autopilot. So when I fly my airbus it works for project magenta FCU steering. When I change to the learjet/boeing the fcu steers the FS autopilot.
Some things are doable this way some not...
I asked ones to Manuel Velez to allow to give the ini file name as parameter to the program
but he did want to do it... Should not be that much work...

Greetz Peter