Main > Main Forum
High Score Competition #70: Sky Shark (was Hacha Mecha Fighter)
<< < (4/28) > >>
torino:
We can share hi-scores via public web-folder. With the help of HiToText utility simple .BAT script can update local hi-scores with server scoreboard and publish our own records back to server by merging all the current scores automatically. The point of this would simply be so that everyone can see current competition scoreboard right there in the game itself, which kind of makes it more interesting and motivating to break someone else's record.


I already have everything set up, currently there is only my record in there: 46950 TORINO 13



HOW TO IMPORT SERVER SCOREBOARD & PUBLISH LOCAL RECORDS
===================================================

1.) download "web-sync_skyshark.zip" (web-sync folder)

2.) unzip and copy "web-sync" folder in MAME folder

3.) in "web-sync" folder is SYNC.BAT script, run it



That's it. The script is for SKYSHARK ONLY.
emphatic:
That's way cool, torino. I'll have to check it out.

Edit: In Windows 7 I get this error when running sync.bat:

"net.ext - Entry Point Not Found

The procedure entry point I_NetPathType could not be located in the dynamic link library NETAPI32.dll."

Edit 2: I just realized that I didn't have a "hi" folder, the "highscore.dat" or an actual score recorded yet. I'll try to play later when the kids aren't screaming (that's apparently how kids talk) at each other.
torino:

--- Quote from: emphatic on July 02, 2011, 09:28:56 am ---That's way cool, torino. I'll have to check it out.

Edit: In Windows 7 I get this error when running sync.bat:

"net.ext - Entry Point Not Found

The procedure entry point I_NetPathType could not be located in the dynamic link library NETAPI32.dll."

--- End quote ---

I think it's cool too, and the more people jump in the cooler it gets, or so it would seem. I never tried it before with anyone else, I only tested it by myself so far. Anyway, I don't know about Windows 7 but I'm pretty sure we can overcome the problem of 'network drive' mapping, one way or another.


a.) Try deleting "net.exe" in "web-sync" folder, it's WinXP version. That should make the script use system's own "net.exe", if your system has it. My WinXP did not have that command, for some reason, and that's why I placed it in the .zip, but if your Win7 does not have "net.exe" and the script still does not work, you can always map network drive manually:


b.) [Top menu of any folder]: Tools->Map Network Drive... (Z:)

"http://www.drivehq.com/webdav/OnlineMAME"

Username: OnlineMAME / Password: letmeplay



Once Z: drive is mapped .BAT file will start reporting error how "device is already in use", but that's fine. We could un-map the drive at the end of .BAT file after each web-syncing, but it takes several minutes until the drive can be mapped again, so I just leave it mapped all the time to make testing faster. If more than few people happen to be interested I will make the script a little better and maybe implement some additional features.



--- Quote ---Edit 2: I just realized that I didn't have a "hi" folder, the "highscore.dat" or an actual score recorded yet. I'll try to play later when the kids aren't screaming (that's apparently how kids talk) at each other.

--- End quote ---

Yeah, you need to have MAME enabled for hi-score support, which includes having a "hiscore.dat" and "hi" folder.


So, everyone has their local "skyshark.hi" copy as usual in their "MAME/hi" folder, and then there is one 'master' copy of "skyshark.hi" in shared web-folder. The script downloads this master file to temporary local folder, locks server file access and uses HiToText utility to merge scoreboards, then it overwrites both local and server "skyshark.hi" with this new one and unlocks back master copy file access.
Bender:
so does this overwrite the local "skyshark.hi" folder?
if not how do you switch back and forth between using the local and the web hi for a game?
Theoretically this sounds pretty cool, a live updating scoreboard
man I'd like to set that up with just a couple of friends
emphatic:
Removing the "net.exe" worked for me.  :applaud: I'm just gonna play a credit (I'm not competing in this game though) and see if it works 100% on my end.
Navigation
Message Index
Next page
Previous page

Go to full version