PDA

View Full Version : esecuting cfg files with a script


patchx
05-02-2002, 11:09 AM
can anyone tell me how to execute a .cfg file with a script?

the "run" command doesnt work (must be only for ibi files)

im soooooooo close to having an automatic set saber colour for my sp map i can taste it

-patch

Wired
05-02-2002, 11:15 AM
well in the console you type exec config.cfg... have you tried the exec command?

patchx
05-02-2002, 11:25 AM
yup

i dont think its a command that u can use in the scripts cause it wouldnt even let me compile it with exec in it


-patch

Wired
05-02-2002, 11:26 AM
load, maybe (grasping at straws here!)

patchx
05-02-2002, 11:37 AM
nup
...damn thought i had it

-patch

AKPiggott
05-02-2002, 11:52 AM
I'd be very surprised if you couldn't just set the saber colour from the script.... there could be some sort of saber colour command that we don't know about.... try asking the boffins at Raven.

Irimi-Ai
05-02-2002, 12:56 PM
ok, i'm not exactly clear on what you're trying to do. the following is based off the assumption that you want a specific saber color to be the default for your SP map.

you could do this with scripts, but it really wouldn't be worth it. the player would have to bring down the console in-game and type a command to change it. this would be a clumsy way to do it.

you could also do this with a *.cfg file. this would be clumsy, too. the text of the script file would not have 'exec' in it...you type 'exec X.cfg' in the console to execute the config file. this is what Wired meant...not 'exec' in the config file or script file....'exec' in the console.

the best way to make it change the default would be to change some other files. PM me or something and i'll tell you. i just don't want to waste space here if this is not what you wanted to do.

Irimi-Ai

patchx
05-02-2002, 01:27 PM
yup, wanna change the sp saber color

-patch

AKPiggott
05-02-2002, 03:53 PM
Originally posted by Irimi-Ai
the best way to make it change the default would be to change some other files. PM me or something and i'll tell you. i just don't want to waste space here if this is not what you wanted to do.

Doing it that way would change it for the proper game as well though, plus you will still have the blue trails.

Irimi-Ai
05-03-2002, 12:08 AM
originally, doing what you are talking about was what i was thinking (actually, a little different, but it had the same effect of the trails being blue still).

now, i'm working on another method that will have the same effect as typing in 'sabercolor X' in the console, but have it done automatically and without messing up the saber colors for any other sabers in the game. should be done by tomorrow or the weekend.

Irimi-Ai

patchx
05-03-2002, 12:15 AM
ive made a cfg file that will change the saber color automatically when its executed but i dunno how to execute it in the game without either the player typing in "exec lightsaber.cfg" or tacking it on to the end of their JK2config.cfg file

both option are asking a bit much of a player who has downloaded your sp level and doesnt wanna have to mess around with their .cfg files

does anyone know what tells the game to execute the JK2config.cfg file anyway?

-patch