Aller au contenu

Photo

Could someone please help me with the Hex Editor?


  • Ce sujet est fermé Ce sujet est fermé
22 réponses à ce sujet

#1
Mr Zoat

Mr Zoat
  • Members
  • 221 messages
I'm trying to gt my new FemShep together with Ashley.  I'd like to do this using a hex editor (I'm using HxD).  I've used 7-Zip to open the save file, no problem.  Finding the 08 to change to 00 is also straight forward.  When I save and close I get a box popping up with the text -File 'state.sav' was modified.  Do you want to update it in the archive?-  Selecting OK results in the error message -Can not update file C:\\\\Users\\\\PAULTA~1\\\\AppData\\\\Local\\\\Temp\\\\7zOE39B.tmp\\\\state.sav-

What am I doing wrong?

Modifié par Mr Zoat, 04 octobre 2010 - 05:28 .


#2
bottledwater

bottledwater
  • Members
  • 228 messages
is the archive u opened read only?

#3
Mr Zoat

Mr Zoat
  • Members
  • 221 messages
Right click on the save file, read only is not ticked.

#4
Turian Antiquarian

Turian Antiquarian
  • Members
  • 349 messages

Mr Zoat wrote...

Right click on the save file, read only is not ticked.


That's a PC modding issue, post it in the Modding thread.
you would need to register your game to post there, so if you (like me) choose not to do so, please avoid posting Mod related topics on this board.

However, since HEXeditor is not a designated modding tool, I'll say that what you described has nothing to do with ME2 files, just your OS and editor settings. try reading software documentation or visit the publisher's website.

No PMs please,


Good luck.

#5
Mr Zoat

Mr Zoat
  • Members
  • 221 messages
Firstly, as far as I know it is registered.



Secondly, ME1. Not ME2.

#6
Turian Antiquarian

Turian Antiquarian
  • Members
  • 349 messages

Mr Zoat wrote...

Firstly, as far as I know it is registered.

Secondly, ME1. Not ME2.



There's no ME1 modding thread, so this will have to do (unless it bothers someone).

I'll do my best, please answer:

1) Are you following a tutorial of sort? May I have a link?

2) Like you said, extracting files with
.MassEffectSave
extension works fine, but we need to use the correct module to compress it after changes have been made. You know which one? The default one corrupts the archive upon saving a change to the HEX sheet.

3) Where did you get the Flag info for Ashley romance state? I Googled nothing about any of this... I know only of texmods and the console.


Very interesting...

#7
The King of Dust

The King of Dust
  • Members
  • 635 messages
To antiquarian:

He's probably trying to follow the instructions I posted a few months ago on the ME1 forums :
social.bioware.com/forum/Mass-Effect/Mass-Effect-1-Official-Campaign-Quests-and-Storylines-Spoilers-Warning/Female-Shepard-romancing-Ashley-2771955-1.html

To Zoat :
My guess is, you're trying to modify the files while they are still zipped. If that's the case, you have to extract them first. The 3 of them. You'll be re-creating a new zip later on.
 

Modifié par The King of Dust, 05 octobre 2010 - 04:36 .


#8
Mr Zoat

Mr Zoat
  • Members
  • 221 messages
Yes, I was trying to follow those instructions. I didn't realise that I was supposed to save them somewhere else. Thank you for pointing out my mistake. I'll see if I can now get it to work.

#9
Mr Zoat

Mr Zoat
  • Members
  • 221 messages
No, sorry, stuck at

Rename the zip to YourCharacterName00_02.MassEffectSave and now open both your unchanged MassEffectSave file and the one you've just created in your hex editor. You'll need to copy the first 2027 (8231 in decimal) bytes from the old file to the start of the new one to make it a valid MassEffectSave file.




How do I do that?

#10
The King of Dust

The King of Dust
  • Members
  • 635 messages
Well the first part in that quote is pretty straightforward, so I'm guessing you have a problem with the "Copy the first 2027 bytes from the old file to the start of the new one" part.

Since you said you were using HxD, I'm gonna go with how the lines and columns are presented in it.
First step : open both your newly created modified savegame, and the old unmodified one in HxD.

Next : in the old unmodified savegame, go to line 00002020, column 07 and select every byte from there all the way to the start of the file. (If you look in the ASCII part of the interface on the right side, you should see the letters PK right after the 2027th byte, you need to select everything that comes before that  PK). Now copy what you have selected (CTRL+C or Edit -> Copy, but you probably already know how to do that :P)

Finally : Go to the newly created MassEffectSave file. If you look at the ASCII section again, the file should start with PK. Make sure you cursor is at the very start of the file, go in the Edit menu and select "Paste Insert". Save your changes.

You should now have a valid MassEffectSave file that can be loaded by the game.

#11
Turian Antiquarian

Turian Antiquarian
  • Members
  • 349 messages

The King of Dust wrote...

Well the first part in that quote is pretty straightforward, so I'm guessing you have a problem with the "Copy the first 2027 bytes from the old file to the start of the new one" part.

Since you said you were using HxD, I'm gonna go with how the lines and columns are presented in it.
First step : open both your newly created modified savegame, and the old unmodified one in HxD.

Next : in the old unmodified savegame, go to line 00002020, column 07 and select every byte from there all the way to the start of the file. (If you look in the ASCII part of the interface on the right side, you should see the letters PK right after the 2027th byte, you need to select everything that comes before that  PK). Now copy what you have selected (CTRL+C or Edit -> Copy, but you probably already know how to do that :P)

Finally : Go to the newly created MassEffectSave file. If you look at the ASCII section again, the file should start with PK. Make sure you cursor is at the very start of the file, go in the Edit menu and select "Paste Insert". Save your changes.

You should now have a valid MassEffectSave file that can be loaded by the game.



Ha! it works!

Very nice! How did you figure that the "custom" file format is just a .zip with a prefix?

#12
The King of Dust

The King of Dust
  • Members
  • 635 messages

Turian Antiquarian wrote...

Very nice! How did you figure that the "custom" file format is just a .zip with a prefix?


I can't take credit for that. I read that information on the old ME forums from before the social site. Can't remember who wrote about it but you can probably dig it up if you really want to know, the forums are still there.

The only thing I can take credit for is finding the gender byte in the state.sav file

#13
Turian Antiquarian

Turian Antiquarian
  • Members
  • 349 messages

The King of Dust wrote...

The only thing I can take credit for is finding the gender byte in the state.sav file


That's plenty. Allow me to present you with the customary award:

+1 Gold Baby-Krogan

For innovation in the field of retro-modding.

#14
Mr Zoat

Mr Zoat
  • Members
  • 221 messages
Sorry, but I don't think that you've dumbed it down to my level yet. Am I trying to find 00002027 in player.sav, state.sav or WorldSavePackage.sav? I can only find a PK in player.sav at line 0001BB43 / 44. I appreciate your help and I apologise for my obtuseness.

#15
The King of Dust

The King of Dust
  • Members
  • 635 messages

Turian Antiquarian wrote...

That's plenty. Allow me to present you with the customary award:

+1 Gold Baby-Krogan

For innovation in the field of retro-modding.


*Holds the Gold Baby-Krogan above his head with both hands while the Zelda theme for acquiring a new item plays in the background*

Mr Zoat wrote...

Sorry, but I don't think that you've
dumbed it down to my level yet. Am I trying to find 00002027 in
player.sav, state.sav or WorldSavePackage.sav? I can only find a PK in
player.sav at line 0001BB43 / 44. I appreciate your help and I
apologise for my obtuseness.


Alright, remember that YourCharName00_01.MassEffectSave file that you got the 3 *.sav files from? You need to create a new file like that.

To do that, you first have to create a zip file that contains your player.sav, your modified state.sav and your WorldSavePackage.sav. Once you have that zip file, you have to rename it to YourCharName00_02.MassEffectSave (numbers 00_02 are used as an example, first number is to identify your character if you have more than one character with the same name, second number is to identify that specific savegame)

Once that's done, you open both the old MassEffectSave file and the new one you just created in HxD, and you do what I explained above. (copying the first 2027 bytes from the old MassEffectSave file from which you extracted the 3 *.sav files to the new MassEffectSave file you juste created)

If it's still not clear enough, I suppose I could try to take a few screenshots and make a visual guide. Uploading images with a dial up connection is a bit of a pain though.

Modifié par The King of Dust, 06 octobre 2010 - 10:49 .


#16
Mr Zoat

Mr Zoat
  • Members
  • 221 messages
I've got broadband so its probably easier if I show you what I'm doing.
Posted Image

The file I wish to modify is named Sonya00_01.  Firstly, I open 7-Zip file manager and use it to access the three files inside Sonya00_01.  I then save these files elsewhere.
Posted Image

I then use HxD to change the 80 in line 00000270 column 0A into 00.
Posted Image
Posted Image

I save the modified file and close HxD.
Posted Image
Posted Image

Next I open Sonya00_01, player.sav and go to line 00002020
Posted Image
As you can see nothing labled PK.  Regardless I select every character from 00002027 to the begining.
Posted Image

#17
Mr Zoat

Mr Zoat
  • Members
  • 221 messages
How am I doing so far?

#18
Turian Antiquarian

Turian Antiquarian
  • Members
  • 349 messages

Mr Zoat wrote...

How am I doing so far?



Take a look at the file extensions.

You opened a
.sav
file, when a
.MassEffectSave
is what you really need.

To make it clear: You CAN (and should) open
.MassEffectSave
files with HxD.

Now do Dust's step-by-step from square 1, and you'll get it.

#19
Mr Zoat

Mr Zoat
  • Members
  • 221 messages
Trying again.
Posted Image

Posted Image
We have the PK!

Posted Image

Posted Image

Posted Image

Posted Image

But what I end up with is

Posted Image

What did I do wrong this time?

#20
Turian Antiquarian

Turian Antiquarian
  • Members
  • 349 messages
Go to "folder options" (win OS) and uncheck the box that hides common file extentions, that will grant you the abilty to change filetypes.

you're almost done.

#21
Mr Zoat

Mr Zoat
  • Members
  • 221 messages
YES!  The beautiful sound of Jenkins calling my FemShep "Sir".

Posted Image

Posted Image

Posted Image

Thank you The King of Dust and Turian Antiquarian for your instruction and patience.  Talk to you again after ~40 hours of gameplay.

#22
The King of Dust

The King of Dust
  • Members
  • 635 messages
Glad to hear you got it working. Sorry I didn't answer sooner, I've been busy.



Thanks Antiquarian for taking the time to help him.

#23
Mr Zoat

Mr Zoat
  • Members
  • 221 messages
I'm sorry, but I don't have a golden baby-krogan to give you.



Um...



Would a krogan testicle do?