client scripts

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

client scripts

Post by lizardkid »

heres the basic problem:

I make a script, test it out on my MP server (just start new and choose a map everytime) and perfected it, works beatifully.

Then, jsut to test before a full release, have a friend wit ha dedicated server try the script.

script doesnt work. at all.

It's an addition to the map script, which i thought was totally serverside (thus being able to spawn weird crap ingame) but he said that that's why my script hadnt been working; i was being a client and not hte server.

i thoght this was absurd, i've always thought clients couldnt send their own scripted events to the server, i always thought the server sentscript data to the clients, which basically only handled loading the map, doing visuals, and sending and recieving data. i didnt think they could actually send scripts... ???

can they? if a client has a different map script will it execute at all?
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

Ah I see, the server runs the map.scr totally !! Clients just need the bsp. did he restart the server after loading your stuff on it ?
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

if your loading your game to test mods on your pc you are the server even if your the client also.

to totaly test run dedicated on your machine thenr open mohaa again and connect to ur server via the lan section.

must be somehting else. maybe he has map mods:P
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

no, we tried that. he told me wrong i guess, i always thoguht clients only needed the map files, not hte scr because the server runs the scripts on them, which is why too much scripting causes lag.

yes he has it in, it's a Linux server so he renamed to aaa_...pk3 like you need to..

i jsut dont get it.. it works instantly on mine and the debug message doesnt even come up on his.

Is there anything radically different a script would do in a nondedicated windows server as opposed to a dedicated Linux server?
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

depends what the script is:S

and rename it zzz_ not aaa_
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

tried it both ways, apprently Linux loads maps backwards (? why?) so he renamed it aaa_...pk3, neither way worked.

will edit after wetest it again.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

any errors in console? is this a map.scr or a global or something?

when im lost at what script is running, for some reason the server crashes my script that worked fine locally or it is running my script
and parts are not functioning normally i do this-

put a unique identifier on the scoreboard cvar - so you can check to see if its your script running with errors or not, or no script at all?

if a map.scr didnt load at all then your script crashed

if a map.scr loaded and its not yours there is a problem with your mod
file pak installation

if your map.scr is running but part of it isnt - like you exec an external
scr that failed, then you should see an error in console.

if something is working on your end - and not serverside for others? then perhaps your script is running something local that you have and your friend doesnt? like maybe a version update ? missing model? or missing animation? Wierd one.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

the script works, that's what i tested on my local server. there's nothing wrong with it, i have debug lines and such so once i retry it i'll be able to tell you more..
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Post Reply