Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 1.4 KB

README.md

File metadata and controls

27 lines (24 loc) · 1.4 KB

JsControl

ManiaPlanet XML-RPC (Server controller) in Node.JS for both TrackMania 2 and ShootMania.

Installation instructions

  1. Install Node.JS
  2. Download JsControl and extract it somewhere
  3. Execute 'npm install' in the directory the package.json file is, or run Install dependencies.cmd if you're using Windows.
  4. Rename Plugins_SM or Plugins_TM to Plugins, according to the game you use.
  5. Rename config.sampleSM.js or config.sampleTM.js to config.js, according to the game you use.
  6. Open the just renamed config.js and set the four upper settings correctly.
  7. Install MySQL and set up a database. Execute the Sql/mysql.sql file on the just made MySQL database.
  8. Set the correct values in config_database.js.
  9. Execute 'node controller.js' in the directory the controller.js is inside. You can also just run Run.bat if you're using Windows.

Dependencies

  • sax.
  • xmlbuilder (required for partial use of xmlrpc)
  • xmlrpc (partial - serializer and deserializer, modified)
  • mysql (database)

Contributions

Thanks to friedr1c3 for inspiration and several code snippets for the core. More contributions and support is always wanted :).