Trouble importing Windows/Linux saves to Mac

Feb 5, 2009 at 12:46 AM
Administrator
Forum Administrator
"Life begins and ends with Nu."
Join Date: Jul 15, 2007
Location: Australia
Posts: 6224
Age: 39
Pronouns: he/him
Celtic Minstrel said:
Would my save in the Prefab Hut do? I could probably select the missile launcher or the bubbler and re-save it.
Yes, that would be good. Though make sure you have the stars spinning around you

Celtic Minstrel said:
Also, if flags start at 21C, then what's in 198-21B? And how many bytes of flags are there, and is there anything after them?
1. 198-21B is the word "FLAG", it indicates where the flags start. Don't ask me why since I doubt that it is referenced by the game. Also each letter is single-byte, so it stays like it is.
2. The flags run until 603 (the end of profile.dat).
 
Feb 5, 2009 at 2:16 PM
In front of a computer
"Man, if only I had an apple..."
Join Date: Mar 1, 2008
Location: Grasstown
Posts: 1435
So, now I just need to know what's in 022-02B and 030-033...

...but wait, "FLAG" is 4 bytes (5 if null-terminated); 198-21B is a lot more than 4 bytes (131 bytes, according to simple subtraction?). What else is in that range?

...Unless you meant 20B and 20C; but 198-20B is still 14 bytes or something.

The profile.dat in the prefs file appears to have tab characters (hex 09) after every 68 bytes.

I have included two files: the unaltered prefs file, and a "profile.dat" obtained by simply copy-pasting everything between "<data>" and "</data>". It begins and ends with a LF-HT sequence, and as I said has LF-HT after every 68 bytes. The last line has only 16 bytes before the final LF-HT sequence.

Details:
  • Whimsical star activated.
  • Weapons: Bubbler lv3 (selected), Nemesis lv1, Spur (lv1 of course), Super Missiles MAX, Fireball MAX, 30/30 missiles.
  • Health: 40/50
  • Items: Life Pot, Map System, Silver Locket, Arthur's Key, ID Card, Rusty Key, Gum Key, Jellyfish Juice, Underwear, Clinic Key, Tow Rope, Air Tank, Arms Barrier, Whimsical Star, Counter, Teleporter Key, Letter, Mushroom Badge, Iron Bond, Booster v2.0 (equipped), Clay Figure Medal.
I don't think there's anything else I can say really...
 

Attachments

Feb 5, 2009 at 11:08 PM
Administrator
Forum Administrator
"Life begins and ends with Nu."
Join Date: Jul 15, 2007
Location: Australia
Posts: 6224
Age: 39
Pronouns: he/him
Celtic Minstrel said:
So, now I just need to know what's in 022-02B and 030-033...

...but wait, "FLAG" is 4 bytes (5 if null-terminated); 198-21B is a lot more than 4 bytes (131 bytes, according to simple subtraction?). What else is in that range?

...Unless you meant 20B and 20C; but 198-20B is still 14 bytes or something.
Oh sorry, I made a mistake, I thought you were referring to 218-21B then.

That span 198-217 appears to be unused space. Ignore it. 218-21B is for the word "FLAG".

Celtic Minstrel said:
The profile.dat in the prefs file appears to have tab characters (hex 09) after every 68 bytes.

I have included two files: the unaltered prefs file, and a "profile.dat" obtained by simply copy-pasting everything between "<data>" and "</data>". It begins and ends with a LF-HT sequence, and as I said has LF-HT after every 68 bytes. The last line has only 16 bytes before the final LF-HT sequence.

Details:
  • Whimsical star activated.
  • Weapons: Bubbler lv3 (selected), Nemesis lv1, Spur (lv1 of course), Super Missiles MAX, Fireball MAX, 30/30 missiles.
  • Health: 40/50
  • Items: Life Pot, Map System, Silver Locket, Arthur's Key, ID Card, Rusty Key, Gum Key, Jellyfish Juice, Underwear, Clinic Key, Tow Rope, Air Tank, Arms Barrier, Whimsical Star, Counter, Teleporter Key, Letter, Mushroom Badge, Iron Bond, Booster v2.0 (equipped), Clay Figure Medal.
I don't think there's anything else I can say really...
I'll get to it.

EDIT: At a glance I have come up with this
01E-01F (Whimsical Star)
024-027 (Current Weapon)

They have been added to the list.

One last save I need:
I need a save in a room that has background music.
 
Feb 6, 2009 at 3:21 AM
In front of a computer
"Man, if only I had an apple..."
Join Date: Mar 1, 2008
Location: Grasstown
Posts: 1435
Okay, there are 4 apparently unused sections. Are they really unused?
Code:
copy(2)   # 022-023 | Unused? Possibly alignment filler
copy(4)   # 028-02B | Unused?
copy(4)   # 030-033 | Unused?
copy(128) # 198-217 | Unused?
(The number passed to copy is how many bytes I calculated the section to be.)

Okay, are my calculations correct? I calculated 232 bytes for the flags, but I'm thinking that seems like a bit much...
 
Feb 6, 2009 at 4:01 AM
Administrator
Forum Administrator
"Life begins and ends with Nu."
Join Date: Jul 15, 2007
Location: Australia
Posts: 6224
Age: 39
Pronouns: he/him
Celtic Minstrel said:
Okay, there are 4 apparently unused sections. Are they really unused?
Code:
copy(2)   # 022-023 | Unused? Possibly alignment filler
copy(4)   # 028-02B | Unused?
copy(4)   # 030-033 | Unused?
copy(128) # 198-217 | Unused?
(The number passed to copy is how many bytes I calculated the section to be.)

Okay, are my calculations correct? I calculated 232 bytes for the flags, but I'm thinking that seems like a bit much...
Only 21C-410 are used, the rest are just placeholders because profile.dat is always a set size (1540 bytes). Any flag past 603 cannot be saved into profile.dat. That is probably the same reason why there are unused sections in profile.dat.
 
Feb 23, 2009 at 9:36 PM
In front of a computer
"Man, if only I had an apple..."
Join Date: Mar 1, 2008
Location: Grasstown
Posts: 1435
Note: I've technically finished a save converter, but simply haven't gotten around to testing it. I was going to download various saves from the website to test on.
 
Feb 25, 2009 at 1:37 AM
Administrator
Forum Administrator
"Life begins and ends with Nu."
Join Date: Jul 15, 2007
Location: Australia
Posts: 6224
Age: 39
Pronouns: he/him
Good luck!
 
Back
Top