[SOLVED] Error: Not in script mode.

Python 3 Server Controller for Trackmania and Shootmania for script-only modes.

Moderators: TheM, toffe, NADEO

Post Reply
alphaleon
Posts: 15
Joined: 18 Feb 2014, 11:22

[SOLVED] Error: Not in script mode.

Post by alphaleon » 16 May 2017, 20:38

Hey PyPlanet devs,

I'm having some trouble starting pyplanet. It does connect to the server but keep getting the error: "Not in script mode.". I even copied the "PyPlanet/tests/_scripts/travis/dedicated/matchsettings_1.txt" file from your github but still keep getting that exact same error.

Error log:

Code: Select all

INFO     [Main][pyplanet.core.management.commands.start] Initiated configuration and environment...
INFO     [Main][pyplanet.core.management.commands.start] -------------------------------[  PyPlanet v0.2.1  ]-------------------------------
INFO     [MainThread][pyplanet.god.process] Starting pool process for 'default'...
ERROR    [default][pyplanet.core.instance] <Fault -1000: 'Not in script mode.'>
Traceback (most recent call last):
  File "C:\server\servercontroller\env\lib\site-packages\pyplanet\core\instance.py", line 96, in start
    self.loop.run_until_complete(self._start())
  File "C:\Python36\Lib\asyncio\base_events.py", line 466, in run_until_complete
    return future.result()
  File "C:\server\servercontroller\env\lib\site-packages\pyplanet\core\instance.py", line 130, in _start
    await self.gbx.connect()
  File "C:\server\servercontroller\env\lib\site-packages\pyplanet\core\gbx\client.py", line 114, in connect
    await super().connect()
  File "C:\server\servercontroller\env\lib\site-packages\pyplanet\core\gbx\remote.py", line 123, in connect
    settings = await self.execute('GetModeScriptSettings')
  File "C:\server\servercontroller\env\lib\site-packages\pyplanet\core\gbx\remote.py", line 175, in execute
    return await asyncio.wait_for(future, 45.0)  # Wait for maximum of 45 seconds, then force complete future.
  File "C:\Python36\Lib\asyncio\tasks.py", line 352, in wait_for
    return fut.result()
  File "C:\server\servercontroller\env\lib\site-packages\pyplanet\core\gbx\remote.py", line 193, in listen
    data, method = loads(body, use_builtin_types=True)
  File "C:\Python36\Lib\xmlrpc\client.py", line 1021, in loads
    return u.close(), u.getmethodname()
  File "C:\Python36\Lib\xmlrpc\client.py", line 656, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault -1000: 'Not in script mode.'>
Process Process-1:
Traceback (most recent call last):
  File "C:\Python36\Lib\multiprocessing\process.py", line 249, in _bootstrap
    self.run()
  File "C:\Python36\Lib\multiprocessing\process.py", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "C:\server\servercontroller\env\lib\site-packages\pyplanet\god\process.py", line 37, in _run
    instance.start()
  File "C:\server\servercontroller\env\lib\site-packages\pyplanet\core\instance.py", line 96, in start
    self.loop.run_until_complete(self._start())
  File "C:\Python36\Lib\asyncio\base_events.py", line 466, in run_until_complete
    return future.result()
  File "C:\server\servercontroller\env\lib\site-packages\pyplanet\core\instance.py", line 130, in _start
    await self.gbx.connect()
  File "C:\server\servercontroller\env\lib\site-packages\pyplanet\core\gbx\client.py", line 114, in connect
    await super().connect()
  File "C:\server\servercontroller\env\lib\site-packages\pyplanet\core\gbx\remote.py", line 123, in connect
    settings = await self.execute('GetModeScriptSettings')
  File "C:\server\servercontroller\env\lib\site-packages\pyplanet\core\gbx\remote.py", line 175, in execute
    return await asyncio.wait_for(future, 45.0)  # Wait for maximum of 45 seconds, then force complete future.
  File "C:\Python36\Lib\asyncio\tasks.py", line 352, in wait_for
    return fut.result()
  File "C:\server\servercontroller\env\lib\site-packages\pyplanet\core\gbx\remote.py", line 193, in listen
    data, method = loads(body, use_builtin_types=True)
  File "C:\Python36\Lib\xmlrpc\client.py", line 1021, in loads
    return u.close(), u.getmethodname()
  File "C:\Python36\Lib\xmlrpc\client.py", line 656, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault -1000: 'Not in script mode.'>
CRITICAL [Main][pyplanet.god.pool] The instance 'default' just died. We will not restart!
CRITICAL [Main][pyplanet.god.pool] All instances died. Quitting now...

My matchsettings:

Code: Select all

?xml version="1.0" encoding="utf-8" ?>
<playlist>
	<gameinfos>
		<game_mode>0</game_mode>
		<chat_time>10000</chat_time>
		<finishtimeout>1</finishtimeout>
		<allwarmupduration>0</allwarmupduration>
		<disablerespawn>0</disablerespawn>
		<forceshowallopponents>0</forceshowallopponents>
		<script_name>TimeAttack.Script.txt</script_name>
		<rounds_pointslimit>50</rounds_pointslimit>
		<rounds_usenewrules>0</rounds_usenewrules>
		<rounds_forcedlaps>0</rounds_forcedlaps>
		<rounds_pointslimitnewrules>5</rounds_pointslimitnewrules>
		<team_pointslimit>5</team_pointslimit>
		<team_maxpoints>6</team_maxpoints>
		<team_usenewrules>0</team_usenewrules>
		<team_pointslimitnewrules>5</team_pointslimitnewrules>
		<timeattack_limit>300000</timeattack_limit>
		<timeattack_synchstartperiod>0</timeattack_synchstartperiod>
		<laps_nblaps>5</laps_nblaps>
		<laps_timelimit>0</laps_timelimit>
		<cup_pointslimit>100</cup_pointslimit>
		<cup_roundsperchallenge>5</cup_roundsperchallenge>
		<cup_nbwinners>3</cup_nbwinners>
		<cup_warmupduration>2</cup_warmupduration>
	</gameinfos>

	<hotseat>
		<game_mode>0</game_mode>
		<time_limit>300000</time_limit>
		<rounds_count>5</rounds_count>
	</hotseat>

	<filter>
		<is_lan>1</is_lan>
		<is_internet>1</is_internet>
		<is_solo>0</is_solo>
		<is_hotseat>0</is_hotseat>
		<sort_index>1000</sort_index>
		<random_map_order>0</random_map_order>
	</filter>

	<startindex>0</startindex>
	<map>
    <file>are these the new dirt blocks_.Map.Gbx</file>
  </map>
</playlist>
I'm using the most recent version of pyplanet and the dedicated maniaplanet server.

User avatar
toffe
Posts: 622
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: Error: Not in script mode.

Post by toffe » 16 May 2017, 20:53

Are you sure you sure you are using the latest versions of both and are connecting to the right server?
This seems like a very weird situation.

Toffe
ManiaPlanet Toolkit: topic + download app.
ManiaCalendar: http://maniacalendar.com / manialink
ManiaCDN: topic
PyPlanet: Python Server Controller Image

alphaleon
Posts: 15
Joined: 18 Feb 2014, 11:22

Re: Error: Not in script mode.

Post by alphaleon » 16 May 2017, 21:01

Yes indeed a very strange situation. Haven't done any other configruation besides that. I installed and downloaded both the dedicated maniaplanet server(todays version) and pyplanet this evening so they both should be using that latest version.

User avatar
toffe
Posts: 622
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: Error: Not in script mode.

Post by toffe » 03 Jun 2017, 12:07

Do you still have this issue, also with the latest version of the dedicated + PyPlanet?
ManiaPlanet Toolkit: topic + download app.
ManiaCalendar: http://maniacalendar.com / manialink
ManiaCDN: topic
PyPlanet: Python Server Controller Image

cockneyrebel
Posts: 37
Joined: 19 Sep 2011, 15:43
Location: Recklinghausen
Contact:

Re: Error: Not in script mode.

Post by cockneyrebel » 14 Nov 2017, 19:00

Hi

<?xml version="1.0" encoding="utf-8" ?>
<playlist>
<gameinfos>
<game_mode>0</game_mode>
<script_name>TimeAttack.Script.txt</script_name> <------------------------- Missing parts
<title>TMCanyon@nadeo</title> <---------------------------------------------------Missing parts
<chat_time>14000</chat_time>
<finishtimeout>0</finishtimeout>
<allwarmupduration>0</allwarmupduration>
<disablerespawn>0</disablerespawn>
<forceshowallopponents>0</forceshowallopponents>
</gameinfos>

I hope that is ^^
Joe

Post Reply

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 1 guest