[SOLVED] Issue when starting PyPlanet

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

Moderators: TheM, toffe, NADEO

prevonuty
Posts: 16
Joined: 11 Apr 2020, 13:47

[SOLVED] Issue when starting PyPlanet

Post by prevonuty »

Hello, when I am running PyPlanet by the "python manage.py start" command on the cmd, I got this :

Code: Select all

DEBUG    [Main][pyplanet.core.management.commands.start] Initiated configuration and environment... (debug on, means no error reporting and verbose output
INFO     [Main][pyplanet.core.management.commands.start] -------------------------------[  PyPlanet v0.7.4  ]-------------------------------
DEBUG    [Main][pyplanet.god.pool] Starting watchdog... watching 1 instances
INFO     [MainThread][pyplanet.god.process] Starting pool process for 'default'...
DEBUG    [default][asyncio] Using selector: SelectSelector
DEBUG    [default][pyplanet.core.gbx.remote] Trying to connect to the dedicated server...
DEBUG    [default][pyplanet.core.gbx.remote] Dedicated connection established!
DEBUG    [default][pyplanet.core.gbx.remote] GBX: Received response to handler 2147483648, method: None
DEBUG    [default][pyplanet.core.gbx.remote] GBX: Received response to handler 2147483649, method: None
DEBUG    [default][pyplanet.core.gbx.remote] GBX: Received response to handler 2147483650, method: None
DEBUG    [default][pyplanet.core.gbx.remote] GBX: Received response to handler 2147483651, method: None
DEBUG    [default][pyplanet.core.gbx.remote] GBX: Received response to handler 2147483652, method: None
DEBUG    [default][pyplanet.core.gbx.remote] GBX: Received response to handler 2147483653, method: None
DEBUG    [default][pyplanet.core.gbx.remote] GBX: Received response to handler 2147483654, method: None
ERROR    [default][pyplanet.core.instance] <Fault -1000: 'Not in script mode.'>
Traceback (most recent call last):
  File "C:\Users\alpha\AppData\Local\Programs\Python\Python37\lib\site-packages\pyplanet\core\instance.py", line 127, in start
    self.loop.run_until_complete(self._start())
  File "C:\Users\alpha\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 568, in run_until_complete
    return future.result()
  File "C:\Users\alpha\AppData\Local\Programs\Python\Python37\lib\site-packages\pyplanet\core\instance.py", line 176, in _start
    await self.gbx.connect()
  File "C:\Users\alpha\AppData\Local\Programs\Python\Python37\lib\site-packages\pyplanet\core\gbx\client.py", line 134, in connect
    await super().connect()
  File "C:\Users\alpha\AppData\Local\Programs\Python\Python37\lib\site-packages\pyplanet\core\gbx\remote.py", line 148, in connect
    settings = await self.execute('GetModeScriptSettings')
  File "C:\Users\alpha\AppData\Local\Programs\Python\Python37\lib\site-packages\pyplanet\core\gbx\remote.py", line 201, in execute
    return await asyncio.wait_for(future, timeout)
  File "C:\Users\alpha\AppData\Local\Programs\Python\Python37\lib\asyncio\tasks.py", line 412, in wait_for
    return fut.result()
  File "C:\Users\alpha\AppData\Local\Programs\Python\Python37\lib\site-packages\pyplanet\core\gbx\remote.py", line 215, in listen
    data, method = loads(body, use_builtin_types=True)
  File "C:\Users\alpha\AppData\Local\Programs\Python\Python37\lib\xmlrpc\client.py", line 1021, in loads
    return u.close(), u.getmethodname()
  File "C:\Users\alpha\AppData\Local\Programs\Python\Python37\lib\xmlrpc\client.py", line 656, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault -1000: 'Not in script mode.'>
INFO     [default][root] Apps successfully stopped!
CRITICAL [Main][pyplanet.god.pool] The instance 'default' just died. We will not restart!
CRITICAL [Main][pyplanet.god.pool] All instances died. Quitting now...
So I understood that the "default" is what it is wrote under "POOLS" in base.py
But I still don't know how to solve this problem. I hope someone will help me with this :D
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Issue when starting PyPlanet

Post by TMarc »

did you notice this error? Actually the first error, and it is repeated later again:

Code: Select all

ERROR    [default][pyplanet.core.instance] <Fault -1000: 'Not in script mode.'>
Probably your dedicated server does not have the right configuration
prevonuty
Posts: 16
Joined: 11 Apr 2020, 13:47

Re: Issue when starting PyPlanet

Post by prevonuty »

Yes but I don't understand what does "script mode" mean. When you talk about the configuration of the dedicated server, do you talk about the dedicated_cfg.txt file ? If yes, I am pretty sure I correctly followed all the steps of configuring this server so I really don't understand how it is possible.
HaagseSmurf
Posts: 2291
Joined: 13 Apr 2011, 19:46
Contact:

Re: Issue when starting PyPlanet

Post by HaagseSmurf »

Its the matchsettingsfile you have to set on scripted moded!

<game_mode>0</game_mode>
that means that you want to use a scripted mode,
so you have to tell which mode you want to use in this line :
<script_name></script_name>

Good luck!
HaagseSmurf

Check Smurfen.net and / or Smurfen.nu for all info.
You can also like our facebookpage at FaceBook Smurfen.net.
Or just visit
our Smurfen.net Canyon servers,
the Smurfen.net Valley and Royalserver.
prevonuty
Posts: 16
Joined: 11 Apr 2020, 13:47

Re: Issue when starting PyPlanet

Post by prevonuty »

In my matchsettings file I have only the maplist.txt file. I already have the TimeAttack script in it :

Code: Select all

<script_name><![CDATA[TimeAttack.Script.txt]]></script_name>
I tried to just have this :

Code: Select all

<script_name>TimeAttack.Script.txt</script_name>
But the issue is still going on, so I guess this is not the problem ? Or do I misunderstood something ?
HaagseSmurf
Posts: 2291
Joined: 13 Apr 2011, 19:46
Contact:

Re: Issue when starting PyPlanet

Post by HaagseSmurf »

You also have to set this on 0
<game_mode>0</game_mode

Greetz
HaagseSmurf

Check Smurfen.net and / or Smurfen.nu for all info.
You can also like our facebookpage at FaceBook Smurfen.net.
Or just visit
our Smurfen.net Canyon servers,
the Smurfen.net Valley and Royalserver.
prevonuty
Posts: 16
Joined: 11 Apr 2020, 13:47

Re: Issue when starting PyPlanet

Post by prevonuty »

Yes, it is actually. All seems good but this error still appear somehow.
prevonuty
Posts: 16
Joined: 11 Apr 2020, 13:47

Re: Issue when starting PyPlanet

Post by prevonuty »

There is nobody who knows how to solve this issue ?

Code: Select all

ERROR    [default][pyplanet.core.instance] <Fault -1000: 'Not in script mode.'>
Because I have already put the script "TimeAttack.Script.txt" in my matchsettings file.
User avatar
TMarc
Posts: 15255
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Issue when starting PyPlanet

Post by TMarc »

Perhaps you need to add the relative path to this script?
We don't know how you have setup your server, which tutorial you followed (link?) etc.
prevonuty
Posts: 16
Joined: 11 Apr 2020, 13:47

Re: Issue when starting PyPlanet

Post by prevonuty »

The thing is that I'm a pretty big nab, so I don't know what you mean by "relative path" to the script. Also, I have followed this tutorial, I did exactly the same : viewtopic.php?f=261&t=43622&p=295332#p295335
Locked

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 1 guest