Thanks to Meterpeter57 for finding all the server files and maps
Thanks to Alpha Systems for creating the mods that fix the game
- Open the game
- Open site information (top left corner near the url)
- Go to Site settings
- Click Delete data
- Reload the game and import your save
If you want to create your own mod, create javascript file in mods/ directory, for example: mods/my-mod/my-mod.js
Now you must to add exported install function:
export function install(){
}
Now you can add some logic, for example I tried to add listener for buttons in-game that open links, and print in console.log what they want to open:
export function install(){
const original_open=window.open;
window.open=function(url, target, windowFeatures){
console.log(url,target,windowFeatures);
original_open(url,target,windowFeatures);
}
}
Now you need to modify mods.json, add your new mod to list:
{
"mods":[
// Other mods:
{...},
// Your mod:
{
"name":"Example mod",
"description":"Example description",
"script":"example-script",
"version":"1.0.0"
}
]
}
Now you can start the server, e.g. via NodeJS http-server and run the game: