View Single Post
Author Message
condolent
AlliedModders Donor
Join Date: Jan 2016
Location: gc_sLocation;
Old 05-18-2020 , 15:37   AutoExecConfig not creating file
Reply With Quote #1

AutoExecConfig is not creating the config file all of a sudden.

It worked fine one day ago, then recently I wanted to reset it so I deleted the .cfg file. Now it won't recreate one when I restart the server.

My code:
Code:
public void OnPluginStart() {
	// CVars
	AutoExecConfig_SetFile("warden", "BetterWarden"); // What's the configs name and location?
	AutoExecConfig_SetCreateFile(true); // Create config if it does not exist
	...
	AutoExecConfig_CreateConVar(...);
	...
	AutoExecConfig_ExecuteFile(); // Execute the config
	AutoExecConfig_CleanFile(); // Clean the .cfg from spaces etc.
}
Anyone know why this is happening? I can't seem to find any errors in the logs either.

Another issue is that the connection to a database is not working. So it would seem that the plugin is not initiating properly. Which is really weird..

EDIT
When in-game and doing sm_cvar my_cvar it finds the cvar and its value. So the CVars are being created, but not the actual config file somehow...
__________________

Last edited by condolent; 05-19-2020 at 15:35.
condolent is offline