Adding plugins to PyPlanet

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

Moderators: TheM, toffe, NADEO

Post Reply
Ehn
Posts: 3
Joined: 30 Mar 2019, 02:30

Adding plugins to PyPlanet

Post by Ehn » 30 Mar 2019, 03:04

Hello,

I am running a server with PyPlanet and I have troubles enabling all apps et adding plugins on the server: I am renting the server from a host and I have access to the apps.json and base.json files. I edited the first one to add the lines mentioned in the user guide (Enabling Apps), but I don't see the options that are supposed to be there in the server once I go in the settings (//settings). In there I have around 30 options which does not reflect all the options I should have once I enabled the apps.

Also, I found a useful plugin that I would like to add in the server, however I have no clue how to add it and enable it. Is there anything I can do with the files I have found ? I have Python and MySQL installed but I am missing the information on how to use them to access the server.

Any help would be appreciated, thanks a lot !

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

Re: Adding plugins to PyPlanet

Post by HaagseSmurf » 30 Mar 2019, 10:07

Hi Ehn,

Perhaps you can show the apps.py file here so we can see which apps you have enabled.
Can you also then add the names of the apps you want to enable and the useful plugin (in PyPlanet all plugins are called aps) you have found.

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.

Ehn
Posts: 3
Joined: 30 Mar 2019, 02:30

Re: Adding plugins to PyPlanet

Post by Ehn » 30 Mar 2019, 18:24

Hello,

Here's the text I have in my apps.json file:

Code: Select all

{
  "APPS": {
    "nc1eu": [
      "pyplanet.apps.contrib.admin",
      "pyplanet.apps.contrib.jukebox",
      "pyplanet.apps.contrib.karma",
      "pyplanet.apps.contrib.local_records",
      "pyplanet.apps.contrib.dedimania",
      "pyplanet.apps.contrib.players",
      "pyplanet.apps.contrib.transactions",
      "pyplanet.apps.contrib.sector_times",
      "pyplanet.apps.contrib.clock",
      "pyplanet.apps.contrib.best_cps",
      "pyplanet.apps.contrib.voting",
      "pyplanet.apps.contrib.live_rankings",
      "pyplanet.apps.contrib.queue",
      "pyplanet.apps.contrib.ads",
      "pyplanet.apps.contrib.music_server"
    ]
  }
}
And here's what I want to have in the file, I c/c the next and replace (except the "default", I keep the line that I have), but nothing changes.

Code: Select all

{
  "APPS": {
    "default": [
      "pyplanet.apps.contrib.admin",
      "pyplanet.apps.contrib.jukebox",
      "pyplanet.apps.contrib.karma",
      "pyplanet.apps.contrib.local_records",
      "pyplanet.apps.contrib.dedimania",
      "pyplanet.apps.contrib.players",
      "pyplanet.apps.contrib.transactions",

      "pyplanet.apps.contrib.live_rankings",
      "pyplanet.apps.contrib.sector_times",

      "pyplanet.apps.contrib.clock",
      "pyplanet.apps.contrib.best_cps",
      "pyplanet.apps.contrib.voting",

      "pyplanet.apps.contrib.queue",
      "pyplanet.apps.contrib.ads",
      "pyplanet.apps.contrib.music_server"
    ]
  }
}
The app that I would like to add to the server is the current CP one, cannot post the link due to the rules.

Thanks for your help !

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

Re: Adding plugins to PyPlanet

Post by toffe » 31 Mar 2019, 11:04

Hi Ehn,

The CurrentCP is not yet bundled with PyPlanet by default. It will be in the future.
For now you have to use the separate one which can be installed with the instructions on the Github page https://github.com/teemann/currentcps

Do note, there is major bug in this version which results in a massive memory leak with lots and lots of players and lots of CP's.

Feel free to reply if you need any further assistance.
Toffe,
PyPlanet Team

Ehn
Posts: 3
Joined: 30 Mar 2019, 02:30

Re: Adding plugins to PyPlanet

Post by Ehn » 31 Mar 2019, 17:46

Hello Toffe,

Thank you for the answer, I have two more questions since I'm a beginner and not used to working with Python/Virtual environments.

Is there any way for me to connect to the virtual environment to install the app, since I am renting the server from a host ?

Also, I mentioned that I have very few options in my //settings in game (30 if I recall correctly), does it look like the correct amount of settings available with the apps I activated or am I missing something ? Also the file I'm working on is apps.json, is it different from the apps dot py (had to remove the actual dot due to forum rules) which I do not seem to have access to ?

Thank you very much, keep up the good work PyPlanet looks really promising.

Post Reply

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 1 guest