/RailroadOnlineMapper

Maps Railroad Online Savegames to a SVG map

Primary LanguagePHP

RailroadOnlineMapper

@ian76g#6577

Environments

DEV - https://zwackelmann.online/ QA - https://ohnezahn.online/ PROD - https://minizwerg.online/

Getting Started

Run locally

PHP Setup

  1. Ensure you have PHP (v<8) installed, or download here

  2. Rename php.ini.development to php.ini

  3. Set the extension_dir of php.ini to ext

    extension_dir = "ext"

  4. in ini file enable extensions mb

    extension=mbstring

Project setup

  1. Clone this repo to your local machine
  2. Copy your save file from %localappdata%/arr/Saved/SaveGames (or ./setup) to the root of the project (eg. ./slot1.sav)
  3. Run the convertor

    php converter.php slot1.sav

  4. Find output html in ./done

Host on webserver

  1. Copy everything to a folder of your webserver
  2. Done

Output

xx.json The save in nice readable JSON

db.db A database used for hosting with filename, user, switches, trains, etc.

Contributers

@JKD#0205
@iScripters#9408