DEV - https://zwackelmann.online/ QA - https://ohnezahn.online/ PROD - https://minizwerg.online/
-
Ensure you have PHP (v<8) installed, or download here
-
Rename
php.ini.development
tophp.ini
-
Set the extension_dir of
php.ini
toext
extension_dir = "ext"
-
in ini file enable extensions mb
extension=mbstring
- Clone this repo to your local machine
- Copy your save file from
%localappdata%/arr/Saved/SaveGames
(or./setup
) to the root of the project (eg../slot1.sav
) - Run the convertor
php converter.php slot1.sav
- Find output html in
./done
- Copy everything to a folder of your webserver
- Done
xx.json
The save in nice readable JSON
db.db
A database used for hosting with filename, user, switches, trains, etc.
CREATE TABLE stats
(
name
varchar(255) NOT NULL,
length
varchar(255) NOT NULL,
switches
varchar(255) NOT NULL,
trees
varchar(255) NOT NULL,
locos
varchar(255) NOT NULL,
carts
varchar(255) NOT NULL,
slope
varchar(255) NOT NULL,
tasksA
varchar(255) NOT NULL,
tasksAreward
varchar(255) NOT NULL,
tasksB
varchar(255) NOT NULL,
tasksBreward
varchar(255) NOT NULL,
tasksC
varchar(255) NOT NULL,
tasksD
varchar(255) NOT NULL,
ip
varchar(255) NOT NULL,
unused
varchar(255) NOT NULL,
PRIMARY KEY (name
)
) ENGINE=MyISAM DEFAULT CHARSET=utf8