Need help with high score sync script
-
So my brother and I have been battling it out in a few arcade games to see who can get the higher scores. We do not live in the same home so we are dependent on photos as proof. This got me thinking, wouldn't it be sweet if we could sync our scores and have retropie grab the most up to date hi scores as they are achieved.
I have a home server that is on 24/7 and it would be a great place to hold the high scores that can be accessed and updated as needed. I was doing some googling and I think rsync over ssh is the route to go to accomplish this but I have not been able to figure out how to get the scores to sync. I have been able to send the "hi" folder from the pi to the server, but I have not figured out how to make it "sync" . For instance, if I got a new high score, it would send that file to the server. When my brother's pi runs rsync (on boot and via cron job) it would see the new hi score and pull it into his machine.
First is this possible with rsync. Second, can someone please help me construct a script that will move in the right direction. Third, does this sound interesting to anyone else? It's like constructing a high score network to share with friends/rivals.
-
i think it might be simpler to have your arcade rom folder on the server: https://github.com/RetroPie/RetroPie-Setup/wiki/Running-ROMs-from-a-Network-Share
this way, the mame .hi files themselves would be also on this server (see https://github.com/RetroPie/RetroPie-Setup/wiki/lr-mame2003#high-scores), so you would both be using the same individual files. i guess you wouldn't be able to log scores on the same game at the exact same time.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.