PDA

View Full Version : How can I define startupScript in the config ?



RN Malboeuf
Jan 17 2007, 16:03
there's a part in the config.cpp

Quote[/b] ]scriptsPath = "scripts\";
startupScript = "";
scriptsPath is a path in th ui.pbo.
How can I define that startupScript ? I want it to be somewhere in the mod folder - I don not like to copy the whole ui.pbo.
1. startupScript = "modfolder/scriptsfolder/global_init.sqs" - not worky
2. startupScript = "global_init.sqs" and tried to place the script into
modfolder/scripts/global_init.sqs
modfolder/dta/scripts.pbo/global_init.sqs
modfolder/ui/global_init.sqs
3. placing custom ui.pbo (with this only script) into modfolder/addons/ ruins game design http://forums.bistudio.com/oldsmileys/sad_o.gif
I'm just out of ideas... How can I define this script to be in a mod ?

Planck
Jan 18 2007, 16:03
Did you try:

startupScript = "modfolder\scriptsfolder\global_init.sqs"

or

startupScript = "\modfolder\scriptsfolder\global_init.sqs"


Planck

RN Malboeuf
Jan 18 2007, 20:17
No luck in both ways. I guess I have to do smth with scriptsPath... but can't see a way to define it not in ui.pbo

Jackal326
Jan 18 2007, 21:42
Are you using '\' or '/' because OFP (and ArmA of course) prefer the use of ''\ rather than '/'

gmJamez
Jul 7 2007, 13:21
I'm struggling with the same task. Did you ever figure is out?