Blazingstix / QFGImporter

My current attempt at fully exploring the Quest For Glory import sav file contents.
https://blazingstix.com
GNU General Public License v2.0
14 stars 5 forks source link

Rename Flag7 to ScoreFlag for QFG1 Characters #1

Closed ChristopherPH closed 6 years ago

ChristopherPH commented 6 years ago

Byte 5 Flag 7 is used to calculate the score / puzzle points for saving in the character file

The score value at the end of the game is calculated by:

score = byte 4 (0-127) score = score + 128 if the ScoreFlag / Flag7 is set then score = score + 256

ChristopherPH commented 6 years ago

Hello, it looks like I jumped to my conclusion a little too fast. I was getting Flag7 / Bit7 confused.

However, the import of a version 2 character just doesn't look at the score flag for setting the puzzle points. The character sheet shows 114, the character was saved with 498 points (114+128+256=498).

Flag 7 / (Bit 7, 0 based) is unused as skills are masked with 0x7F during save.