ROM Hack Hex Editor that can edit by "columns" of data?

Rykin

Well-Known Member
OP
Member
Joined
Feb 15, 2004
Messages
408
Trophies
2
Age
40
Location
Baltimore, MD
Website
Visit site
XP
821
Country
United States
Heres my issue. I'm currently hex editing some files, and they have an interesting header setup.
The first 2 bytes is for the list of messages in the file. The 2nd two bytes is the idenitifer, and then after that a pointer/length header begins for all the messages.

The headers are 8 bytes, the first four bytes point to the location of the data, the 2nd four bytes list the length.

After all the headers are inputed, the actual messages they're pointing to are inputed.

My issue is that if I want to ADD any data to the text, I need to add a header. What this does is SHIFT all of text data 8 bytes, and that means the original headers are now pointing to the wrong data.

Is there a hex editor that can work like Excel and allow me to only modify a column of data? This would be VERY helpful as it would prevent me from needing to edit each header manually. I can't do a Select_All > Add +8 Because that will add 8 to the length part of the header, but I only want to add it to the pointer.

Any suggestions for Hex Editors are welcome.

P.S. I currently use Hex Workshop and have Hexecute installed.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,405
Country
United Kingdom
You answered your own question. Excel (install analysis toolpak for hex if you have not or get open office) is what I use to do this.
Dump the hex into it and do what you like. You may need an extra stage to rid yourself of the tabs but that is 20 seconds in notepad.
Hex workshop has some nice "copy as" options, copy as text and lose the decoded section and address column.

Sidenote if you want to prevent data being added (inserted) in hex workshop press insert, it will now overwrite (OVR should be coloured in the bottom right corner).
 

Rykin

Well-Known Member
OP
Member
Joined
Feb 15, 2004
Messages
408
Trophies
2
Age
40
Location
Baltimore, MD
Website
Visit site
XP
821
Country
United States
I see what you mean about the indenting. However, I can't keep to paste the file back into the rest of everything. When I try to copy just a few lines it still tries to paste the whole thing, and even then it doesn't paste the right portion. Perhaps my clipboard is being a bit strange since I instally tried to copy from Excel and not the saved .txt.

But that's the fastest way you know of, I assume. It can work- it's better than the alternative. I'll try it out tomorow when it isn't 5am. :>

Do you happen to know the format of how to keep the numbers at least 4 digits? I'm doing a HEX2DEC, +8, DEX2HEX and the inital 00s fo bytes such as 0001 and getting cut off.

Sorry, I've not toyed with excel in a while. :>
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    Still don't know why he left unless someone really hurt his feelings
  • K3Nv2 @ K3Nv2:
    Don't know why people get so emotional online just get over it ffs
    +2
  • BigOnYa @ BigOnYa:
    He was the ass of gbatemp, everyone knocked on him, I honestly felt bad, even though I was guilty myself, but he egged it all on himself,
  • BigOnYa @ BigOnYa:
    But he still here, but under dif name, he pm me sometimes still even.
  • K3Nv2 @ K3Nv2:
    It's like they think we'll be in their bed pissing on it the next day
  • BigOnYa @ BigOnYa:
    I feel like gbatemp should make t-shirts or memorabilia to remember the lost ones. I bet the Polly shirts would sell out quick.
  • K3Nv2 @ K3Nv2:
    Nah that could actually bring lawsuits
  • K3Nv2 @ K3Nv2:
    Tempsuits
  • BigOnYa @ BigOnYa:
    PollySuits
  • BigOnYa @ BigOnYa:
    Your correct, Somebody would be guilty and there would be riots, then they storm the gbatemp capitol,
  • K3Nv2 @ K3Nv2:
    Online or not there are still certain rights that judges would have no issue handing out a warrant over
  • K3Nv2 @ K3Nv2:
    Just look at Kim dotcom
  • BigOnYa @ BigOnYa:
    Honestly I'm scared to, from you, but ok, lemme turn on vpn, virtual machine, private browser first
  • K3Nv2 @ K3Nv2:
    Remember that Alexa robot I gifted you
  • K3Nv2 @ K3Nv2:
    And that laptop Webcam you never tapped up
  • BigOnYa @ BigOnYa:
    That robot is here somewhere, I hear it moving around at night, but I haven't seen it for months.
  • BigOnYa @ BigOnYa:
    Oh that laptop I give to ancientboi, so you been watching him for months, and he's been watching you
  • K3Nv2 @ K3Nv2:
    Oh good more than enough material for the fbi
    +2
  • BigOnYa @ BigOnYa:
    Damn its 5 in morn, I gotta Go wake your mum and send her to work. Check ya later.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    He could make so much money!!! His arm would never get tired lol
    +2
  • S @ salazarcosplay:
    How are yall doing
    +1
    S @ salazarcosplay: How are yall doing +1