Raised This Month: $ Target: $400
 0% 

Unknown command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kevinnashsummer92
Member
Join Date: May 2011
Old 01-12-2014 , 09:23   --------------------
Reply With Quote #1

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

Last edited by kevinnashsummer92; 04-26-2024 at 16:32.
kevinnashsummer92 is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 01-12-2014 , 09:35   Re: Unknown command
Reply With Quote #2

Note that commands and ConVars are very different. Only the latter should go in server.cfg. What ConVar are you trying to use?
__________________
11530 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 01-13-2014 , 08:43   Re: Unknown command
Reply With Quote #3

Quote:
Originally Posted by Dispenz0r View Post
Fixed it

Please close thread
Not helping!
Quote:
Originally Posted by The rules page
if you solve your problem post the solution for others to find.
WildCard65 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 01-15-2014 , 08:23   Re: Unknown command
Reply With Quote #4

Quote:
Originally Posted by Dispenz0r View Post
It's because i placed server.cfg in a wrong directory

Was that helpful enough?
yes.
WildCard65 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-15-2014 , 13:32   Re: Delete thread
Reply With Quote #5

if i remember right server.cfg fires before plugins are loaded completely.
Mitchell is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-15-2014 , 14:19   Re: Unknown command
Reply With Quote #6

Quote:
Originally Posted by 11530 View Post
Note that commands and ConVars are very different. Only the latter should go in server.cfg. What ConVar are you trying to use?
Commands can also go in server.cfg. sv_pure used to go there in Source 2009 games before Valve broke it in the SteamCMD update (it now has to go on the server startup line).
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 01-15-2014 , 15:56   Re: Delete thread
Reply With Quote #7

Quote:
Originally Posted by Mitchell View Post
if i remember right server.cfg fires before plugins are loaded completely.
You are remembering wrong. server.cfg fires when (slightly after?) the map starts, and plugins are loaded before then. This is why the OnConfigsExecuted forward exists.
__________________
Dr. McKay is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-15-2014 , 16:46   Re: Delete thread
Reply With Quote #8

The order of things happening are:

Server Loads
VSP plugins load as part of the server loading (MetaMod: Source)
MetaMod: Source plugins load as part of the server loading (SourceMod)
SourceMod plugins load as part of the server loading (firing AskPluginLoad2 then OnPluginStart)
Server executes autoexec.cfg
SourceMod fires OnAllPluginsLoaded

-- Everything after this point repeats every map
Server starts map
Server executes servercfgfile (server.cfg by default)
Server executes map's config file
SDKHooks fires OnLevelInit
SourceMod fires OnMapStart
SourceMod executes sourcemod.cfg
SourceMod fires OnAutoConfigsBuffered
SourceMod executes each plugin's config file
SourceMod fires OnConfigsExecuted
Map plays
SourceMod fires OnMapEnd
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 01-15-2014 at 16:50.
Powerlord is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-15-2014 , 22:43   Re: Delete thread
Reply With Quote #9

i was thinking autoexec then.
edit: what if you set a play to reload every map restart? would it be reloaded before sourcemod.cfg and after mapstart?

Last edited by Mitchell; 01-15-2014 at 22:44.
Mitchell is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-16-2014 , 15:05   Re: Delete thread
Reply With Quote #10

Quote:
Originally Posted by Mitchell View Post
i was thinking autoexec then.
edit: what if you set a play to reload every map restart? would it be reloaded before sourcemod.cfg and after mapstart?
I'm not sure when plugins are reloaded every map. I assume it would happen before MapStart is fired.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply



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 17:34.


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