Page 1 of 2
Gungame 5.1 fresh install no weapons
Posted:
Mon Apr 11, 2011 6:03 am
by parker67
HI Everyone
im kinda new to this and need some help.
Im currently running a CSS server on a windows 2003 box with the latest version of ES and Source Python Extensions.
Im trying to get GunGame 5.1 working.
When i load up the server it all looks fine. no errors or anything.
But when a player joins the server and joins a team it spits out this error message.
Traceback (most recent call last):
File "../eventscripts/es.py", line 279, in tick
x()
File "../eventscripts/_libs/python/gamethread.py", line 173, in tick
_executenode(first)
File "../eventscripts/_libs/python/gamethread.py", line 155, in _executenode
function(*a, **kw)
File "../eventscripts/gungame51/gungame51.py", line 878, in give_weapon_check
Player(userid).give_weapon()
File "../eventscripts/gungame51/core/players/__init__.py", line 562, in give_wea
pon
given_weapon = spe.giveNamedItem(self.userid,
AttributeError: 'module' object has no attribute 'giveNamedItem'
I have done the line 106 fix in the addons\eventscripts\_libs\python\cfglib.py
Did not work.
I have also reinstalled SPE and still get the same errors when players join.
Can anyone help me with this?
thanks
Parki
Posted:
Mon Apr 11, 2011 6:25 am
by satoon101
The cfglib issue has nothing to do with this error, so I'm sure it 'works', as you would have gotten a different error.
I'm still confused as to why it would say spe has no attribute giveNamedItem... The only thing I can think of is that your 'gamename' isn't cstrike , meaning that the path to gungame51 isn't ../orangebox/cstrike/addons/eventscripts/gungame51/ . Could you verify the path (keep in mind that it is case-sensitive). The only other thing I can think of is that you didn't copy 'all' of the files for spe, especially the one that should be at ../addons/eventscripts/_libs/python/spe/games/cstrike.py . That is the file that provides giveNamedItem and is also the reason why if the path is not correct, it will not load.
Satoon
Posted:
Mon Apr 11, 2011 6:45 am
by parker67
Hi satoon,
I just checked and ../orangebox/cstrike/addons/eventscripts/gungame51/ is named correctly. i have not changed any names or anything.
Also i check that the cstrike.py is in the right place and it is.
When i copied the files for spe i copied the root folder so it included all the correct sub directories.
i have been trying to get this going all weekend and have troubleshoot the other problems i had over the weekend and this is the last one i have.
any other ideas for me to try?
Posted:
Mon Apr 11, 2011 7:15 am
by satoon101
No, unfortunately, I'm really out of ideas. If everything is in the correct path (case-sensitive), it 'should' work just fine. And it is very strange that it would have that error. One more quick check for me. Please list the current files that are currently in your server's ../orangebox/cstrike/addons/eventscripts/_libs/python/spe/games/ folder. Better yet would be to take a screenshot of that folder and paste it here.
Satoon
Re: Gungame 5.1 fresh install no weapons
Posted:
Mon Apr 11, 2011 7:33 am
by parker67
Uploaded with
ImageShack.usthat is what is in the directory requested.
Should i try reinstalling everything??
Re: Gungame 5.1 fresh install no weapons
Posted:
Mon Apr 11, 2011 12:11 pm
by parker67
Ok so i tried reinstalling everything under a different file name.
I get a different error message now.
# ================================================
# >> GunGame 5.1 Exception Caught!
# ================================================
Traceback (most recent call last):
File "../eventscripts/es.py", line 279, in tick
x()
File "../eventscripts/_libs/python/gamethread.py", line 173, in tick
_executenode(first)
File "../eventscripts/_libs/python/gamethread.py", line 155, in _executenode
function(*a, **kw)
File "../eventscripts/gungame51/gungame51.py", line 878, in give_weapon_check
Player(userid).give_weapon()
File "../eventscripts/gungame51/core/players/__init__.py", line 555, in give_wea
pon
spe.dropWeapon(self.userid, weapToStrip)
AttributeError: 'module' object has no attribute 'dropWeapon'
# ================================================
Posted:
Mon Apr 11, 2011 2:57 pm
by satoon101
Hmmm, very confusing... It seems that it is loading SPE fine with the exception of the cstrike module. Not really sure what would be causing that. Both giveNamedItem and dropWeapon are in the cstrike module, so without it loading (which is very, very strange) you will get errors when using them.
Satoon
Posted:
Mon Apr 11, 2011 5:18 pm
by daggerclan
I don't know if it's important are not, satoon would know, but I noticed you are missing the cstrike.pyc file.
Posted:
Mon Apr 11, 2011 10:27 pm
by satoon101
Yeah, that is how we would know that spe.games.cstrike has not been loaded. If it was loaded, that file would exist. The only thing I can think of is that you are encountering an error while SPE is loading, so it doesn't load all the way.
Do you have access to the server's console, or do you rely on logs? If you have access, we could go through a few things to figure out what is going on.
Satoon
Posted:
Mon Apr 11, 2011 10:47 pm
by parker67
Yeah its running on a virtual machine on my laptop atm.
What would you like me to do?
Posted:
Mon Apr 11, 2011 11:01 pm
by satoon101
Go open your server's
../addons/eventscripts/_libs/python/spe/__init__.py file, and look for this line:
self.game_name = str(os.path.split(str(es.ServerVar('eventscripts_gamedir')))[1])
Add the following line after that line, with the same spacing (no 'tabs', but 8 'spaces' from the left margin):
es.dbgmsg(0, 'GAMENAME IS: %s' % self.game_name)
So that it now looks like (only, again, 8 'spaces' from the left margin):
self.game_name = str(os.path.split(str(es.ServerVar('eventscripts_gamedir')))[1])
es.dbgmsg(0, 'GAMENAME IS: %s' % self.game_name)
Then, remove
es_load gungame51 from your autoexec.cfg, so that it doesn't load on server startup. Restart the server, and manually type
es_load gungame51 in the server's console, and post the entire output of gungame loading here (using
[code][/code] ).
*Edit: I'll be leaving here in a few, so don't be worried if I don't reply right away. I'll be home sometime tomorrow to help out more.
Satoon
Re: Gungame 5.1 fresh install no weapons
Posted:
Mon Apr 11, 2011 11:57 pm
by parker67
GAMENAME IS: Cstrike
Server logging enabled.
L 04/12/2011 - 08:42:04: Log file closed
Server logging data to file logs\L0412001.log
L 04/12/2011 - 08:42:04: Log file started (file "logs\L0412001.log") (game "C:\s
rcds2\orangebox\Cstrike") (version "4426")
exec: couldn't exec banned_user.cfg
exec: couldn't exec banned_ip.cfg
[1/7] Initializing GunGame 5.1.506...
[2/7] Executing configs...
gg_afk_settings.cfg
gg_default_addons.cfg
gg_en_config.cfg
gg_objectives_settings.cfg
gg_punishment_settings.cfg
gg_convert.cfg
gg_dead_strip.cfg
gg_deathmatch.cfg
gg_dissolver.cfg
gg_earn_nade.cfg
gg_elimination.cfg
gg_friendlyfire.cfg
gg_handicap.cfg
gg_knife_elite.cfg
gg_knife_pro.cfg
gg_leaderweapon_warning.cfg
gg_map_vote.cfg
gg_multi_level.cfg
gg_multi_nade.cfg
gg_nade_bonus.cfg
gg_noblock.cfg
gg_prop_physics.cfg
gg_random_spawn.cfg
gg_reload.cfg
gg_spawnpoints.cfg
gg_spawn_protect.cfg
gg_stats_logging.cfg
gg_turbo.cfg
gg_warmup_round.cfg
gg_welcome_msg.cfg
[3/7] Executing custom configs...
[4/7] Parsing weapon orders...
custom_weapon_order1
default_weapon_order
nade_bonus_order
reverse_weapon_order
weapon_short
L 04/12/2011 - 08:42:06: server_cvar: "sv_tags" "gungame"
L 04/12/2011 - 08:42:06: server_cvar: "sv_tags" "gungame"
[EventScripts] Loaded gungame51
L 04/12/2011 - 08:42:06: server_cvar: "gg_weapon_order_file" "default_weapon_ord
er"
L 04/12/2011 - 08:42:06: server_cvar: "gg_weapon_order_sort_type" "#default"
[5/7] Registering commands...
!leader
!leaders
!level
!rank
!score
!weapons
!top10
!winners
!top
[6/7] Starting sound system...
default.ini
random_sound_files/winner_sounds.txt
no_sound.ini
[7/7] Load completed. Restarting game...
L 04/12/2011 - 08:42:06: server_cvar: "gg_weapon_order_file" "0"
L 04/12/2011 - 08:42:06: server_cvar: "gg_weapon_order_file" "default_weapon_ord
er"
[GunGame] Weapon order: Default Weapon Order
[GunGame] +-------+-----------+---------------+
[GunGame] | Level | Multikill | Weapon |
[GunGame] +-------+-----------+---------------+
[GunGame] | 1 | 1 | glock |
[GunGame] | 2 | 1 | usp |
[GunGame] | 3 | 1 | p228 |
[GunGame] | 4 | 1 | deagle |
[GunGame] | 5 | 1 | fiveseven |
[GunGame] | 6 | 1 | elite |
[GunGame] | 7 | 1 | m3 |
[GunGame] | 8 | 1 | xm1014 |
[GunGame] | 9 | 1 | tmp |
[GunGame] | 10 | 1 | mac10 |
[GunGame] | 11 | 1 | mp5navy |
[GunGame] | 12 | 1 | ump45 |
[GunGame] | 13 | 1 | p90 |
[GunGame] | 14 | 1 | galil |
[GunGame] | 15 | 1 | famas |
[GunGame] | 16 | 1 | ak47 |
[GunGame] | 17 | 1 | scout |
[GunGame] | 18 | 1 | m4a1 |
[GunGame] | 19 | 1 | sg552 |
[GunGame] | 20 | 1 | aug |
[GunGame] | 21 | 1 | m249 |
[GunGame] | 22 | 1 | hegrenade |
[GunGame] | 23 | 1 | knife |
[GunGame] +-------+-----------+---------------+
Weapon Order changed to: Default Weapon Order. Restarting in 2 seconds!
that is gungame just starting up. im currently at work so i cant get the message for when someone joins.
Posted:
Tue Apr 12, 2011 1:08 am
by daggerclan
You have two installations of srcds installed. One in C:\srcds and one in C:\srcds2. You're gungame server is installed in C:\srcds2 and SPE is installed in C:\srcds
Re: Gungame 5.1 fresh install no weapons
Posted:
Tue Apr 12, 2011 2:08 am
by parker67
SPE is installed on both server installations.
Posted:
Tue Apr 12, 2011 2:46 am
by daggerclan
A few posts earlier you mentioned copying SPE from the root. I assume you copied SPE from C:\srcds to C:\srcds2. If so, then the cstrike.py file is still pointing to C:\srcds. You will need to actually install SPE in C:\srcds2 where your game server is so it points to the correct path.
No disrespect intended Parker67 but this will probably cause you a lot of future headaches and confusion having 2 srcds directories and only 1 game server. If I were you I'd delete both and start from scratch.
Posted:
Tue Apr 12, 2011 3:06 am
by parker67
i re-downloaded and installed SPE on srcds2. i didn't get ANY files from srcds1.
srcds2 is on a different server to srcds1. i named them srcds and srcds2 so i know which one im talking bout and which one is the original as they both look the exact same.
and by root i ment the root addon folder in the zip that you download.
Posted:
Tue Apr 12, 2011 3:53 pm
by daggerclan
The only thing else I can think of at the moment is that the path is case-sensitive. In your c:\srcds2 you have your cstrike directory with a capital C, i.e. Cstrike instead of cstrike.
Re:
Posted:
Wed Apr 13, 2011 2:10 am
by XE_ManUp
daggerclan wrote:The only thing else I can think of at the moment is that the path is case-sensitive. In your c:\srcds2 you have your cstrike directory with a capital C, i.e. Cstrike instead of cstrike.
That is the issue. "Cstrike" must be lower-case.
Re: Gungame 5.1 fresh install no weapons
Posted:
Wed Apr 13, 2011 5:05 am
by satoon101
Yup, the very first line is the debug message I had you add in:
Since the gamename is Cstrike instead of cstrike, SPE will not load the spe.games.cstrike module.
*Edit: what is weird is that the picture above shows the path using cstrike (all lower-case). Maybe something is changing your server's value of
eventscripts_gamedir, which is what we use to find the 'gamename'.
Satoon
Re: Gungame 5.1 fresh install no weapons
Posted:
Thu Apr 14, 2011 1:41 am
by parker67
Hey guys thought i would let you know that i decided to try again later.
Alot of stuff has come up (Uni, work, family) and i decided to just delete the whole thing and ill start fresh later.
Thanks for all your advice.
Parki