[SOLVED] Issue when starting PyPlanet

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

Moderators: TheM, toffe, NADEO

HaagseSmurf
Posts: 2200
Joined: 13 Apr 2011, 19:46
Contact:

Re: Issue when starting PyPlanet

Post by HaagseSmurf » 12 Apr 2020, 20:21

I compared the files with the files we use for our servers.
The difference is that you use in your dedicated.cfg this and we dont:

Code: Select all

<title>TMStadium@nadeo</title>		<!-- SMStorm, TMCanyon, ... -->
Instead we have it in our maplist.txt

Code: Select all

<title>TMStadium@nadeo</title>
Compare both, maybe it helps, i am not sure.

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 » 12 Apr 2020, 20:56

I compared both, and apparently the only thing that changed is that :

Code: Select all

xmlrpc.client.Fault: <Fault -1000: 'No current script.'>
Instead of what I had before :

Code: Select all

xmlrpc.client.Fault: <Fault -1000: 'Not in script mode.'>
I don't know if this is a good sign or not.

Edit : after getting back to what I had before in my dedicated_cfg.txt, I don't have this error anymore :

Code: Select all

xmlrpc.client.Fault: <Fault -1000: 'Not in script mode.'>
But I keep have this one now :

Code: Select all

xmlrpc.client.Fault: <Fault -1000: 'No current script.'>

reaby
Posts: 1028
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: Issue when starting PyPlanet

Post by reaby » 12 Apr 2020, 21:32

Let me just drop this here, instead of spotting and correcting all the mistakes ...
viewtopic.php?f=261&t=43622

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

Re: Issue when starting PyPlanet

Post by prevonuty » 12 Apr 2020, 21:53

The thing is that I used your tutorial to make my dedicated server and it works. The problem is not the dedicated server, the problem is PyPlanet right now.

reaby
Posts: 1028
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: Issue when starting PyPlanet

Post by reaby » 12 Apr 2020, 22:16

well, maybe i need to point... there's this differentials towards default config:
* <client_port> should be 0 (it's at 5000 at your config)
* as well you don't comply with 80k ladder server rules even if you have raised the limit at players page, please revert at 0-50000.
* if you run dedicated at same computer you play game, add 1 to xmlrpc port (so it reads 5001 and correct this as well at pyplanet config)

can you try once again with this corrections ?

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

Re: Issue when starting PyPlanet

Post by prevonuty » 12 Apr 2020, 22:30

Now 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
ERROR    [default][pyplanet.core.instance] <Fault -1000: 'Password incorrect.'>
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 132, in connect
    await self.execute('Authenticate', self.user, self.password)
  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: 'Password incorrect.'>
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...
Plus I don't understand what I don't comply with with 80k ladder server. I've paid enough planets to have "0-80k LP" on my Player Page, on Maniaplanet.com. Please I would appreciate how to comply with 80k ladder server because I don't get it.

reaby
Posts: 1028
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: Issue when starting PyPlanet

Post by reaby » 12 Apr 2020, 22:51

Please, read the tutorial again.
It all reads at section 3.1 of the tutorial, please read again as you might get ban if you don't comply the ladder server rules.
if you're not sure about the rules, revert it to 50000.
What comes to your incorrect password issue, you need to fill pyplanet the value shown below (defaults to: SuperAdmin, i doubt empty value will work)

Code: Select all

<dedicated>
	<authorization_levels>
		<level>
			<name>SuperAdmin</name>
			<password>USE THE VALUE AT HERE TO PYPLANET</password>
		</level>

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

Re: Issue when starting PyPlanet

Post by prevonuty » 12 Apr 2020, 23:19

First, thanks for the password issue, Pyplanet starts now, thanks again!

Second, I did check and indeed I made some mistakes. Tell me if I misunderstood or not this line "Validation seed, Referee[1]". So i did this :

Code: Select all

<referee_validation_mode>1</referee_validation_mode>
Indeed I haven't read that we must not put password for both players and spectators. So I did correct it. And now I guess that all is good, unless I keep doing something wrong with ladder server but I hope not.

reaby
Posts: 1028
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: Issue when starting PyPlanet

Post by reaby » 13 Apr 2020, 00:01

prevonuty wrote:
12 Apr 2020, 23:19
First, thanks for the password issue, Pyplanet starts now, thanks again!
Cool, you got it working finally :3
prevonuty wrote:
12 Apr 2020, 23:19
Second, I did check and indeed I made some mistakes. Tell me if I misunderstood or not this line "Validation seed, Referee[1]". So i did this :

Code: Select all

<referee_validation_mode>1</referee_validation_mode>
This is fine, you may as well wish to enable this setting:

Code: Select all

<use_changing_validation_seed>True</use_changing_validation_seed>
next thing is to have a good time with friends on a brand new server :)
:pil :pil

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

Re: Issue when starting PyPlanet

Post by prevonuty » 13 Apr 2020, 00:09

Okay, I enabled it ! All works really good, thanks you again, together with your tutorial :thumbsup:

Locked

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 1 guest