Page 1 of 1

gg_spawn_add exception caught

PostPosted: Thu Jan 22, 2009 8:39 pm
by IPS TOONCES
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

PostPosted: Thu Jan 22, 2009 9:18 pm
by Don
Hopefully someone will fix that soon but in the meantime you can use this.

PostPosted: Thu Jan 22, 2009 9:48 pm
by IPS TOONCES
Thanks for the quick relply Don! I would love to use whatever that is but the topic is gone on mattie's forums :(

PostPosted: Thu Jan 22, 2009 10:06 pm
by Warren
You should be able to see it if you are a beta tester.

We have a fraud! ;D

PostPosted: Fri Jan 23, 2009 2:28 am
by Don
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.

PostPosted: Fri Jan 23, 2009 2:28 am
by Don
There you go. Direct from the GG Beta tester forum.

PostPosted: Wed Feb 11, 2009 5:11 pm
by IPS TOONCES
thank you sir!

PostPosted: Thu Feb 12, 2009 2:33 am
by IPS TOONCES
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.

PostPosted: Wed Feb 18, 2009 11:37 pm
by Saul
Try r584.

PostPosted: Thu Feb 19, 2009 8:43 pm
by RideGuy
584 had bugs. Please try 586 now available on ESAM.


RideGuy