Problems with CFG Files and creating scripts -1 reply

Please wait...

Guest

I didn't make it!

0 XP

 
#1 12 years ago

Hello everyone. :cya: I am new to writing scripts and do not really have a full understanding of the correct 'language' to use - I have simply looked at other peoples' scripts and attempted to create one of my own. I have tried to make a .cfg file that will cycle through all available colors for the saber in JKA. I have seen one or two people in servers, whose sabers cycle through all possible colors - whilst they are fighting. my 'script' seems to work - but only to a certain degree ; The saber will change only three times, then the following error message pops up on screen : too many info changes, last info ignored Also, whilst the saber is changing clolours, my character will continue moving and will not stop untill the 'script' has finished executing. I am obviously doing something wrong, or have used the incorrect variables in the 'script'. PLEASE can anyone with knowledge of scripting/cfg file creation, tell me why I receive the error and/or how to resolve the problem? I am keen to learn how to create a working script and would also like to learn how to create a looping command within such a script. If neccessarry, I am willing to share/post whatever I have done so far so that you can identify any errors I have made. Thanks for your patience!




Mikouen VIP Member

What?

145,590 XP

3rd September 2005

4 Uploads

11,730 Posts

2 Threads

#2 12 years ago

I'm pretty sure that's just a limitation of the engine, although scripting is hardly my forte. You'd get a similar message if you bound two keys to switch to a different model and kept quickly toggling. As for the people in servers who have the multi-color sabers, I believe it's a mod of some kind, although I've forgotten the details. I know ForceMod III came with that as a choice on the saber menu, so if you're playing ForceMod III, then there's your answer. If not, maybe someone else can help find what you're looking for...


I don't know how, and I don't know why, but this is totally Sheep's fault.



Mikouen VIP Member

What?

145,590 XP

3rd September 2005

4 Uploads

11,730 Posts

2 Threads

#3 12 years ago

Sorry, double posted. Got a bit of a lag spike...

Damn you, Karoo Broadband 750. >_


I don't know how, and I don't know why, but this is totally Sheep's fault.



Bluestormtrooper

>You

50 XP

13th March 2005

0 Uploads

1,752 Posts

0 Threads

#4 12 years ago

Yeah, ja+ has a sabercolor command they problay binded keys to.




ArcticMonkey

I want to be like the Admins

50 XP

19th February 2006

0 Uploads

225 Posts

0 Threads

#5 12 years ago

Well I know in MBII that happens a lot when you change class but... nothing happens it just goes on.... and the info DOES get in...




Mikouen VIP Member

What?

145,590 XP

3rd September 2005

4 Uploads

11,730 Posts

2 Threads

#6 12 years ago

The sabercolor command is in baseJKA, and I don't think that's what he means. I think he wants his saber to constantly flash between all the colors while he's playing.


I don't know how, and I don't know why, but this is totally Sheep's fault.



Guest

I didn't make it!

0 XP

 
#7 12 years ago

Hiya Tenrai, bobaandy and ArcticMonkey. Thanks for your input. I have managed to find a script that will do what I want, ie: cycle the sabers colors, repeatedly whilst fighting. I found it on thte Lucas Forums, generously provided by BuZZes, so all Credit must go to him!! Here is the script for anyone that is interested : ************************************* //on-off switch key bind L "vstr rac_on" //ur moving-keys bind A "+moveleft;vstr rac" bind D "+moveright;vstr rac" bind W "+forward;vstr rac" bind S "+back;vstr rac" set rac_on "vstr rac_on_1" set rac_on_1 "set rac vstr leer;echo ^7s^2aber ^7c^2olor ^7s^2cript ^7----^1DEACTIVATED^7----;set rac_on vstr rac_on_2" set rac_on_2 "set rac vstr rac_w_1;echo ^7s^2aber ^7c^2olor ^7s^2cript ^7----^2ACTIVATED^7----;set rac_on vstr rac_on_1" set rac "vstr rac_w_1" set rac_w_1 "set rac vstr rac_w_2" set rac_w_2 "set rac vstr rac_w_3" set rac_w_3 "set rac vstr rac_w_4" set rac_w_4 "set rac vstr rac_w_5" set rac_w_5 "set rac vstr rac_w_6" set rac_w_6 "set rac vstr rac_w_7" set rac_w_7 "set rac vstr rac_w_8" set rac_w_8 "set rac vstr rac_w_9" set rac_w_9 "set rac vstr rac_w_10" set rac_w_10 "set rac vstr rac_w_11" set rac_w_11 "set rac vstr rac_w_12" set rac_w_12 "set rac vstr rac_w_13" set rac_w_13 "set rac vstr rac_w_14" set rac_w_14 "set rac vstr rac_w_15" set rac_w_15 "set rac vstr rac_w_16" set rac_w_16 "set rac vstr rac_w_17" set rac_w_17 "set rac vstr rac_w_18" set rac_w_18 "set rac vstr rac_w_19" set rac_w_19 "set rac vstr rac_w_20" set rac_w_20 "set rac vstr rac_w_100" set rac_w_100 "set rac vstr rac_w_110" set rac_w_110 "set rac vstr rac_w_120" set rac_w_120 "set rac vstr rac_w_130" set rac_w_130 "set rac vstr rac_w_140" set rac_w_140 "set rac vstr rac_w_150" set rac_w_150 "set rac vstr rac_w_160" set rac_w_160 "set rac vstr rac_w_170" set rac_w_170 "set rac vstr rac_w_180" set rac_w_180 "set rac vstr rac_w_190" set rac_w_190 "set rac vstr rac_w_200" set rac_w_200 "set rac vstr rac_w_21"

set rac_w_21 "set rac vstr rac_w_22" set rac_w_22 "set rac vstr rac_w_23" set rac_w_23 "set rac vstr rac_w_24" set rac_w_24 "set rac vstr rac_w_25" set rac_w_25 "set rac vstr rac_1" set rac_1 "seta color1 0;seta color2 5;set rac_w_25 vstr rac_2;set rac vstr rac_w_1" set rac_2 "seta color1 1;seta color2 4;set rac_w_25 vstr rac_3;set rac vstr rac_w_1" set rac_3 "seta color1 2;seta color2 3;set rac_w_25 vstr rac_4;set rac vstr rac_w_1" set rac_4 "seta color1 3;seta color2 2;set rac_w_25 vstr rac_5;set rac vstr rac_w_1" set rac_5 "seta color1 4;seta color2 1;set rac_w_25 vstr rac_6;set rac vstr rac_w_1" set rac_6 "seta color1 5;seta color2 0;set rac_w_25 vstr rac_1;set rac vstr rac_w_1" ********************************