Raised This Month: $12 Target: $400
 3% 

Server.cfg not executing


Post New Thread Reply   
 
Thread Tools Display Modes
Halt
Senior Member
Join Date: Jan 2015
Location: Black Mesa
Old 09-15-2017 , 09:07   Re: Server.cfg not executing
Reply With Quote #11

Quote:
Originally Posted by Phaiz View Post
If you think the file isn't executing type /rcon exec server.cfg

or do it via /admin or use the same command in a terminal. You should see a wall of text in game when you exec it.
I see the wall of script but still certain cvars are not setting. I.e. most items under MP Cvars. Perhaps I miss named this thread. Nonetheless why would those not being executing?
Halt is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-15-2017 , 14:15   Re: Server.cfg not executing
Reply With Quote #12

Perhaps one of plugins block your settings.
Try execute file without addons

*
Attach that config file in your post
__________________
Do not Private Message @me

Last edited by Bacardi; 09-15-2017 at 14:15.
Bacardi is offline
Halt
Senior Member
Join Date: Jan 2015
Location: Black Mesa
Old 09-15-2017 , 14:45   Re: Server.cfg not executing
Reply With Quote #13

My server config dir & I attached my server.cfg its very empty. Also I only have four custom plugins. Mine (ZombieX_Reloaded & EngiLimit) TidyChat, & Thirdperson



My plugins


P.S. Not my actual rcon password.
Attached Files
File Type: cfg server.cfg (606 Bytes, 88 views)

Last edited by Halt; 09-15-2017 at 14:46.
Halt is offline
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 09-15-2017 , 16:05   Re: Server.cfg not executing
Reply With Quote #14

As said above plugins can override. Might help if you post exactly which cvars aren't being changed when you execute the cfg.
__________________
Phaiz is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-15-2017 , 16:15   Re: Server.cfg not executing
Reply With Quote #15

...ok
Use cheat cvar
sm_cvar tf_sentrygun_damage "5"

and plugin for this, game reset this cvar automatically after configs
PHP Code:
ConVar mp_waitingforplayers_cancel;

public 
void OnPluginStart()
{
    
mp_waitingforplayers_cancel FindConVar("mp_waitingforplayers_cancel");
    
mp_waitingforplayers_cancel.SetBounds(ConVarBound_Lowertrue1.0);


Btw, read cvar decriptions.
Code:
"mp_teams_unbalance_limit" = "30.000000" ( def. "1" ) min. 0.000000 max. 30.000000
 game replicated
 - Teams are unbalanced when one team has this many more players than the other team. (0 disables heck)
"mp_autoteambalance" = "0" ( def. "1" ) min. 0.000000 max. 2.000000
 game notify
 - Automatically balance the teams based on mp_teams_unbalance_limit. 0 = off, 1 = forcibly switch, 2 = ask volunteers
__________________
Do not Private Message @me
Bacardi is offline
Halt
Senior Member
Join Date: Jan 2015
Location: Black Mesa
Old 09-15-2017 , 17:03   Re: Server.cfg not executing
Reply With Quote #16

Quote:
Originally Posted by Bacardi View Post
...ok
Use cheat cvar
sm_cvar tf_sentrygun_damage "5"

and plugin for this, game reset this cvar automatically after configs
PHP Code:
ConVar mp_waitingforplayers_cancel;

public 
void OnPluginStart()
{
    
mp_waitingforplayers_cancel FindConVar("mp_waitingforplayers_cancel");
    
mp_waitingforplayers_cancel.SetBounds(ConVarBound_Lowertrue1.0);


Btw, read cvar decriptions.
Code:
"mp_teams_unbalance_limit" = "30.000000" ( def. "1" ) min. 0.000000 max. 30.000000
 game replicated
 - Teams are unbalanced when one team has this many more players than the other team. (0 disables heck)
"mp_autoteambalance" = "0" ( def. "1" ) min. 0.000000 max. 2.000000
 game notify
 - Automatically balance the teams based on mp_teams_unbalance_limit. 0 = off, 1 = forcibly switch, 2 = ask volunteers
Rip okay then I'll remove the unbalancelimit. Thanks for that tip

I'm going to test that tonight thanks Bacardi!
Halt is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-15-2017 , 17:09   Re: Server.cfg not executing
Reply With Quote #17

Hahaha.... I think that plugin will halt your game start
Don't use it.

*edit
Try this instead

Set this cvar in your server.cfg, if this cvar is disable, plugin again halt game start.
mp_enableroundwaittime 1


PHP Code:
public void OnPluginStart()
{
    
HookEventEx("teamplay_round_active"teamplay_round_active);
}

public 
void teamplay_round_active(Event event, const char[] namebool dontBroadcast)
{
    
ConVar mp_waitingforplayers_cancel FindConVar("mp_waitingforplayers_cancel");
    
mp_waitingforplayers_cancel.SetInt(1);

__________________
Do not Private Message @me

Last edited by Bacardi; 09-15-2017 at 17:53.
Bacardi is offline
Halt
Senior Member
Join Date: Jan 2015
Location: Black Mesa
Old 09-16-2017 , 03:12   Re: Server.cfg not executing
Reply With Quote #18

So both methods froze my game start but I added a bool to check the first time we end the waiting time like so

PHP Code:
bool HasEndedWaitingTime false;
public 
void teamplay_round_active(Event event, const char[] namebool dontBroadcast)
{
    if (!
HasEndedWaitingTime)
    {
        
ConVar mp_waitingforplayers_cancel FindConVar("mp_waitingforplayers_cancel");
        
mp_waitingforplayers_cancel.SetInt(1);
        
PrintToChatAll("Waiting For Players Canceled");
        
HasEndedWaitingTime true;
        
ServerCommand("mp_restartgame 1");
    }
    else if(
HasEndedWaitingTimeCreateTimer(25.0StartTheRound);

Perhaps there is a more "proper" way but as of now this fixes the errors in my mod so I'm going to run with it.
Halt is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-16-2017 , 16:09   Re: Server.cfg not executing
Reply With Quote #19

Out of curiosity, why are you trying to remove Waiting for Players time?

If you think it's too long, there is a hidden cvar you can change to shorten it...

Code:
// Shorten Waiting for Players to 20 seconds
sm_cvar mp_waitingforplayers_time 20
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-16-2017 , 16:35   Re: Server.cfg not executing
Reply With Quote #20

brag



Code:
find waiting
"ent_cancelpendingentfires"
 game
 - Cancels all ent_fire created outputs that are currently waiting for their del
ay to expire.
"ent_step"
 game cheat
 - When 'ent_pause' is set this will step through one waiting input / output mes
sage at a time.
"mp_waitingforplayers_restart" = "0"
 game
 - Set to 1 to start or restart the WaitingForPlayers period.
"mp_waitingforplayers_cancel" = "0"
 game
 - Set to 1 to end the WaitingForPlayers period.
"mp_match_end_at_timelimit" = "0"
 game notify
 - Allow the match to end when mp_timelimit hits instead of waiting for the end
of the current round.
__________________
Do not Private Message @me

Last edited by Bacardi; 09-16-2017 at 16:37. Reason: nvm
Bacardi is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode