ROM Hack [Request] Dragon Quest VII Cheksum.exe

Matheusv3

Member
OP
Newcomer
Joined
Sep 18, 2016
Messages
11
Trophies
0
Age
28
XP
59
Country
Brazil
So... if anyone could help me making a checksum.exe for the Dragon Quest VII Save it would be extremely helpful. Since i don't have powersaves or CFW, and don't know how to make a checksum i can't edit my save file because it gets corrupted.
 

MadMageKefka

Well-Known Member
Member
Joined
Apr 28, 2016
Messages
1,672
Trophies
0
Age
36
Location
World of ruin
XP
1,915
Country
United States
So... if anyone could help me making a checksum.exe for the Dragon Quest VII Save it would be extremely helpful. Since i don't have powersaves or CFW, and don't know how to make a checksum i can't edit my save file because it gets corrupted.
Use the homebrew version of JKSM to dump and inject the saves. It handles the checksums automatically.
 

Matheusv3

Member
OP
Newcomer
Joined
Sep 18, 2016
Messages
11
Trophies
0
Age
28
XP
59
Country
Brazil
Oh, so i wasn't messing it up, then? Well, then the request still stands, if anyone at least knows how to make one and could tell me, i could try to do it or if anyone just knows how to do it and wants to do it, i would be really gratefull.
 

DocKlokMan

Plugin Dev
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
Oh, so i wasn't messing it up, then? Well, then the request still stands, if anyone at least knows how to make one and could tell me, i could try to do it or if anyone just knows how to do it and wants to do it, i would be really gratefull.
We need to find where the checksum is located in the saves and how it's calculated. Making a software that patches it is easy. Some people have tried by making multiple save backups and comparing them to see what's different. So far the checksum location has not been found yet.
 

unknowndatax

Well-Known Member
Newcomer
Joined
Jan 23, 2016
Messages
68
Trophies
0
Age
35
XP
1,256
Country
United States
The checksum for the whole file are the first four bytes of the file. The program will start calculating at offset 0x10.

Code:
Magic Number for File = 0x5000

// C#
  int GetCheckSum(byte[] data, int magicNumber)
  {
  int index = 0;
  int placeHolder;
  int value1 = 0, value2 = 0;
  int endValue;

  if (((magicNumber ^ 0xffffffff) & 1) != 0)
  {
  value1 = (int)(sbyte)data[index++];
  }
  placeHolder = (int)(sbyte)data[index];

  endValue = (int)(magicNumber - 0x11) >> 1;

  for (int i = 0; i < endValue; ++i)
  {
  value2 += (int)(sbyte)data[index + 1];
  index += 2;
  value1 += placeHolder;
  placeHolder = (int)(sbyte)data[index];
  }
  return value1 + value2;
  }
 

Attachments

  • DQVII_Checksum_Fix.rar
    4.2 KB · Views: 261
Last edited by unknowndatax,
  • Like
Reactions: hiten

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: The cybertruck is a death trap.