Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Library of Enlightenment > Thread: Reading HiScore.dat
Thread: Reading HiScore.dat
Retro
Retro

Tavern Dweller
posted September 11, 2020 08:47 PM

Reading HiScore.dat

Hi All,
I'm working on a HOMM3 utility and want to read the high score file. I can open it in notepad/hex/etc. and read some of the text, but a lot is missing/encoded.

Has anyone worked out a way to read/edit it (or any of the other .dat files)?    
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
maryKevaa
maryKevaa

Tavern Dweller
posted September 15, 2020 05:38 AM

I'm sorry, I have never used the HOMM3 feature!
____________
the impossible quiz

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Baronus
Baronus


Promising
Supreme Hero
posted September 15, 2020 08:55 AM

Ofcourse you must use HDeditor eg.HxD. Here all is nice and clear. Especially if you break your name of something like that you can correct.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
tttc
tttc

Tavern Dweller
posted September 18, 2020 04:36 PM
Edited by tttc at 16:41, 18 Sep 2020.

The file keeps track of 11 high scores for the campaign, followed by 11 high scores for single scenarios. Each entry is 0x64 bytes long. The data for each entry is as follows:

Player name (text, offset: 0x00, size: 0x29)
Campaign or map name (text, offset: 0x29, size: 0x2B)
Score (int, offset: 0x54, size: 0x4)
Days (int, offset: 0x58, size: 0x4)
Difficulty (int, offset: 0x5C, size: 0x4)
Unknown / Unused (always 0x00000000, offset: 0x60, size:0x4)

The offsets are relative to the beginning of each entry of course.

Score, days and difficulty are ints. More specifically 4-byte signed integers. The values for difficulty represents the rating, where
80 = Easy
100 = Normal
129 = Hard
160 = Expert
200 = Impossible

Take notice that Hard is 129, and not 130 as one might think. I have no idea why it's like that.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0283 seconds