Note: This forum is merely an archive. It is no longer possible to register or post. - StackOverflow
New Ace of Spades Forums: http://buildandshoot.com/

Spawn Protect script crashing

For all your hosting needs.

Spawn Protect script crashing

Postby LimDul » Wed May 09, 2012 12:21 am

Hi there!

Pyspades seems to come bundled with a Spawn Protection script but it seems to crash the server on the most recent revision. Can anyone perhaps fix the script?
I'm not sure if the official Pyspades dev Team deals with script issues...

Here's the error log:

Code: Select all
2012-05-08 23:15:49+0000 [-] Traceback (most recent call last):
2012-05-08 23:15:49+0000 [-]   File "pyspades\protocol.pyo", line 151, in update
2012-05-08 23:15:49+0000 [-]   File "run.py", line 881, in data_received
2012-05-08 23:15:49+0000 [-]   File "pyspades\protocol.pyo", line 113, in data_received
2012-05-08 23:15:49+0000 [-]   File "pyspades\server.pyo", line 416, in loader_received
2012-05-08 23:15:49+0000 [-]   File "C:\Users\fcraft\Desktop\Ace Of Spades\Pyspades\scripts\spawn_protect.py", line 22, in on_hit
2012-05-08 23:15:49+0000 [-] NameError: global name 'hit_player' is not defined
2012-05-08 23:15:52+0000 [-] Unhandled error in Deferred:
2012-05-08 23:15:52+0000 [-] Unhandled Error
   Traceback (most recent call last):
     File "twisted\internet\base.pyo", line 1169, in run
      
     File "twisted\internet\base.pyo", line 1178, in mainLoop
      
     File "twisted\internet\base.pyo", line 800, in runUntilCurrent
      
     File "twisted\internet\task.pyo", line 215, in __call__
      
   --- <exception caught here> ---
     File "twisted\internet\defer.pyo", line 134, in maybeDeferred
      
     File "pyspades\server.pyo", line 1553, in update
      
     File "world.pyx", line 377, in pyspades.world.World.update (./pyspades/world.cpp:7185)
      
     File "world.pyx", line 352, in pyspades.world.Grenade.update (./pyspades/world.cpp:6480)
      
     File "pyspades\server.pyo", line 1004, in grenade_exploded
      
     File "C:\Users\fcraft\Desktop\Ace Of Spades\Pyspades\scripts\spawn_protect.py", line 22, in on_hit
      
   exceptions.NameError: global name 'hit_player' is not defined

Cheers!
LimDul
Member
 
Posts: 3
Joined: Thu Mar 29, 2012 3:41 pm

Re: Spawn Protect script crashing

Postby Mortiis » Wed May 09, 2012 12:38 am

Here i uploaded the corrected script: http://dl.dropbox.com/u/65967985/spawn_protect.py
User avatar
Mortiis
Member
 
Posts: 29
Joined: Mon Jan 16, 2012 6:07 pm
Location: Santiago, Chile

Re: Spawn Protect script crashing

Postby LimDul » Wed May 09, 2012 5:57 am

Tested and it works perfectly. Thanks a lot!
LimDul
Member
 
Posts: 3
Joined: Thu Mar 29, 2012 3:41 pm


Return to Server



Who is online

Users browsing this forum: No registered users and 5 guests

cron