gg_spawn_add exception caught

Having problems with GunGame5 (NOT FOR BUGS)? Ask here!

gg_spawn_add exception caught

Postby IPS TOONCES » Thu Jan 22, 2009 8:39 pm

Hey guys I've ran into a little problem that I can't seem to get rid of. I'm running the latest gungame version on a windows box and i'm having trouble getting the spawnpoints put in. I have successfully accomplished this on several maps in the past but those spawnpoint files were lost in a server migration. I'm familiar with all the commands such as gg_spawn_add (userid) and gg_spawn_remove and gg_spawn_show.....I can add the spawnpoints and the transparent models will show up for all 55 of them that I put in but when I change the map they won't write to a spawnpoint file like they used to in past versions. Here is what my error log spit out...

Version Information:
* EventScripts: 2.0.0.248
* ES_Tools: 0.420
* GunGame: 5.0.585
* Popup: oy28
* OS Type: nt
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Exception caught: 22/01/2009 @ [10:23:02] [Occurences: 2]

Additional Information:
-> Admin command call. "spawn_add" was called by "CONSOLE".

Additional Information:
-> Admin command call. "spawn_add" was called by "CONSOLE".
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Traceback (most recent call last):

File "C:\servers\ipsgameserver\cstrike\addons\eventscripts\_libs\python\gungamelib.py", line 1081, in callCommand
callback(userid, *arguments)

File "C:\servers\ipsgameserver\cstrike\addons\eventscripts\gungame\included_addons\gg_spawnpoints\gg_spawnpoints.py", line 115, in cmd_spawn_add
spawnPoints.add(playerLoc[0], playerLoc[1], playerLoc[2], playerViewAngle[1])

AttributeError: 'NoneType' object has no attribute 'add'

----------------------------------

After I changed the map back to the one I put spawnpoints on, I used the gg_spawn_show and they even showed up as if they are saved somewhere. The only problem is they don't work and there is no file inside the gungame\spawnpoints\ folder.

Thanks for your time!

Toon
IPS TOONCES

Beta Tester
Beta Tester
 
Posts: 85
Joined: Sat Oct 04, 2008 12:34 am
Location: Chico, CA
Steam Friends Name: GENERAL-TOONCES

Postby Don » Thu Jan 22, 2009 9:18 pm

Hopefully someone will fix that soon but in the meantime you can use this.
Don

Site Admin
Site Admin
User avatar
 
Posts: 529
Joined: Fri Sep 05, 2008 3:05 am
Location: The Valley
Steam Friends Name: Don
Xfire Name: donlafferty

Postby IPS TOONCES » Thu Jan 22, 2009 9:48 pm

Thanks for the quick relply Don! I would love to use whatever that is but the topic is gone on mattie's forums :(
IPS TOONCES

Beta Tester
Beta Tester
 
Posts: 85
Joined: Sat Oct 04, 2008 12:34 am
Location: Chico, CA
Steam Friends Name: GENERAL-TOONCES

Postby Warren » Thu Jan 22, 2009 10:06 pm

You should be able to see it if you are a beta tester.

We have a fraud! ;D
Warren

Site Admin
Site Admin
 
Posts: 772
Joined: Fri Sep 05, 2008 2:59 am
Location: Boston, MA
Xfire Name: WMA9000

Postby Don » Fri Jan 23, 2009 2:28 am

Here's a little spawnpoint maker I threw together for those maps that don't have spawnpoints. Stick it in addons/eventscripts/ggspm/ggspm.py.

To use it just walk to a spot you want, open the console and type sp_add. To see the spawnpoints already created type sp_show.

If the file doesn't exist it will create it. If you just want to add some spawnpoints to a map that has some it will do that too.

If it's useful I could make it so it would be approvable on ESAM but right now it wouldn't be.

Edit: I think dm_add does the same thing. I guess the advantage to this is it's stand-alone.

At any rate I added a centertell when you set a point.

Edit2: I borrowed the show spawnpoints code from gg_deathmatch so you can now see where the spawnpoints are located. It also makes a sprite when you set a spawnpoint.
Attachments
ggspm.py.zip
(624 Bytes) Downloaded 766 times
Don

Site Admin
Site Admin
User avatar
 
Posts: 529
Joined: Fri Sep 05, 2008 3:05 am
Location: The Valley
Steam Friends Name: Don
Xfire Name: donlafferty

Postby Don » Fri Jan 23, 2009 2:28 am

There you go. Direct from the GG Beta tester forum.
Don

Site Admin
Site Admin
User avatar
 
Posts: 529
Joined: Fri Sep 05, 2008 3:05 am
Location: The Valley
Steam Friends Name: Don
Xfire Name: donlafferty

Postby IPS TOONCES » Wed Feb 11, 2009 5:11 pm

thank you sir!
IPS TOONCES

Beta Tester
Beta Tester
 
Posts: 85
Joined: Sat Oct 04, 2008 12:34 am
Location: Chico, CA
Steam Friends Name: GENERAL-TOONCES

Postby IPS TOONCES » Thu Feb 12, 2009 2:33 am

For some reason I couldn't get the ggspm script to work. It loaded in the console fine but the sp_add or other commands didn't respond. Perhaps I did something wrong?

I tried the gg_spawn_add again and it worked this time. I created exactly 60 spawnpoints for aim_shotty with a .txt file that saved correctly this time. They work great except when the server is full (16 slots) and the map is changed to aim_shotty. When that happens, everyone is forced to spectate and cannot join a team. I kept increasing the amount of spawnpoints like Don told me but for some reason it will still keep everyone from joining when the server is full.
IPS TOONCES

Beta Tester
Beta Tester
 
Posts: 85
Joined: Sat Oct 04, 2008 12:34 am
Location: Chico, CA
Steam Friends Name: GENERAL-TOONCES

Postby Saul » Wed Feb 18, 2009 11:37 pm

Try r584.
Saul

GunGame5 Developer
GunGame5 Developer
 
Posts: 147
Joined: Sun Sep 07, 2008 3:29 pm
Xfire Name: saul0

Postby RideGuy » Thu Feb 19, 2009 8:43 pm

584 had bugs. Please try 586 now available on ESAM.


RideGuy
RideGuy

Site Admin
Site Admin
User avatar
 
Posts: 201
Joined: Sat Sep 06, 2008 11:30 am



Return to Troubleshooting (NOT FOR BUGS)

Who is online

Users browsing this forum: No registered users and 0 guests

cron