? about scripting

Post your scripting questions / solutions here

Moderator: Moderators

User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

OK let us know . Just a note origin can be done like this too if you want to use the origin of an entity like a script origin for example . If you use the color option I think you may have to put brackets around it too . 1 1 1 is the default so you don't need to use it . It is the only optional parameter .

global/showbox.scr::setsize $mything.origin ( 2054 5 0 )( -2054 -5 228 )
Image
Tazz
Second Lieutenant
Posts: 155
Joined: Fri Feb 16, 2007 1:29 pm
Contact:

Post by Tazz »

i guess i just dont have something in the right place or just am doing something wrong because its still not working for me....maybe its my .scr file altogether because im not even seeing the dmloading pic and it should show the gewitter pic.....maybe thats the whole problem or maybe where i put it might be.....its in my maps/dm folder......along with the map and the .min file......i just renamed it so i could try to mod it but nothing.....
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

To overwrite stock files in Spearhead your files must be in a .pk3 if they have the same name as the stock files . Not true for AA though . You need to make a log file . Type logfile 1 into the console before you play your map and when done look in mainta for qconsole.log it is a text file look it there for the error . If nothing is working then you have a scripting error that stops your script from loading .
Image
Tazz
Second Lieutenant
Posts: 155
Joined: Fri Feb 16, 2007 1:29 pm
Contact:

Post by Tazz »

ok i didnt know that...ill go ahead and make a pk3 for this map and well see then......
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

I forgot to add that the game loads the pk2 alphabetically so your pk3 name must come after the game's since they start with P as in pak1.pk3 you must name it something like user_mypak.pk3 or like many do with some zz's at the front of the name . Watch for other mods trying to mod the same files only one will load the last one read .
Image
Tazz
Second Lieutenant
Posts: 155
Joined: Fri Feb 16, 2007 1:29 pm
Contact:

Post by Tazz »

ok finally got to play more with scripting and understanding some things better but u still cant tget this mod working.....i extracted the scr file to my main/global folder then go into a game and type in exec global/showbox.scr::show (115 -1075 -210)(16 250 96) and nothing happens....also tried with setsize but i cant see the lines....am i typing it wrong?......i need the clip wall here 115 -1075 -210 and i want it 16 deep and 250 long and 96 high...i think i was doing this right but i cant see the beams.....know why?
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

Tazz wrote:know why?
who said u should type it into console? put it into your map script:
bdbodger wrote: In your level script put
exec global/showbox.scr::setsize origin ( coords1 )( coords 2 ) color
and I think u must not start ur map in SinglePlayer?!
Tazz
Second Lieutenant
Posts: 155
Joined: Fri Feb 16, 2007 1:29 pm
Contact:

Post by Tazz »

its not in SP it setup as tdm so that parts taken care of thx for the info too.....hopefully will get this taken care of now
Tazz
Second Lieutenant
Posts: 155
Joined: Fri Feb 16, 2007 1:29 pm
Contact:

Post by Tazz »

ok i got it now guys thx alot for the help....i wasnt using the space between the brackets and now it shows up perfect....back to my clip walls now
Post Reply