anti-crash

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

anti-crash

Post by lizardkid »

A couple of you might have noticed a new type of crash going around that doesnt require anything at all, no custom, jsut a simply one-line console command.
dm_playermodel allied_SAS_fps

any fps model used as a playermodel would crash the server, because the server cant do it's little animation spree it usually does at spawn, because an fps model doesnt have those anims. i tried a fix for the server which added the normal animations to the fps model; server doesnt crash but all the clients without the fix do, since thye went through the same deal.

so the only other option left would be some code either in server config or map script checking to see if players have a _fps in their playermodel and change it to a valid one.

BOTTOM LINE:
is it possible to cycle through all the clients and check their playermodels before the animations are set and the server would crash?

more specifically, is the playermodel a field in the player class?
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Hmm, interesting. Gonna try doing something about that.

It is, local.player.model.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

EDITED:

got a fix for it, just tweaking and testing atm. thanks for the .model thing Rookie, woulda gotten there sooner or later but it helped a lot ;)
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Unreal_Demon
Lance Corporal
Posts: 15
Joined: Sat Jan 22, 2005 12:21 am

Post by Unreal_Demon »

You must have the script running as fast as possible because the script may be too slow to catch the player selecting the skin, the easiest thing to do is the fix I made for it on the 26th.

http://www.modtheater.com/forum/showthr ... 798&page=1

For AA, SH, BT. My fix has been given to quite a few server providers.
Admin @ Unrealmod
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

for freespawn games yes, im currently getting a server to test the speed of the script, on my computer, even 5 frames is unnoticable; although i see the effect on the lagometer.

But for roundspawn games it works perfectly, you'd never know it was there.

i dont feel special anymore :( :P

ah, looking at your fix you tried the same thing i did the second time around, at first i added the animations to fps models for the server and it worked, but all the clients crashed, then i tried something more similer to this and htey still crash because they dont have it, if they did they'd crash anyway.

mine only disconnects the crasher, anyone around him will not crash. ;)
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

I was thinking of something different, involving the FPS animation files as well. It would enforce 3rd person models if they do this and it would also provide protection with custom skins.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

not sure what you mean, trying to force files without _fps would jsut make hackers change the names of .tik fieles (whcih they could do with mine anyway)

I personally dont like servers that force my models... but i'm not sure what you mean by forcing true models, theres no way of knowing besides the .tik file, and i doubt you can read that from anything in MOH, and definitely not fast enough to catch a crasher.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Post Reply