I just managed to get this plugin to work after about 2 days of fumbling in the dark. The instructions in the js file are not very clear, the original site seems down and I could only access a
korean translation of the original tutorial or a
broken english version via wayback machine.
Also i've found different versions of this plugin with different terms of use which is a bit confusing. Hypothetically, if I used v1.0 I could use it commercially whereas if I use v2.0 I would need to be a patreon?
This is what I did to get it working:
1. Upload all the php files (dmv-osohigh folder) onto a webserver. I used an nginx server on my rpi
2. Configure php files: listKustomisation and dsqlKustomisation. I used the following code for listKustomisatioN:
$listSettings["score"]["name"] = "highscore";
$listSettings["score"]["type"] = "A";
$listSettings["score"]["show"] = 999;
dsqlKustomisation is a simple config.php type file for your mysql/mariaDB database. Pretty standard if you have any knowledge of how databases work
3. Add the plugin to rpg maker; make sure you edit it:
var host = webserver/folder/api.php - The default value of
https://www.dekitarpg.com/highs/ made me think that we had to direct the script to the folder containing api.php but I kept getting 403 errors which was fixed by actually giving the direct link to api.php
highscore_lists needs to be edited to include "score": { blah }. "score" matches the ["score"] name in listKustomisation; you can use whatever name you want but make sure it matches. Otherwise the console will flag an error saying listId is invalid. I used the following:
"score": {
head: 'High Score Leaderboard',
posi: default_position,
post: {
sname: default_scorename,
score: "$gameVariables.value(16)",
extra: "eval(new Date())",
},
The main issues i stumbled across was "var host" value and "list" array keys. It's actually a pretty simple script to implement