Order wrong? First activate virt. env, then goto project(manage.py)

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

Moderators: TheM, toffe, NADEO

User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

Fault -1000: 'User unknown

Post by o0Julia0o »

I am getting this error at the start of the pyplanet-server: Fault -1000: 'User unknown

Is this occuring because of this section in the base.py:

Code: Select all

# Dedicated configuration holds the different dedicated servers that the instances will run on including the names of
# the instances.
DEDICATED = {
	'default': {
		'HOST': '127.0.0.1',
		'PORT': '5004',
		'USER': 'MYMANIAPLANETUSERNAME',
		'PASSWORD': 'MYMANIAPLANETPASSWORD',
	}
}
How can i solve this?
Last edited by o0Julia0o on 11 Jul 2020, 19:12, edited 3 times in total.
Fleckman
Posts: 13
Joined: 15 Jun 2010, 11:39

Re: Fault -1000: 'User unknown

Post by Fleckman »

You don't enter your name/Pw here but the name of your server and the PW that was generated for you.

Log on to this site to do so:
https://players.trackmania.com/

(and press "manage)

Image
Last edited by Fleckman on 11 Jul 2020, 18:23, edited 1 time in total.
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

Re: Fault -1000: 'User unknown

Post by o0Julia0o »

Thank you, Fleckman. So Login and Account-ID(the long number)?

Image

Ah, you edited it. But they don´t work, too. I am getting the same error.
Fleckman
Posts: 13
Joined: 15 Jun 2010, 11:39

Re: Fault -1000: 'User unknown

Post by Fleckman »

No, once you create the login a PW will be generated.

Image
Fleckman
Posts: 13
Joined: 15 Jun 2010, 11:39

Re: Fault -1000: 'User unknown

Post by Fleckman »

Looked it up on my server and I was wrong, sorry.

You need to enter the Superadmin-Account of the server (set by you in the dedicated_cfg.txt) and its PW!

DEDICATED = {
'default': {
'HOST': '127.0.0.1',
'PORT': '5000',
'USER': 'SuperAdmin',
'PASSWORD': 'blablabla',
}
}
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

Re: Fault -1000: 'User unknown

Post by o0Julia0o »

Thx! Yes, the MasterServerAccount from the dedicated_cfg.txt.

So it´s the user from: https://players.trackmania.com/player/server
But not the long id-number, but the password you got from creating the dedicated server on this page.

Now it´s working. Leading into the next error ^^: https://forum.maniaplanet.com/viewtopic ... 26&t=46962
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

Re: Fault -1000: 'User unknown

Post by o0Julia0o »

Hmm.. if i add the login-data to the superAdmin-position in the dedicated_cfg.txt, i am getting the "Fault -1000: 'User unknown"-error again:

So at the moment i start the dedicated server with added the login into the SuperAdmin-section i am getting the error:
Image
(I started the dedicated server right after the 4th retry)

part of the dedicated_cfg.txt:
<?xml version="1.0" encoding="utf-8" ?>

<dedicated>
<authorization_levels>
<level>
<name>SuperAdmin</name> -> i can leave that the same or f.e. testname
<password>SuperAdmin</password> -> i can leave that the same or f.e. testword
</level>
<level>
<name>Admin</name>
<password>Admin</password>
</level>
<level>
<name>User</name>
<password>User</password>
</level>
</authorization_levels>

<masterserver_account>
<login></login> -> here i have to fill in the username from here: https://players.trackmania.com/player/server -so the name under login on this picture:
<password></password> -> here i have to fill in the password i got from here: https://ibb.co/09smKyD
</masterserver_account>
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

Order wrong? First activate virt. env, then goto project(manage.py)

Post by o0Julia0o »

i am reading this tutorial: https://pypla.net/en/latest/intro/starting.html
Image

If i go(like said in the tutorial) into the directory:
D:\Pyplanet\Project1
i can´t start the activate.bat, because it is in another folder:
D:\Pyplanet\env\Scripts

So i can´t do stop 3 of the tutorial, too. Because the manage.py-file isn´t in the folder:
D:\Pyplanet\env\Scripts

So the order in the tutorial is wrong, i think. Is has to be like this:
1. acitivate the virtual environment:
D:\Pyplanet\evn\Scripts
activate.bat

2. goto your project-folder(where the mange.py is):
cd D:\Pyplanet\Project1

3. Start Pyplanet
python manage.py start

Have I overlooked something or am I correct?
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: Order wrong? First activate virt. env, then goto project(manage.py)

Post by toffe »

Both orders are correct, the tutorial executes the activate.bat in the different folder directly.
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: Fault -1000: 'User unknown

Post by toffe »

Put the SuperAdmin credentials on top of your dedicated config in the pyplanet dedicated configuration, the account created on the player page should only be filled in the dedicated_cfg.txt, not pyplanet.
Post Reply

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 1 guest