Author Topic: [PC] Save editor - Memoria (0.6.3.1)  (Read 398634 times)

snapx

  • *
  • Posts: 9
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #100 on: 2016-04-14 18:08:08 »
I can upload you a save file (wich is *.DAT) if wou want  :-)

gjoerulv

  • *
  • Posts: 1225
  • me
    • View Profile
    • My Youtube
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #101 on: 2016-04-14 19:29:30 »
Please do. I think at least android and PC version have similar files. I'm not sure about iOS. I don't have any iOS device myself. May have to emulate one "/

snapx

  • *
  • Posts: 9
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #102 on: 2016-04-14 19:46:00 »
Ok, here you go:



Good luck, and thanks a lot for your hard work; really apreciate ;)

Mr.FFs

  • *
  • Posts: 5
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #103 on: 2016-04-15 05:55:13 »
Hey gjoerulv thanks a lot for your work, i used your editor on my last run on emu, today i just got ff9 on steam and i hope you can find a way to edit and maybe convert saves fot pc version too:)
As someone alredy told, if you need any help let us know.

Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #104 on: 2016-04-15 06:53:39 »
Please do. I think at least android and PC version have similar files. I'm not sure about iOS. I don't have any iOS device myself. May have to emulate one "/

You may contact this guy: http://steamcommunity.com/sharedfiles/filedetails/?id=665484370&tscn=1460669124

I don't think that FF9 runs on a emulated Android or IOs as some has assumed. It seems they had simply ported the game to Unity.

Zara9

  • *
  • Posts: 559
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #105 on: 2016-04-15 20:18:29 »
hey

does this ff9 save editor work on the steam version yet

Covarr

  • Covarr-Let
  • Administrator
  • *
  • Posts: 3941
  • Just Covarr. No "n".
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #106 on: 2016-04-15 23:30:58 »
You need to be patient. If someone doesn't answer you right away, wait a day or two, instead of nagging several times within a few hours. I've deleted your unnecessary bump posts.

Also, the Steam version only just came out. I don't think the save format has even been cracked yet, and there's no way of knowing how long it will take to do that. It could be a day or it could be a year or longer.
« Last Edit: 2016-04-15 23:34:09 by Covarr »

ImFonzi

  • *
  • Posts: 1
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #107 on: 2016-04-16 06:11:18 »
Im not sure if anyone has tried this, but I am currently a mac user. To get this program to work in mac, use winebottler. Just use the winetricks Microsoft dotnet 2.0 while making the App... and it should run.

Should work with OpenEmu saves as well.


Zara9

  • *
  • Posts: 559
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #108 on: 2016-04-16 10:49:28 »
how can i get the inventory editor for the ff9 steam version then

Zara9

  • *
  • Posts: 559
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #109 on: 2016-04-16 10:58:35 »
the bosses on this game are very hard on this game

Maki

  • 0xBAADF00D
  • *
  • Posts: 621
  • 0xCCCCCCCC
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #110 on: 2016-04-16 11:11:06 »
Save data structure:
Code: [Select]
binaryWriter.Write(this.Header, 0, 4);  // "SAVE"
binaryWriter.Write(this.SaveVersion);
binaryWriter.Write(this.DataSize);
binaryWriter.Write(this.LatestSlot);
binaryWriter.Write(this.LatestSave);
binaryWriter.Write(this.LatestTimestamp);
binaryWriter.Write(this.IsGameFinishFlag);
binaryWriter.Write(this.SelectedLanguage);
binaryWriter.Write(this.IsAutoLogin);
binaryWriter.Write(this.SystemAchievementStatuses);
binaryWriter.Write(this.ScreenRotation);
byte[] array = new byte[249];  /Padding?
binaryWriter.Write(array, 0, array.Length);
                byte[] array2 = encryption.Encrypt(bytes); //AES encrypted saves ?
                writer.Write(array2, 0, array2.Length);

Game checks for magic "SAVE".

Read:
Code: [Select]
int cipherSize = encryption.GetCipherSize(288);
byte[] bytes = reader.ReadBytes(cipherSize);

For data types:
Code: [Select]
this.SaveVersion = binaryReader.ReadSingle();
this.DataSize = binaryReader.ReadInt32();
this.LatestSlot = binaryReader.ReadInt32();
this.LatestSave = binaryReader.ReadInt32();
this.LatestTimestamp = binaryReader.ReadDouble();
this.IsGameFinishFlag = binaryReader.ReadInt32();
this.SelectedLanguage = binaryReader.ReadInt32();
this.IsAutoLogin = binaryReader.ReadSByte();
this.ScreenRotation = binaryReader.ReadByte();


Tried AES (CBC) decrypt, but no good.

EDIT2: I'm getting closer to save decryption. It's a bit more complicated. The file contains multi AES encrypted files inside. Soon the file is going to be decrypted.
EDIT3: ehhh. I quit for today... I don't understand. This doesn't make sense.
« Last Edit: 2016-04-16 13:48:17 by MaKiPL »

snapx

  • *
  • Posts: 9
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #111 on: 2016-04-16 13:42:00 »
Lol Zara9 xD
Be patient !

Maki

  • 0xBAADF00D
  • *
  • Posts: 621
  • 0xCCCCCCCC
    • View Profile

Dekonic

  • *
  • Posts: 1
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #113 on: 2016-04-16 15:31:51 »
Quick question, where is the FF9 Save file even located? Having trouble finding it, X_X

gjoerulv

  • *
  • Posts: 1225
  • me
    • View Profile
    • My Youtube
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #114 on: 2016-04-16 15:40:26 »
I made it! The issue was bad password encoding... (sic!) -.-

I'm getting there myself. Just started working on it. Thanks for the work there! :)

BennySama

  • *
  • Posts: 2
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #115 on: 2016-04-16 16:04:48 »
Quick question, where is the FF9 Save file even located? Having trouble finding it, X_X

Win + R -> %USERPROFILE%\AppData\LocalLow\SquareEnix

Zara9

  • *
  • Posts: 559
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #116 on: 2016-04-16 21:43:31 »
how much more longer until we can use our ff9 steam saves on this save editor

patternjake

  • *
  • Posts: 12
  • .NET Programmer with over 10 years experience
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #117 on: 2016-04-16 21:58:07 »
how much more longer until we can use our ff9 steam saves on this save editor
Probably never, as this reads memory cards from PSX, not Unity data.
We'd need a whole new utility for reading Steam saves.

Correct me if I'm wrong though.

EDIT: A more interesting idea is a converter that converts the PSX save to a Steam one that can be read by the new game engine, instead of losing all this work from this brilliant program.
« Last Edit: 2016-04-16 22:02:48 by patternjake »

jarjarpucha

  • *
  • Posts: 6
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #118 on: 2016-04-16 23:30:42 »
Actually, there should be no problem with the saves, because the saves for ff7 and ff8 pc versions weren't changed, and the existing editors only needed to get updates for the new encryption method. You can also ask yourself "Would I bother to change something that works?", it would be a waste of money and time needed to implement and test a new method of saving game data.

The only reason I could think of that would necessitate doing that would be added functionality, but the game is completely unchanged, right?

tl;dr: No worries, this editor should work as soon as gjoerulv finds a way to get inside those files, edit them and reencrypt them.

Mr.FFs

  • *
  • Posts: 5
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #119 on: 2016-04-16 23:49:08 »
Probably never, as this reads memory cards from PSX, not Unity data.
We'd need a whole new utility for reading Steam saves.

Correct me if I'm wrong though.

EDIT: A more interesting idea is a converter that converts the PSX save to a Steam one that can be read by the new game engine, instead of losing all this work from this brilliant program.

Hey dude, nice to see you here too, thanks for your mods :)
Why a converter only ??
This editor can red/write the saves in many formats already, it's just a matter to add a way to handle the new unity save type, or i'm wrong ?
Why we should convert the save, edit it and convert it back (?) if the author is here and looks like he's already working on adding the support ? i missed something ?

Mr.FFs

  • *
  • Posts: 5
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #120 on: 2016-04-17 00:00:15 »
Actually, there should be no problem with the saves, because the saves for ff7 and ff8 pc versions weren't changed

Read posts before yours, is known FF9 PC/iOS/Android is made whit unity, extra work to read/write unity saves is needed, the keys to decrypt/re-encrypt are already know, again, reads some posts back.

Let's wait and see what gjoerulv will pull, i bet something great :)

gjoerulv

  • *
  • Posts: 1225
  • me
    • View Profile
    • My Youtube
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #121 on: 2016-04-17 03:00:57 »
Actually, there should be no problem with the saves, because the saves for ff7 and ff8 pc versions weren't changed, and the existing editors only needed to get updates for the new encryption method. You can also ask yourself "Would I bother to change something that works?", it would be a waste of money and time needed to implement and test a new method of saving game data.

The only reason I could think of that would necessitate doing that would be added functionality, but the game is completely unchanged, right?

tl;dr: No worries, this editor should work as soon as gjoerulv finds a way to get inside those files, edit them and reencrypt them.

Problem is that, in this case, it's different. The savemap is over twice as big (it's also mixed in with achievement stuff it seems). And character encoding is different. The size thing could be due to them storing bytes as integers etc.

I've successfully managed to read from the files. The next step will be to figure out what is what. Hopefully it saves/loads in the same order. Meaning data is in relative position to a memorycard.

EDIT: The reason why FF7 and FF8 were easy, is because those games already had PC versions.
« Last Edit: 2016-04-17 03:03:47 by gjoerulv »

jarjarpucha

  • *
  • Posts: 6
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #122 on: 2016-04-18 22:49:25 »
Read posts before yours, is known FF9 PC/iOS/Android is made whit unity, extra work to read/write unity saves is needed, the keys to decrypt/re-encrypt are already know, again, reads some posts back.

Let's wait and see what gjoerulv will pull, i bet something great :)

strawberries... I actually skipped page 4 of this topic...

Anyway, most of what I said should hold true, the save format should remain mostly unchanged? Even if there is additional data (like achievements etc.), it should be placed at the beginning or end of the file. Any other way, ex. randomly adding pieces of data like so: O*ld*Da*ta*Som*eth*i*ng*OrO*th*er (* - is new data) would be illogical, and would require more work than it is worth.
The new file structure should be something like: NewDataOldDataNewData

Anyway, enough of my ranting, especially if what I say is wrong.

@gjoerulv: Is there any progress? Did you find anything in those files?

Edit: Didn't know there is a word filter here? Sorry about that.
« Last Edit: 2016-04-18 22:52:24 by jarjarpucha »

gjoerulv

  • *
  • Posts: 1225
  • me
    • View Profile
    • My Youtube
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #123 on: 2016-04-18 23:57:39 »
Yes I have found cards, item, character data (most of it) and some other minor things. But the savemap is ordered almost completely different. It's not as simple as adjusting a variable. A few more days (maybe tomorrow) and 'll have something ready. It's not like I can work 24/7 on it lol.

Luckily cards and items have the same expected values. But cards have 2 extra bytes (side? and cpoint??) as well as a 3 byte padding after each card.

The game seems to be storing data by parsing JSON objects, which makes me a tad bit concerned about the stability of the file. But I guess it will be maintained.

jarjarpucha

  • *
  • Posts: 6
    • View Profile
Re: [FF9] Save editor - Memoria (0.5.1b)
« Reply #124 on: 2016-04-19 05:11:04 »
So it actually is the (almost) worst possible outcome.

About the 24/7 thing - I actually expected something by the end of the week  ;).

As a web developer my hatred for JS is immense  >:(