Page 1 of 1

client scripts

Posted: Sun Jul 31, 2005 9:30 am
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?

Posted: Sun Jul 31, 2005 10:25 am
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 ?

Posted: Sun Jul 31, 2005 12:55 pm
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

Posted: Sun Jul 31, 2005 6:31 pm
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?

Posted: Sun Jul 31, 2005 6:43 pm
by Elgan
depends what the script is:S

and rename it zzz_ not aaa_

Posted: Mon Aug 01, 2005 12:58 am
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.

Posted: Mon Aug 01, 2005 3:36 am
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.

Posted: Mon Aug 01, 2005 5:17 am
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..