Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Editing hiscore.dat files??  (Read 4494 times)

0 Members and 1 Guest are viewing this topic.

rwhip41

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 04, 2006, 12:46:36 am
Editing hiscore.dat files??
« on: March 17, 2006, 01:17:50 am »
Hey...
Has anyone edited hiscore.dat files? Meaning, hacking into a particular high score saved within this utility to manually edit a score and initials?

I ask because I am building a system for a friend. Everyone has a friend like this...sort of an A-hole but not too much of one. This makes it perfect to put my initials in the top score on his favorite games. I mean...unattainable high scores so MY initials will always be there.

His favorite game is Dig Dug (sort of our bragging rights game). The most I've been able to get is a little above 60,000 which is our current record. I'm talking about editing it up to something like 600,000 or something like that.

It looks (to me) that each high score is some sort of a binary file, and I don't know how to get past that.

Any ideas? It would be priceless.

destructor

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 396
  • Last login:July 18, 2019, 03:10:07 pm
  • I want to build my own arcade controls!
Re: Editing hiscore.dat files??
« Reply #1 on: March 17, 2006, 05:01:18 am »
Few years ago I edited this file and it work. DOn't remember details.
Now I use MARP as scoreboard ;)

Havok

  • Keeper of the __Blue_Stars___
  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4522
  • Last login:October 22, 2023, 09:14:44 pm
  • Insufficient facts always invite danger.
Re: Editing hiscore.dat files??
« Reply #2 on: March 17, 2006, 09:14:04 am »
You can edit with Notepad, (or other text editor) the values are in hexadecimal. Enjoy!

quarterstringer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 280
  • Last login:June 19, 2016, 03:35:04 pm
  • Rampart
    • Rampart
Re: Editing hiscore.dat files??
« Reply #3 on: March 17, 2006, 06:45:50 pm »
Everyone has a friend like this...sort of an A-hole but not too much of one.

If you want to have some fun with him, you can set attract mode messages in a few Williams games like Joust, Robotron and Sinistar. Hold F1 and hit F2 twice, then go to Set Attract Mode Message. Here's an example  :)


rwhip41

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 04, 2006, 12:46:36 am
Re: Editing hiscore.dat files??
« Reply #4 on: March 19, 2006, 10:47:40 pm »
[pinky finger to corner of mouth]
Muahahahahaha!!!

Thanks for the info.

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4946
  • Last login:July 31, 2022, 10:26:34 pm
Re: Editing hiscore.dat files??
« Reply #5 on: March 20, 2006, 08:47:07 am »
Initially, reading the subject, I couldn't think of a reason anyone would care...

But now, I applaud your idea! 

Make sure to edit the 2nd and 3rd to say something also.  Maybe stating hes your ---smurfette--- or something equally annoying... that he wont notice until hes inviting some friend over and showing the system :)

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re: Editing hiscore.dat files??
« Reply #6 on: March 20, 2006, 09:00:08 am »
Ah I remember doing this back in the day on a few games on my old Amstrad.  Battlezone sticks in my mind as one...

rwhip41

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 46
  • Last login:April 04, 2006, 12:46:36 am
Re: Editing hiscore.dat files??
« Reply #7 on: March 20, 2006, 11:26:07 am »
The "heyday" of my computer knowledge was in the DOS 4.0-5.0 "era". This same guy asked me to set up a PC he wanted to put together. I did, as well as an extra surprise. When the PC booted, it would stop somewhere in the boot sequence to display the line, "Walt blows dogs for nickels. Press any key to continue...", and waited until a key was pressed. He didn't like it, but I thought it was hilarious. So he reformatted his hard drive because he didn't know what a batch file was and how to edit one.

krick

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2006
  • Last login:February 08, 2023, 08:30:27 pm
  • Gotta have blue hair.
Re: Editing hiscore.dat files??
« Reply #8 on: March 20, 2006, 11:44:13 am »
Ah I remember doing this back in the day on a few games on my old Amstrad.  Battlezone sticks in my mind as one...

I did this to a copy of Tetris that we had on our network in community college.  There was only one copy and everyone shared the high score table.  I hex edited the table and replaced all the scores with unattainable scores and my initials just to piss of my friend who thought he was the Tetris master.
Hantarex Polo 15KHz
Sapphire Radeon HD 7750 2GB (GCN)
GroovyMAME 0.197.017h_d3d9ex
CRT Emudriver & CRT Tools 2.0 beta 13 (Crimson 16.2.1 for GCN cards)
Windows 7 Home Premium 64-bit
Intel Core i7-4790K @ 4.8GHz
ASUS Z87M-PLUS Motherboard

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: Editing hiscore.dat files??
« Reply #9 on: July 12, 2006, 05:36:09 pm »
Resurrecting this old thread....has anyone actually managed to manually edit either the nvram or .hi files successfully?  Recently (probably at some point when upgrading hiscore.dat) my millipede hi scores have stopped saving and the only remedy seem to be deleting the .hi and .nv files (and my previous untouchable scores with them :hissy: ).  I tried to hex edit both those files to put them back in, but they seem to be in some binary (compressed?) format.  They were also only a few bytes in size. 

NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • Last login:September 19, 2017, 08:22:27 pm
  • I stole my avatar.
    • winterMAME
Re: Editing hiscore.dat files??
« Reply #10 on: July 13, 2006, 03:49:25 pm »
I've done it, it just takes some time and trial and errors. 

I got a massive high score on my galaga machine, then fubared the initials entry (put in NOR instead of NOP) and just HAD to fix it.   :P

The data file is a binary file.  Using notepad on it will more than likely wreck it.
Use a hex editor instead.

Each file is probably different in its layout, because (I believe) this stuff is just dropped into the ROM's memory area when the rom is loaded, so depending on how the game stores the data. 

Before editing the file, wait for the leaderboard to be shown on the screen, then write down the scores and initials for all the entries.  Then hex edit your file. 


Here's the layout of a galaga.hi file:

000000  00 05 08 06 04 01 00 00 06 02 03 01 00 09 01 02  [hex characters here]
000010  09 24 00 00 02 08 06 24 00 09 09 03 06 24 0E 10 
000020  18 17 18 19 17 0A 11 17 0A 22 17 18 19 00 05 08 
000030  06 04 01             


You should be able to find the scores in the file easily enough, in my galaga file, each digit was simply stored as it's own byte in the file, and they were (IIRC) stored backwards and in decimal.  146850 is the current high score, 132600 is the next lowest, etc.
(and no, this 146850 was not the massive high score that I was referring to.  ;D)

The initials were stored after the scores were, and you can kinda make out that the sequence of 17,18,19 is equal to NOP (consecutive letters).

It'll take some time and futzing with, but it is doable.
Just make a backup of the file so you can always undo your mistakes!

-jeff!

fatfingers

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 964
  • Last login:January 26, 2015, 10:15:43 am
  • Got UltraStiks?™
Re: Editing hiscore.dat files??
« Reply #11 on: July 13, 2006, 04:21:04 pm »

The numbers were likely backwards because of it being a little-endian machine.  For those that don't know the hex values for ASCII characters by heart, you can find them here.

My DK low scores
-------------------
1) 180700
2) 165000
3) 162900
4) 162600
5) 158500


W.W.P.M.D.?                                       I'm here to help ... I just don't do it. ™