Author Topic: [SOLVED] Load Environment Config Created by saveEnvironment()?  (Read 829 times)

Is there a way to load an environment file created by saveEnvironment()? Or are files created by saveEnvironment() only for use in gamemode.txt files?
« Last Edit: January 06, 2018, 05:07:26 AM by Platypi »

http://swololol.com/rd?f=Server_EnvironmentAutoLoader
This add-on's code will load the environment from saveEnvironment().

http://swololol.com/rd?f=Server_EnvironmentAutoLoader
This add-on's code will load the environment from saveEnvironment().

Thanks! This seems to be the code I was looking for (from Swollow's add-on)

Code: [Select]
%res = GameModeGuiServer::ParseGameModeFile(%file, 1);

EnvGuiServer::getIdxFromFilenames();
EnvGuiServer::SetSimpleMode();

if(!$EnvGuiServer::SimpleMode)     
{
EnvGuiServer::fillAdvancedVarsFromSimple();
EnvGuiServer::SetAdvancedMode();
}