-
2 Attachment(s)
Thief 4 Save Editor v1.0
Hi, finished that Thief 4 Save Editor v1.0 ShangTsung and others requested...
Tool coded by Vulnavia
PPC Codeanalysis by Vulnavia
Reverse Engineering by Vulnavia
Do not post this Tool on any other website without my permission!
Code:
How to use it:
1. Extract "*.sav" from your gamesave (logically not needed for PC)
2. Load "*.sav" into the Tool
3. Mod Gold and/or Focuspoints and/or press Max Items to set all Consumables to 9999
4. Press Save Changes
5. Replace "*.sav" back into your gamesave (logically not needed for PC)
6. Rehash/Resign (logically not needed for PC)
Do not post this Tool on any other website without my permission!
Code:
The Tool is selfexplaining else additional Information is provided in the Readme.txt... Like always i also added a nice little Tune...
This Thing allows you to edit Gold, Focuspoints and new also to max the Consumables Items (set to 9999 which should be enough i think)
on Thief 4 Savegames, dunno if there is something else worth editing apart of that... Also it seems that R.sav is the one loaded if continued,
C.sav is probably Checkpoint, I.sav is probably InGameSave and BBQ is whatever, well simply modding them all is probably the best...
But i was only able to fully test it for PC yet, so... lol! Also it is a bad Idea to put the max possible Value for Gold/Focus, because the Message
will stick on your Screen as soon you pick up some Gold or get a Focuspoint... And you can only MaxItems which you have, if you don't have
them the Tool will simply skip them now, however this only apply or the Items you have, the max gettable Item Value is maximized even if you
don't have any, this way you can simply buy them and even get more than 9999 once unlocked... The only Item not maxed is the Breakable,
because it does not work and is reset once used, even if you have 9999 you can only throw one and need to pick one again, so i decided to
simply remove it from the MaxItems...
Attachment 14968
Thief4Edit v1.0: Attachment 15187
Code:
Builds:
1.0.0.6 : Fixed messed up second Block Delta if first Blocksize changed
1.0.0.5 : Blocksearcher now searches over two consequent Blocks for all Values
Updated Blockmanagement: Added resplitting of appended Blocks
Updated ZLib: Is now able to directly append Data into Buffers
Decreased Min and Increased Max Filesize
Optimized Boyer-Moore search Routines
Fixed some rather Cosmetic Stuff
1.0.0.4 : Blocksearcher now ignores but disables Focuspoints editing if missing
1.0.0.3 : Added Auto XBOX/PC Detection
Rewritten MaxItems for XBOX/PC
Fixed MaxItems to skip currently non-existing Items
Fixed Structure Alignment
Fixed rare potential Memory Fragmentation in Blocksearcher
1.0.0.2 : Added Blocksearcher
Added 4th CRC Check
1.0.0.1 : Initial Release
-
Re: Thief 4 Save Editor v1.0
great work on this editor Vulnavia :D, i would test it but i don't have the game lol
-
Re: Thief 4 Save Editor v1.0
I followed your instructions perfectly. Everything modded perfectly. Loaded the game and:
SAVE CORRUPTED: This save is corrupt. Your progress will be overwritten with your most recent previous save
That's the message it gave me then it loaded my previous save lol!
I've tried 3 ways and still corrupted. I modded just money....corrupted. I modded just focus......corrupted. I modded just items......corrupted. No idea whats wrong lol!
-
Re: Thief 4 Save Editor v1.0
Thanks a lot Bro! Will try it out now. :)
-
Re: Thief 4 Save Editor v1.0
Quote:
Originally Posted by
Wrathstrike
Thanks a lot Bro! Will try it out now. :)
Let us know how it goes please so I can figure out what went wrong with mine lol!
-
Re: Thief 4 Save Editor v1.0
Hm... I dunno what's wrong but I get this msg after I have loaded my i.sav into the editor:
'Sorry, but something gone terribly wrong!'
And after that the editor just crashed. :X
I have 3 files instead of 2 in my save btw, I.sav, R,sav and C.sav
-
Re: Thief 4 Save Editor v1.0
Quote:
Originally Posted by
Wrathstrike
Hm... I dunno what's wrong but I get this msg after I have loaded my i.sav into the editor:
'Sorry, but something gone terribly wrong!'
And after that the editor just crashed. :X
I have 3 files instead of 2 in my save btw, I.sav, R,sav and C.sav
Yeah I got that message when I tried to load an already modded save so I tried a fresh one and it corrupted. I tried modding the I sav and R save but no success still corrupt. I wish I knew what was wrong lol!
-
Re: Thief 4 Save Editor v1.0
I guess we'll have to check with Vulnavia himself. Btw, Vulnavia, if you need my save for testing, I can post it online for you. :)
-
Re: Thief 4 Save Editor v1.0
Yeah, well i was not able to test it fully, shit happens... lol!
But for the 'Sorry, but something gone terribly wrong!' Message this comes if the Values are not findable at all or something crashed, should not happen and
could mean that the Blocklocation is not so stable as supposed, which would suck, but would be fixable by searching through them instead of picking the second
like i do now...
I tested it with all posted Saves i had and it worked fine, so would be nice to get the Saves that caused that, to pinpoint the Problem...
Also if everything was fine (No Errors and saves nicely) and the damn Thing gets a corrupted Message, then there is probably another CRC somewhere,
its possible but i not seen anything apart of those two per Block... Also i know that those two are valid and if something would have changed there,
it would not be possible to load, because i use them to check the first Block as a Magic to identify the File... So either there is really a fourth CRC or
something fucked up with the Structure or the Values was too high ... can be tested if only set Value +1, if corrupted probably fourth CRC else Value
to high...
Anyway, i need those Saves, who know perhaps the ones i had are older (Title Update?) or simply different...
-
Re: Thief 4 Save Editor v1.0
Quote:
Originally Posted by
Vulnavia
Hi, finished that Thief 4 Save Editor v1.0
ShangTsung and others requested...
Tool coded by
Vulnavia
PPC Codeanalysis by
Vulnavia
Reverse Engineering by
Vulnavia
Do not post this Tool on any other website without my permission!
Code:
How to use it:
1. Extract "I.sav and R.sav" from your gamesave
2. Load "I.sav" or "R.sav" into the Tool
3. Mod Gold and/or Focuspoints and/or press Max Items to set all Consumables to 9999
4. Press Save Changes
5. Replace "I.sav" and/or "R.sav" back into your gamesave
6. Rehash/Resign
Do not post this Tool on any other website without my permission!
Code:
The Tool is selfexplaining else additional Information is provided in the Readme.txt... Like always i also added a nice little Tune...
This Thing allows you to edit Gold, Focuspoints and new also to max the Consumables Items (set to 9999 which should be enough i think)
on Thief 4 Savegames, dunno if there is something else worth editing apart of that... Also it seems that the actual Values are in I.sav, but
the Tools allows to load both Files, R.sav seems to have older Values, but up to you trying what happens...
But i was not able to test it yet, so... lol! Also because i decided to add the Max Items today, the release was a bit delayed... ;)
Attachment 14968
Thief4Edit v1.0:
Attachment 14969
Hey valvana can u make a tool to fix the checksum plz :-D
Sent from my R800i using Tapatalk 2
-
Re: Thief 4 Save Editor v1.0
Quote:
Originally Posted by
matthewjohn
Hey valvana can u make a tool to fix the checksum plz :-D
Sent from my R800i using Tapatalk 2
Well, first i need to know whats wrong because i tested 3 Different Saves and everything was fine, no matter if edited 1 or 100 Times back and forth, also i now first need to know if there really is a additional CRC or if it is something else....
-
Re: Thief 4 Save Editor v1.0
The save is on megaupload:
http://www.megafileupload.com/en/fil...61/Thief0.html
Do use it for testing and help resolve this once you can. :)
-
Re: Thief 4 Save Editor v1.0
Quote:
Originally Posted by
Vulnavia
Well, first i need to know whats wrong because i tested 3 Different Saves and everything was fine, no matter if edited 1 or 100 Times back and forth, also i now first need to know if there really is a additional CRC or if it is something else....
I know there is a crc at the top of both files but thats all I know lol
Sent from my R800i using Tapatalk 2
-
Re: Thief 4 Save Editor v1.0
Hm... maybe you can tell me how you check for these CRC checksums or what tools you use to find them and I see how I can help as well. :)
-
Re: Thief 4 Save Editor v1.0
Quote:
Originally Posted by
Wrathstrike
Hm... maybe you can tell me how you check for these CRC checksums or what tools you use to find them and I see how I can help as well. :)
Well, its a Custom EA with a Seed, so you need to code it, there are no Tools... Also you can check the CRC's by going over the Information Textbox after Save Changes, they are
visible in the Hint, you then can search for the Value to check if it was saved correctly... ;)
-
Re: Thief 4 Save Editor v1.0
You mean to mouse-over the textbox in your editor? I couldn't get the save to load in the editor without crashing though. :D
-
Re: Thief 4 Save Editor v1.0
Quote:
Originally Posted by
Wrathstrike
Thanks!
Ok, i noticed that the Blocks are not stable, so i will have to code a little Searcher to locate the correct one with the Values first, not a big deal but well....
So thats certainly the first Problem, but i still not know if there is an additional Check somewhere, but there is not much Room for additional ones, there are
only two Places left per Block and they are covered already by the other two so...
-
Re: Thief 4 Save Editor v1.0
Just upload the new changes once you are done, I can help to test the actual save on my console easily. :) Great work again btw.
-
Re: Thief 4 Save Editor v1.0
-
Re: Thief 4 Save Editor v1.0
I will try it later, right now I am playing another game, Thank you so much Vulnaria
-
Re: Thief 4 Save Editor v1.0
Ok, i coded a Blocksearcher now to locate it rather than pick the second, it will try every Block till it finds one or throws an Error that it can't be found...
I tested it on the provided Testsave and it works, also the CRC's are valid because if i edit it, save and edit it back the Files are Bit-Identical so i know
for sure that they are correct, however i still not know if there more or if something else (like to high Values or alike) can cause corrupted saves...
I will look at those Routines in IDA a bit and if i not find anything i will upload the Version with the Blocksearcher and wait for Feedback... lol!
-
Re: Thief 4 Save Editor v1.0
I'll wait for your upload to test the editor. Great progress here and thanks for the fast response! :)
-
Re: Thief 4 Save Editor v1.0
Okey, unbelievable but i found a 4th CRC, fucking crazy that makes 4 CRC's per Block... I up the updated Version now, hopefully it was all now... :sweatdrop:
-
Re: Thief 4 Save Editor v1.0
Great! will test it and feedback soon. :)
-
Re: Thief 4 Save Editor v1.0
I am still getting corruption. I've tested 3 fresh saves. Do you have to mod I.sav and R.sav both or is it either one?
-
Re: Thief 4 Save Editor v1.0
Quote:
Originally Posted by
XajNyne
I am still getting corruption. I've tested 3 fresh saves. Do you have to mod I.sav and R.sav both or is it either one?
Dunno, but i suppose one is Recent, one Checkpoint, one Actual....
Well, supposing that editing works now and still its corrupted even if eg. Gold Value is increased by 1, then there is probably another shity CRC somewhere,
but the Places for it becomes very rare, there is only one Place left in the Blockheaders now and i don't see what they could additionally check, i mean
they check each Junk four Times... The only Thing left i can imagine would be one of all Junks joined, but for what if all others match? But well, i will
check it further then, but tomorrow, because i'm tired now and need to go to my Girlfriend... :-r
-
Re: Thief 4 Save Editor v1.0
-
Re: Thief 4 Save Editor v1.0
Same issue, got save corruption after resign also.
-
Re: Thief 4 Save Editor v1.0
very nice work on this editor Vulnavia
-
Re: Thief 4 Save Editor v1.0
Nice job on the editor mate.
-
Re: Thief 4 Save Editor v1.0
Well done on the editor. i've not even started playing this game yet
-
Re: Thief 4 Save Editor v1.0
thank you good work always :P
-
Re: Thief 4 Save Editor v1.0
Appreciating the hard work being put into this so far, fingers crossed for a break through soon!
-
Re: Thief 4 Save Editor v1.0
I searched and searched, but i'm unable to find anything yet... There is only one Value left i don't know where it comes from per Block and i even tryed Bruteforcing it with no Result, so i assume it has nothing to do directly with the Compressed or Decompressed Content... I will further search but i suppose it will take longer because i see nothing in IDA which could be responsible for it... Also they check the first Header-CRC and then the Compressed-Block-CRC and then decompress it, and i know those match... Also the CRC for the Uncompressed Block match too, its checked somewhere else on a Point which seems to be the Routine that links all the corresponding Blocks together, apart of this there is nothing...
But i also found a SHA in a Routine with a ZLIB in it, but this must be for something else, because there is no SHA nowhere also the Decompress/Compress for the Blocks are made somewhere else together with the two mentioned CRC which are found and match already...
Honestly, its a bit annoying currently... I also seen that the PC-Saves are made the same way, with a slight Difference on the same Value which i don't know where it comes from, so, hmm, if i can't find it for longer i will try to get the PC-Thief-Version and decompile and debug it in Olly, perhaps i can find this Bastard this way, as a last resort.. ;)
-
Re: Thief 4 Save Editor v1.0
Good luck. I hope you can figure it out. Your editor is cool and I really want to get it to work.
-
Re: Thief 4 Save Editor v1.0
Ok, good News, the Problem doesn't seem to be a CRC but a Datastructure Problem, i tested it on the PC-Version and it doesn't matter what i change on the Values i don't know where they come from, probably some are left behind Junk and other some irrelevant Stuff, also even deleting some Bytes seem to be ok, but as soon as i insert some the save becomes corrupted... So i will have to find a Solution to Calculate it somehow, which is not so trivial because i need to be sure not to delete important Bytes but the greater Problem is if the new Data becomes bigger that the Space before including the left behind Junk because then i need to insert which causes Problems... I will try some workarounds, perhaps its only the Distance that matter, i hope so...
-
Re: Thief 4 Save Editor v1.0
Quote:
Originally Posted by
Vulnavia
Ok, good News, the Problem doesn't seem to be a CRC but a Datastructure Problem, i tested it on the PC-Version and it doesn't matter what i change on the Values i don't know where they come from, probably some are left behind Junk and other some irrelevant Stuff, also even deleting some Bytes seem to be ok, but as soon as i insert some the save becomes corrupted... So i will have to find a Solution to Calculate it somehow, which is not so trivial because i need to be sure not to delete important Bytes but the greater Problem is if the new Data becomes bigger that the Space before including the left behind Junk because then i need to insert which causes Problems... I will try some workarounds, perhaps its only the Distance that matter, i hope so...
Great work bro! as always deeply appreciated and great respect for the efforts you put in, 2 thumbs up! ;)
-
Re: Thief 4 Save Editor v1.0
Thanks Wrathstrike! :wink:
Well, i think its more trivial than supposed and i wasted about 30 Hours searching and Bruteforcing a non-existing CRC... :ka boom: :wtfsmilie:
The Solution is to simply align the Data by 8 ... thats all and is so simple to Calculate, the inserted Bytes are the Result of (8-(Size MOD 8))
thats all it seems, so i will also fix that annoying Problem and who knows, now that i have the PC-Version, why not add a Auto PC/XBOX identifier
so that PC-Saves can be edited too... :confident: :serious business:
But, i need to go to the City with my Girlfriend first, she just phoned me, so i hope i can up it in some Hours... :on fire:
-
Re: Thief 4 Save Editor v1.0
Just update the save editor once you can. Will be more than glad to help test it out. :)
-
Re: Thief 4 Save Editor v1.0
Perfection takes time. Take as long as you need to get it right. I will also be happy to test it out once you solve the problem.