To fix it:
You can use a servercontroller to add a melee map in this case it will switch automatically to a new script.
MLEPP can do it and Foxcontrol.
Or:
to switch from Modes:
farfa wrote:If you want to start a dedicated server to test a script, you can't edit easily your script.
This script will give you this power![]()
You just have to download manialive, no need to setup it. It just use it as a library.
Then execute the following code by replacing what it needs to be replaced (everything between [])edit by w1lla:Code: Select all
<?php require [PathToManiaLive].'/libraries/autoload.php'; $config = \ManiaLive\DedicatedApi\Config::getInstance(); $config->host = '[yourHostName]'; $config->port = [yourServerPort]; $config->password = [yourSuperAdminPassword]; $config->timeout = 6; $myScriptText = file_get_contents('[Path_to_my_script]'); var_dump(\ManiaLive\DedicatedApi\Connection::getInstance()->setModeScripttext($myScriptText)); ?>
Changed SetRule to SetMode