First steps in SP with an error

Please post any questions about developing your plugin here. Please use the search function before posting!
User avatar
mister-man
Member
Posts: 70
Joined: Wed Aug 29, 2012 7:09 pm
Location: Germany

First steps in SP with an error

Postby mister-man » Tue Aug 06, 2013 8:47 pm

Hay,

I try my first steps in SP and have an error with the messagesytem.

Syntax: Select all

# =============================================================================
# >> IMPORTS
# =============================================================================
from players.helpers import index_from_playerinfo
from players.helpers import playerinfo_from_userid

# =============================================================================
# >> Global
# =============================================================================

chatColors = { '#white' : '\x01' ,
'#darkred' : '\x02' ,
'#green' : '\x04' ,
'#palegreen' : '\x05' ,
'#lightgreen' : '\x06' ,
'#red' : '\x07' }

# =============================================================================
# >> CLASSES
# =============================================================================

class saylib(object):
def __init__(self):
pass

def __setColor(self, msg):
text = msg
for i, j in colors.iteritems():
text = text.replace(i, str(j))
return str(text)

def tell(self, userid, msg):
playerinfo = playerinfo_from_userid(userid)
i = index_from_playerinfo(playerinfo)
m = messages.SayText(index=i, chat=1, message=__setColor(msg))
m.send(i)


Error:

Code: Select all

sp load AoD
[SP] Loading addon 'AoD'...

[SP]  Caught an Exception:
Traceback (most recent call last):
  File '..\addons\source-python\_libs\addons\manager.py', line 43, in __missing_
_
    instance = _LoadedAddon(addon_name)
  File '..\addons\source-python\_libs\addons\manager.py', line 232, in __init__

    self._addon = __import__(addon_name + '.' + addon_name)
  File '..\addons\source-python\AoD\AoD.py', line 13, in <module>
    from AoD._libs.saylib import saylib

ImportError: cannot import name saylib

[SP] Addon 'AoD' was unable to be loaded.



Can someone explain me, whats wrong? The code from function "tell" comes from the wike!

Thanks
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Tue Aug 06, 2013 9:14 pm

No idea. It works fine for me with the following directory structure:
  • ../AoD/AoD.py
  • ../AoD/_libs/saylib.py
Satoon
Omega_K2
Senior Member
Posts: 227
Joined: Sat Jul 07, 2012 3:05 am
Location: Europe
Contact:

Postby Omega_K2 » Tue Aug 06, 2013 9:35 pm

It should work.
You can get that kind of error if you have import errors in your imports.

I suggest making sure you have the latest version of sp installed. NOT the one from downloads, update from the HG repos and build it yourself.

On a side note, I recently included a lib for colors in chat in k2tools, which you can use if you want (gotta install the whole thing though):
https://german-slaughterhouse.de/svn/k2tools/trunk/addons/source-python/_libs/k2tools/colormsg.py
Libraries: k2tools
Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)
Plugins (game-specific): None atm

If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Tue Aug 06, 2013 9:39 pm

The wiki seems to be wrong about messages anyway. The wiki never imports anything from the messaging module, just as you haven't in your example. You shouldn't be importing "messages" directly anyway, you should be doing it like the following:

Syntax: Select all

from messages import SayText2
Then, you would use it like the following:

Syntax: Select all

my_saytext2_message = SayText2(<parameters>)

# You only need to specify the users if you did not do so on instantiation of the SayText2 instance
my_saytext2_message.send([users])

# You can also specify the users as an attribute of the instance before calling the send() method
my_saytext2_message.users = <users>
my_saytext2_message.send()

The messages package is going to get another refresh fairly soon, though the usage should stay basically the same.

Satoon
User avatar
mister-man
Member
Posts: 70
Joined: Wed Aug 29, 2012 7:09 pm
Location: Germany

Postby mister-man » Tue Aug 06, 2013 10:07 pm

Okay, my misstake was, that I used the download version.

Is it possible to make a autobuilding page for SP. It would help possible users to update easily like sm?


@Omega_K2:

I will take a look on k2tools. Thanks ;)
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Tue Aug 06, 2013 10:10 pm

We had discussed having nightly builds awhile back, but I really don't see the need in that. I am planning on uploading a new build (Windows and Linux for CS:GO and OrangeBox) within the next couple weeks. I am holding off until a few major changes are made.

Building yourself is pretty easy, though. Simply follow the wiki page:
http://www.sourcepython.com/showwiki.php?title=Wiki:Building+From+Source

Satoon
User avatar
mister-man
Member
Posts: 70
Joined: Wed Aug 29, 2012 7:09 pm
Location: Germany

Postby mister-man » Tue Aug 06, 2013 10:34 pm

Yes, but the advanced of an automatic building system is, that users that only whant to use plugins and won't write own plugins can easily download and use SP.

At these time only experienced users can use SP.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Tue Aug 06, 2013 10:40 pm

We are still in the Alpha stage. I'm not sure that creating an automatic build system is in our best interest at this moment. Our time is better served implementing more functionality, improving existing functionality, and fixing any crashes. We will try our best to keep a mostly up-to-date version available for download. The build process is pretty black-and-white, so I wouldn't say it is only for experienced users. It is even easier to get the newest Python-side API, as you just have to copy/paste the directory.

Satoon
User avatar
mister-man
Member
Posts: 70
Joined: Wed Aug 29, 2012 7:09 pm
Location: Germany

Postby mister-man » Wed Aug 07, 2013 11:43 am

I tried to compile SP but it seems there is an error:

"
Das Programm "D:\.....\SourcePython\src\ALL_BUILD" kann nicht gestartet werden.

Das System kann die angegebene datei nicht finden.
"

My system cant find ..\SourcePython\src\ALL_BUILD
I tried to build on Windows!

But both dll's are build. If I try to use it on a windows server, nothing happens!
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Wed Aug 07, 2013 11:51 am

You will get that error if you press F5 instead of F7. But the files have been built correctly, so just move to src/Release or src/Debug and copy source-python.dll and core.dll to the appropriate folders.
User avatar
mister-man
Member
Posts: 70
Joined: Wed Aug 29, 2012 7:09 pm
Location: Germany

Postby mister-man » Wed Aug 07, 2013 1:52 pm

I tried it, after restarting the server there was no error.
But if I type "sp list" or "sp load" or "sp" nothing happens.
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Wed Aug 07, 2013 2:25 pm

What happens when you enter "plugin_print"?
User avatar
mister-man
Member
Posts: 70
Joined: Wed Aug 29, 2012 7:09 pm
Location: Germany

Postby mister-man » Wed Aug 07, 2013 2:49 pm

Code: Select all

VAC secure mode is activated.
plugin_print
Loaded plugins:
---------------------
0:      "Source Python, (C) 2012, Source Python Team."
---------------------




But "sp load" --> unknown command
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Wed Aug 07, 2013 2:56 pm

Open your server's ../cfg/source-python/core_settings.ini file and change the LOG_SETTINGS level to 5. Let us know of any errors that are output when SP is loaded. You might also want to add "+developer 1" to your target in the shortcut that starts the server.

Satoon
User avatar
mister-man
Member
Posts: 70
Joined: Wed Aug 29, 2012 7:09 pm
Location: Germany

Postby mister-man » Wed Aug 07, 2013 3:17 pm

Okay, I started the serevr with the settings:

Code: Select all

#Console initialized.
#Loading VPK file hashes for pure server operation.
#Game.dll loaded for "Counter-Strike: Global Offensive"
#CGameEventManager::AddListener: event 'server_pre_shutdown' unknown.
#CGameEventManager::AddListener: event 'game_newmap' unknown.
#CGameEventManager::AddListener: event 'finale_start' unknown.
#CGameEventManager::AddListener: event 'round_start' unknown.
#CGameEventManager::AddListener: event 'round_end' unknown.
#CGameEventManager::AddListener: event 'difficulty_changed' unknown.
#GameTypes: initializing game types interface from GameModes.txt.
#GameTypes: merging game types interface from gamemodes_server.txt.
#GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
Server is hibernating
Particles: Missing 'particles/maps/gg_vietnam.pcf'
CDedicatedServerWorkshopManager::GetNewestSubscribedFiles
No web api auth key specified - workshop downloads will be disabled.
CResponseSystem:  scripts\talker\response_rules.txt (1438 rules, 475 criteria, a
nd 1279 responses)
Plugins: found file "source-python.vdf"
[Source.Python] Loading...
[SP] Interface VEngineServer023 at 50cc6784
[SP] Interface GAMEEVENTSMANAGER002 at 50f15fe8
[SP] Interface ISERVERPLUGINHELPERS001 at 50cc536c
[SP] Interface EngineTraceServer004 at 50ccbe08
[SP] Interface IEngineSoundServer003 at 50cbc174
[SP] Interface VEngineRandom001 at 50ccfc1c
[SP] Interface VFileSystem017 at 5cfe31d0
[SP] Interface VEngineServerStringTable001 at 50f39b38
[SP] Interface PlayerInfoManager002 at 77db1a7c
[SP] Interface BotManager001 at 77db1a80
[SP] Interface IEffects001 at 77d87e74
[SP] Interface ServerGameDLL005 at 77d9aadc
[SP] Interface VSERVERTOOLS001 at 77ddd51c
[SP] Game directory is d:\server\script\csgo\csgo
[SP] Source-Python directory is d:\server\script\csgo\csgo\addons\source-python
[SP] Python home path set to d:\server\script\csgo\csgo\addons\source-python\_en
gines
Python version 3.3.0 (default, Nov 12 2012, 15:22:24) [MSC v.1600 32 bit (Intel)
] initialized!
[SP] Adding sys.path.insert(1, r"d:\server\script\csgo\csgo\addons\source-python
\_libs") to path
[SP] Adding sys.path.insert(1, r"d:\server\script\csgo\csgo\addons\source-python
\_engines\plat-win") to path
[SP] Adding sys.path.insert(1, r"d:\server\script\csgo\csgo\addons\source-python
\_engines\site-packages") to path
[SP] Adding sys.path.insert(1, r"d:\server\script\csgo\csgo\addons\source-python
") to path
[SP] Initializing command_c module
[SP] Initializing cvar_c module
[SP] Initializing engine_c module
[SP] Initializing usermessage_c module
[SP] Initializing event_c module
[SP] Initializing entity_c module
[SP] Initializing keyvalues_c module
[SP] Initializing player_c module
[SP] Initializing tick_c module
[SP] Initializing globals_c module
[SP] Initializing memory_c module
[SP] Initializing vecmath_c module
[SP] Initializing recipientfilter_c module
[SP] Importing main module..
[Source.Python] Loaded successfully.
maxplayers set to 64
Trying cache :  'd:/server/script/csgo/csgo/maps/soundcache/_master.cache'
Successfully loaded audio cache file
Execing config: valve.rc
Execing config: default.cfg
Unknown command "cl_bobamt_vert"
Unknown command "cl_bobamt_lat"
Unknown command "cl_bob_lower_amt"
Unknown command "cl_viewmodel_shift_left_amt"
Unknown command "cl_viewmodel_shift_right_amt"
Unknown command "cl_teamid_min"
Unknown command "cl_teamid_max"
Unknown command "cl_teamid_overhead"
Unknown command "cl_teamid_overhead_maxdist"
Execing config: joystick.cfg
Execing config: autoexec.cfg
Setting mapgroup to 'mg_bomb'
Execing config: modsettings.cfg
Unknown command "mat_bloom_scalefactor_scalar"
NET_GetBindAddresses found 192.168.1.110: 'Broadcom NetLink (TM) Gigabit Etherne
t'
Network: IP 192.168.1.110 mode MP, dedicated No, ports 27015 SV / 27005 CL
CServerGameDLL::ApplyGameSettings game settings payload received:
  ::ExecGameTypeCfg {
    map {
      mapname de_dust2
    }
  }
---- Host_NewGame ----
Execing config: game.cfg
Hunk_OnMapStart: 41943040
props_mill\millwall_01.mdl : material "models/props_mill/greygrid" not found.
Host_NewGame on map de_dust2
GameTypes: initializing game types interface from GameModes.txt.
GameTypes: merging game types interface from gamemodes_server.txt.
Failed to load gamemodes_server.txt
GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
bot_autodifficulty_threshold_high - 2.0
bot_autodifficulty_threshold_low - -6.0
bot_chatter - normal
bot_defer_to_human_goals - 0
bot_defer_to_human_items - 1
bot_difficulty - 1
bot_quota - 10
bot_quota_mode - normal
bot_allow_grenades - 1
bot_allow_pistols - 1
bot_allow_sub_machine_guns - 1
bot_allow_shotguns - 1
bot_allow_rifles - 1
bot_allow_snipers - 1
bot_allow_machine_guns - 1
mp_playercashawards - 1
cash_player_bomb_defused - 300
cash_player_bomb_planted - 300
cash_player_damage_hostage - -30
cash_player_interact_with_hostage - 150
cash_player_killed_enemy_default - 300
cash_player_killed_enemy_factor - 1
cash_player_killed_hostage - -1000
cash_player_killed_teammate - -3300
cash_player_rescued_hostage - 1000
cash_player_respawn_amount - 0
cash_player_get_killed - 0
mp_teamcashawards - 1
cash_team_elimination_bomb_map - 3250
cash_team_elimination_hostage_map_t - 1000
cash_team_elimination_hostage_map_ct - 2000
cash_team_hostage_alive - 0
cash_team_hostage_interaction - 500
cash_team_loser_bonus - 1400
cash_team_loser_bonus_consecutive_rounds - 500
cash_team_planted_bomb_but_defused - 800
cash_team_rescued_hostage - 0
cash_team_terrorist_win_bomb - 3500
cash_team_win_by_defusing_bomb - 3250
cash_team_win_by_hostage_rescue - 3500
cash_team_win_by_time_running_out_bomb - 3250
cash_team_win_by_time_running_out_hostage - 3250
mp_afterroundmoney - 0
mp_buytime - 90
mp_startmoney - 800
mp_maxmoney - 16000
mp_death_drop_defuser - 1
mp_death_drop_grenade - 2
mp_death_drop_gun - 1
mp_deathcam_skippable - 1
mp_defuser_allocation - 0
mp_give_player_c4 - 1
mp_free_armor - 0
mp_molotovusedelay - 15.0
mp_weapons_allow_zeus - 1
mp_weapons_allow_map_placed - 0
mp_weapons_glow_on_ground - 0
mp_ct_default_melee - weapon_knife
mp_ct_default_secondary - weapon_hkp2000
mp_ct_default_primary -
mp_ct_default_grenades -
mp_t_default_melee - weapon_knife
mp_t_default_secondary - weapon_glock
mp_t_default_primary -
mp_t_default_grenades -
mp_buy_allow_grenades - 1
mp_freezetime - 6
mp_force_pick_time - 15
mp_halftime - 0
mp_match_can_clinch - 1
mp_maxrounds - 0
mp_roundtime - 5
mp_roundtime_defuse - 0
mp_roundtime_hostage - 0
mp_timelimit - 5
mp_warmuptime - 30
mp_warmup_pausetimer - 0
mp_halftime_pausetimer - 0
mp_default_team_winner_no_objective - -1
mp_hostagepenalty - 10
mp_solid_teammates - 1
sv_allow_votes - 1
sv_alltalk - 0
sv_deadtalk - 0
sv_ignoregrenaderadio - 0
mp_teammates_are_enemies - 0
mp_damage_scale_ct_body - 1.0
mp_damage_scale_ct_head - 1.0
mp_damage_scale_t_body - 1.0
mp_damage_scale_t_head - 1.0
mp_friendlyfire - 0
ff_damage_reduction_bullets - 0.1
ff_damage_reduction_grenade - 0.25
ff_damage_reduction_grenade_self - 1
ff_damage_reduction_other - 0.25
mp_limitteams - 2
spec_freeze_panel_extended_time - 0.0
spec_freeze_time - 5.0
mp_forcecamera - 1
mp_respawn_immunitytime - 4.0
mp_respawn_on_death_t - 0
mp_respawn_on_death_ct - 0
mp_display_kill_assists - 1
mp_use_respawn_waves - 0
mp_respawnwavetime_ct - 10.0
mp_respawnwavetime_t - 10.0
mp_randomspawn - 0
mp_randomspawn_los - 1
mp_radar_showall - 0
sv_gravity - 800
sv_accelerate - 5.6
sv_stopspeed - 75
sv_airaccelerate - 10
sv_wateraccelerate - 10
sv_waterfriction - 1
sv_friction - 4.8
sv_bounce - 0
sv_maxvelocity - 3500
sv_maxspeed - 320
mp_ggprogressive_round_restart_delay - 15.0
mp_ggtr_bomb_defuse_bonus - 1.0
mp_ggtr_bomb_detonation_bonus - 1.0
mp_ggtr_bomb_pts_for_flash - 4
mp_ggtr_bomb_pts_for_he - 3
mp_ggtr_bomb_pts_for_molotov - 5
mp_ggtr_bomb_pts_for_upgrade - 2.0
mp_ggtr_bomb_respawn_delay - 0.0
mp_ggtr_end_round_kill_bonus - 1
mp_ggtr_halftime_delay - 0.0
mp_ggtr_last_weapon_kill_ends_half - 0
sv_arms_race_vote_to_restart_disallowed_after - 0
Executing dedicated server config file
Execing config: server.cfg
exec: couldn't exec server.cfg
Execing config: gamemode_competitive.cfg
Unknown command "mp_deathcam_skippable"
Execing config: gamemode_competitive_server.cfg
exec: couldn't exec gamemode_competitive_server.cfg
GameTypes: set convars for game type/mode (classic:0/competitive:1):
  exec {
    exec gamemode_competitive.cfg
    exec gamemode_competitive_server.cfg
  }
Set Gravity 800.0 (0.250 tolerance)
Attempting to precache model, but model name is NULL
Invalid file size for host.txt
Commentary: Could not find commentary data file 'maps/de_dust2_commentary.txt'.

Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Created class baseline: 21 classes, 6320 bytes.
Initializing Steam libraries for secure Internet server
Logging into anonymous gameserver account.
Connection to Steam servers successful.
   Public IP is xxx.xxx.xxx.xxx.
Assigned anonymous gameserver Steam ID [A:1:2219631616(3567)].
VAC secure mode is activated.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Wed Aug 07, 2013 3:22 pm

Remove your server's ../addons/source-python/sp.py file and ../addons/source-python/_libs/ directory completely from the server. Then, re-upload those from the repository. Also, make sure that your LOG_SETTINGS "area" is set to 1 (or at least that the number is odd).

After you have done this, use just the command "sp" and post the output again here.

Satoon
User avatar
mister-man
Member
Posts: 70
Joined: Wed Aug 29, 2012 7:09 pm
Location: Germany

Postby mister-man » Wed Aug 07, 2013 3:40 pm

Code: Select all

#Console initialized.
#Loading VPK file hashes for pure server operation.
#Game.dll loaded for "Counter-Strike: Global Offensive"
#CGameEventManager::AddListener: event 'server_pre_shutdown' unknown.
#CGameEventManager::AddListener: event 'game_newmap' unknown.
#CGameEventManager::AddListener: event 'finale_start' unknown.
#CGameEventManager::AddListener: event 'round_start' unknown.
#CGameEventManager::AddListener: event 'round_end' unknown.
#CGameEventManager::AddListener: event 'difficulty_changed' unknown.
#GameTypes: initializing game types interface from GameModes.txt.
#GameTypes: merging game types interface from gamemodes_server.txt.
#GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
Server is hibernating
Particles: Missing 'particles/maps/gg_vietnam.pcf'
CDedicatedServerWorkshopManager::GetNewestSubscribedFiles
No web api auth key specified - workshop downloads will be disabled.
CResponseSystem:  scripts\talker\response_rules.txt (1438 rules, 475 criteria, a
nd 1279 responses)
Plugins: found file "source-python.vdf"
[Source.Python] Loading...
[SP] Interface VEngineServer023 at 50706784
[SP] Interface GAMEEVENTSMANAGER002 at 50955fe8
[SP] Interface ISERVERPLUGINHELPERS001 at 5070536c
[SP] Interface EngineTraceServer004 at 5070be08
[SP] Interface IEngineSoundServer003 at 506fc174
[SP] Interface VEngineRandom001 at 5070fc1c
[SP] Interface VFileSystem017 at 5c9a31d0
[SP] Interface VEngineServerStringTable001 at 50979b38
[SP] Interface PlayerInfoManager002 at d4d1a7c
[SP] Interface BotManager001 at d4d1a80
[SP] Interface IEffects001 at d4a7e74
[SP] Interface ServerGameDLL005 at d4baadc
[SP] Interface VSERVERTOOLS001 at d4fd51c
[SP] Game directory is d:\server\script\csgo\csgo
[SP] Source-Python directory is d:\server\script\csgo\csgo\addons\source-python
[SP] Python home path set to d:\server\script\csgo\csgo\addons\source-python\_en
gines
Python version 3.3.0 (default, Nov 12 2012, 15:22:24) [MSC v.1600 32 bit (Intel)
] initialized!
[SP] Adding sys.path.insert(1, r"d:\server\script\csgo\csgo\addons\source-python
\_libs") to path
[SP] Adding sys.path.insert(1, r"d:\server\script\csgo\csgo\addons\source-python
\_engines\plat-win") to path
[SP] Adding sys.path.insert(1, r"d:\server\script\csgo\csgo\addons\source-python
\_engines\site-packages") to path
[SP] Adding sys.path.insert(1, r"d:\server\script\csgo\csgo\addons\source-python
") to path
[SP] Initializing command_c module
[SP] Initializing cvar_c module
[SP] Initializing engine_c module
[SP] Initializing usermessage_c module
[SP] Initializing event_c module
[SP] Initializing entity_c module
[SP] Initializing keyvalues_c module
[SP] Initializing player_c module
[SP] Initializing tick_c module
[SP] Initializing globals_c module
[SP] Initializing memory_c module
[SP] Initializing vecmath_c module
[SP] Initializing recipientfilter_c module
[SP] Importing main module..
[Source.Python] Loaded successfully.
maxplayers set to 64
Trying cache :  'd:/server/script/csgo/csgo/maps/soundcache/_master.cache'
Successfully loaded audio cache file
Execing config: valve.rc
Execing config: default.cfg
Unknown command "cl_bobamt_vert"
Unknown command "cl_bobamt_lat"
Unknown command "cl_bob_lower_amt"
Unknown command "cl_viewmodel_shift_left_amt"
Unknown command "cl_viewmodel_shift_right_amt"
Unknown command "cl_teamid_min"
Unknown command "cl_teamid_max"
Unknown command "cl_teamid_overhead"
Unknown command "cl_teamid_overhead_maxdist"
Execing config: joystick.cfg
Execing config: autoexec.cfg
Setting mapgroup to 'mg_bomb'
Execing config: modsettings.cfg
Unknown command "mat_bloom_scalefactor_scalar"
NET_GetBindAddresses found 192.168.1.110: 'Broadcom NetLink (TM) Gigabit Etherne
t'
Network: IP 192.168.1.110 mode MP, dedicated No, ports 27015 SV / 27005 CL
CServerGameDLL::ApplyGameSettings game settings payload received:
  ::ExecGameTypeCfg {
    map {
      mapname de_dust2
    }
  }
---- Host_NewGame ----
Execing config: game.cfg
Hunk_OnMapStart: 41943040
props_mill\millwall_01.mdl : material "models/props_mill/greygrid" not found.
Host_NewGame on map de_dust2
GameTypes: initializing game types interface from GameModes.txt.
GameTypes: merging game types interface from gamemodes_server.txt.
Failed to load gamemodes_server.txt
GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
bot_autodifficulty_threshold_high - 2.0
bot_autodifficulty_threshold_low - -6.0
bot_chatter - normal
bot_defer_to_human_goals - 0
bot_defer_to_human_items - 1
bot_difficulty - 1
bot_quota - 10
bot_quota_mode - normal
bot_allow_grenades - 1
bot_allow_pistols - 1
bot_allow_sub_machine_guns - 1
bot_allow_shotguns - 1
bot_allow_rifles - 1
bot_allow_snipers - 1
bot_allow_machine_guns - 1
mp_playercashawards - 1
cash_player_bomb_defused - 300
cash_player_bomb_planted - 300
cash_player_damage_hostage - -30
cash_player_interact_with_hostage - 150
cash_player_killed_enemy_default - 300
cash_player_killed_enemy_factor - 1
cash_player_killed_hostage - -1000
cash_player_killed_teammate - -3300
cash_player_rescued_hostage - 1000
cash_player_respawn_amount - 0
cash_player_get_killed - 0
mp_teamcashawards - 1
cash_team_elimination_bomb_map - 3250
cash_team_elimination_hostage_map_t - 1000
cash_team_elimination_hostage_map_ct - 2000
cash_team_hostage_alive - 0
cash_team_hostage_interaction - 500
cash_team_loser_bonus - 1400
cash_team_loser_bonus_consecutive_rounds - 500
cash_team_planted_bomb_but_defused - 800
cash_team_rescued_hostage - 0
cash_team_terrorist_win_bomb - 3500
cash_team_win_by_defusing_bomb - 3250
cash_team_win_by_hostage_rescue - 3500
cash_team_win_by_time_running_out_bomb - 3250
cash_team_win_by_time_running_out_hostage - 3250
mp_afterroundmoney - 0
mp_buytime - 90
mp_startmoney - 800
mp_maxmoney - 16000
mp_death_drop_defuser - 1
mp_death_drop_grenade - 2
mp_death_drop_gun - 1
mp_deathcam_skippable - 1
mp_defuser_allocation - 0
mp_give_player_c4 - 1
mp_free_armor - 0
mp_molotovusedelay - 15.0
mp_weapons_allow_zeus - 1
mp_weapons_allow_map_placed - 0
mp_weapons_glow_on_ground - 0
mp_ct_default_melee - weapon_knife
mp_ct_default_secondary - weapon_hkp2000
mp_ct_default_primary -
mp_ct_default_grenades -
mp_t_default_melee - weapon_knife
mp_t_default_secondary - weapon_glock
mp_t_default_primary -
mp_t_default_grenades -
mp_buy_allow_grenades - 1
mp_freezetime - 6
mp_force_pick_time - 15
mp_halftime - 0
mp_match_can_clinch - 1
mp_maxrounds - 0
mp_roundtime - 5
mp_roundtime_defuse - 0
mp_roundtime_hostage - 0
mp_timelimit - 5
mp_warmuptime - 30
mp_warmup_pausetimer - 0
mp_halftime_pausetimer - 0
mp_default_team_winner_no_objective - -1
mp_hostagepenalty - 10
mp_solid_teammates - 1
sv_allow_votes - 1
sv_alltalk - 0
sv_deadtalk - 0
sv_ignoregrenaderadio - 0
mp_teammates_are_enemies - 0
mp_damage_scale_ct_body - 1.0
mp_damage_scale_ct_head - 1.0
mp_damage_scale_t_body - 1.0
mp_damage_scale_t_head - 1.0
mp_friendlyfire - 0
ff_damage_reduction_bullets - 0.1
ff_damage_reduction_grenade - 0.25
ff_damage_reduction_grenade_self - 1
ff_damage_reduction_other - 0.25
mp_limitteams - 2
spec_freeze_panel_extended_time - 0.0
spec_freeze_time - 5.0
mp_forcecamera - 1
mp_respawn_immunitytime - 4.0
mp_respawn_on_death_t - 0
mp_respawn_on_death_ct - 0
mp_display_kill_assists - 1
mp_use_respawn_waves - 0
mp_respawnwavetime_ct - 10.0
mp_respawnwavetime_t - 10.0
mp_randomspawn - 0
mp_randomspawn_los - 1
mp_radar_showall - 0
sv_gravity - 800
sv_accelerate - 5.6
sv_stopspeed - 75
sv_airaccelerate - 10
sv_wateraccelerate - 10
sv_waterfriction - 1
sv_friction - 4.8
sv_bounce - 0
sv_maxvelocity - 3500
sv_maxspeed - 320
mp_ggprogressive_round_restart_delay - 15.0
mp_ggtr_bomb_defuse_bonus - 1.0
mp_ggtr_bomb_detonation_bonus - 1.0
mp_ggtr_bomb_pts_for_flash - 4
mp_ggtr_bomb_pts_for_he - 3
mp_ggtr_bomb_pts_for_molotov - 5
mp_ggtr_bomb_pts_for_upgrade - 2.0
mp_ggtr_bomb_respawn_delay - 0.0
mp_ggtr_end_round_kill_bonus - 1
mp_ggtr_halftime_delay - 0.0
mp_ggtr_last_weapon_kill_ends_half - 0
sv_arms_race_vote_to_restart_disallowed_after - 0
Executing dedicated server config file
Execing config: server.cfg
exec: couldn't exec server.cfg
Execing config: gamemode_competitive.cfg
Unknown command "mp_deathcam_skippable"
Execing config: gamemode_competitive_server.cfg
exec: couldn't exec gamemode_competitive_server.cfg
GameTypes: set convars for game type/mode (classic:0/competitive:1):
  exec {
    exec gamemode_competitive.cfg
    exec gamemode_competitive_server.cfg
  }
Set Gravity 800.0 (0.250 tolerance)
Attempting to precache model, but model name is NULL
Invalid file size for host.txt
Commentary: Could not find commentary data file 'maps/de_dust2_commentary.txt'.

Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Created class baseline: 21 classes, 6320 bytes.
Initializing Steam libraries for secure Internet server
Logging into anonymous gameserver account.
Connection to Steam servers successful.
   Public IP is xxx.xxx.xxx.xxx.
Assigned anonymous gameserver Steam ID [A:1:2395003904(3567)].
VAC secure mode is activated.
sp
Unknown command "sp"


Same as last try.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Wed Aug 07, 2013 3:49 pm

Just to make 100% sure, pull any new changes to the repository and try the above steps again. I made some changes last night, one of which fixed an issue where the logging was not fully setup when an error occurred. This issue caused any errors to not show up and stopped the sp command from being registered. I would imagine that that is the issue you are experiencing.

Satoon
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Wed Aug 07, 2013 4:01 pm

That line causes the issue. http://code.google.com/p/source-python/source/browse/src/core/modules/commands/say_command_wrap.cpp#161

Comment it out by putting two slashes in front of it. ---> // iFlags = 4;
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Wed Aug 07, 2013 4:04 pm

Are you sure about that? I have not had issues on Windows since adding that. Also, that is for SayCommands, so why would that have any baring on this issue?

Satoon

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 22 guests