Savegame parser for LS22 / Farming Simulator 22
LS22Parser parses savegame-files from Farming Simulator 22 or "Landwirtschaftssimulator 22", puts relevant data in SQL-Database, makes queries on these datas and can send notofications based on them.
It's a non professional project with only a minimum of security mechanisms in it as for now.
Install:
- setup a webserver with php, SQL and phpmyadmin
- copy all files from "/var/www/html/" into the webserver root directory
- import ls22db.sql into your database, you can use phpmyadmin for this
- make directory "data" writeable for the user running the script
- edit the /config/db_connect.php
- edit the /include/ftpdownloader.php - this config works for gportal-LS22 Server
- edit the /include/notify.php near the "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" -> place your discord webhook URL here and maybe edit the default Bot-Name
- repeat this for all following files: import_economy.php, import_farms.php, import_missions.php, import_sales.php, notify_missions.php, notify_sales.php by making search and replace for "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$"
- activate automatic data pulling via crontab or by manualy launching downloader.php -> you can take a crontab example from "crontab"