logo
 drop

Main

Community

Submissions

Help

82455349 visitors

Author Topic: Windhex Alternative?  (Read 2757 times)

Romsstar

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Windhex Alternative?
« on: March 16, 2012, 10:30:53 am »
My favoured Hexeditor for Hacking is Windhex and actually I'm quite happy with a lot of stuff it is doing,
but it lacks a feature which is important for me:

Search+Replace.
If you want to replace recurring strings you have to replace everyone per Hand.

This gets tedious.
But I do like the Interface of Windhex and the Table Support, you can search for Kana,
it has Unicode Support and more.

If I want to replace something I have to switch between Editors and my question is:

Is there any Hexeditor that comes close in functionality and simplicity but offers also a replace function?

Or is the source of Windhex public? It has been so many years but still I feel the lack of a Hexeditor which really is customized for Romhacking.
If a Hexeditor offers one thing it lacks the other...
I've checked numerous of the Hex Editors we have in the Utilities Section but couldn't really find what I was looking for.

Maybe someone can suggest a better one? I've been working with Windhex for a while now and actually was quite happy, but when I have to replace more than 1000 strings I'd love to have something that can deal with it without me having to replace every single string per hand.

Nightcrawler

  • Hero Member
  • *****
  • Posts: 5810
    • View Profile
    • Nightcrawler's Translation Corporation
Re: Windhex Alternative?
« Reply #1 on: March 16, 2012, 12:40:12 pm »
You'll probably end up having to switch between editors. There's very few ROM hacking specific hex editors and most (as you know) are poorly developed in the generic hex editing area compared to non ROM hacking specific hex editing programs. Windhex is still not open source.

I use HxD for most any non-ROM hacking specific hex edit. It can do search and replace easily.

I made an inquiry to the author for the source in hopes that I could add table support and make an awesome ROM hacking hex editor, but unfortunately that is also closed source and I could not have it. :(
TransCorp - Over 15 years of community dedication.
Dual Orb 2, Wozz, Emerald Dragon, Tenshi No Uta, Herakles IV SFC/SNES Translations

creeperton

  • Hero Member
  • *****
  • Posts: 560
  • Omnia mutantur, nihil interit
    • View Profile
    • Furdo's Workspace
Re: Windhex Alternative?
« Reply #2 on: March 16, 2012, 04:32:56 pm »
I don't quite understand what you want, but XVI32 has a Search, Replace, Count, and Replace All.  You can do all of these either from the beginning of the file, or from wherever you place the cursor.  And you can do them forwards (from wherever you start to the end of the file) or backwards (from wherever you start to the beginning of the file).

I really want a hex editor that allows you to Count and Replace All between (x) offset and (y) offset.

I think either HxD or Neo allows you to Search, Count, and Replace All over multiple files chosen, or all the files in a specified directory.  That's really useful sometimes.

Most of the non-crappy hex editors have scripting features, which should allow you to create what you need it to do.

Azkadellia

  • Forum Moderator
  • Hero Member
  • *****
  • Posts: 789
  • Location: Georgia (the state, not the Soviet Country).
  • 提交向你的情妇!
    • View Profile
    • Princess Translations
Re: Windhex Alternative?
« Reply #3 on: March 16, 2012, 04:44:53 pm »
If you don't mind mucking about with the train wreck that is wxWidgets, you could always download the source to MadEdit and tailor it to suit romhackers.
Current Projects:
  • Nurvus: 10%
  • Princess Maker 2 Refine: 45%
  • ScriptTool: 25%
  • EditTool: 90%
I do the Twitter thing now: https://twitter.com/MistressSaeko (expect lots of game streaming announcements)

EarlJ

  • Newbie
  • *
  • Posts: 47
    • View Profile
Re: Windhex Alternative?
« Reply #4 on: March 16, 2012, 11:51:56 pm »
The source for Translhextion is also around, if somebody wanted to use that.

Although now that I look at the date on it... holy crap, it's going to be 12 this year!
Now I feel old.

kingofcrusher

  • Full Member
  • ***
  • Posts: 220
    • View Profile
Re: Windhex Alternative?
« Reply #5 on: May 09, 2012, 05:48:54 pm »
If you don't mind mucking about with the train wreck that is wxWidgets, you could always download the source to MadEdit and tailor it to suit romhackers.

Sorry that this is off-topic, but why do you say wxWidgets is a train wreck? I was considering using it for the GUI to a couple tools I made for the ColecoVision because of the cross-platform compatibility. I'd like to make them available for Mac (my choice) and Windows (so others can use them) and wxWidgets seemed like the easiest way, but if it sucks I'd rather not waste the time on it and just learn to use the Windows API instead.

Klarth

  • Sr. Member
  • ****
  • Posts: 423
  • Location: Pittsburgh
    • View Profile
Re: Windhex Alternative?
« Reply #6 on: May 09, 2012, 05:52:42 pm »
but if it sucks I'd rather not waste the time on it and just learn to use the Windows API instead.
Using win32api to code a GUI is a soul-sucking experience.  I can't give you a good suggestion for a C++ Windows GUI framework as I've moved onto C#/.NET.  But definitely don't use win32api if the GUI is more complex than a simple dialog box.

Azkadellia

  • Forum Moderator
  • Hero Member
  • *****
  • Posts: 789
  • Location: Georgia (the state, not the Soviet Country).
  • 提交向你的情妇!
    • View Profile
    • Princess Translations
Re: Windhex Alternative?
« Reply #7 on: May 09, 2012, 05:55:25 pm »
Sorry that this is off-topic, but why do you say wxWidgets is a train wreck? I was considering using it for the GUI to a couple tools I made for the ColecoVision because of the cross-platform compatibility. I'd like to make them available for Mac (my choice) and Windows (so others can use them) and wxWidgets seemed like the easiest way, but if it sucks I'd rather not waste the time on it and just learn to use the Windows API instead.

wxWidgets is the worst part of MFC magnified. If you want cross-platform, Qt's better. Failing that, there's always mono.
Current Projects:
  • Nurvus: 10%
  • Princess Maker 2 Refine: 45%
  • ScriptTool: 25%
  • EditTool: 90%
I do the Twitter thing now: https://twitter.com/MistressSaeko (expect lots of game streaming announcements)

Rhys

  • Hero Member
  • *****
  • Posts: 700
  • Location: England
    • View Profile
    • CN
Re: Windhex Alternative?
« Reply #8 on: May 09, 2012, 07:03:22 pm »
Don't use Win32, a lot of things you come to rely on being done for you - namely Live Resize and the like aren't in Win32. Qt's been a bag of hurt for me on my various attempts to use it in Linux and OS X, Windows may be another story.

wxWidgets made me want to kill myself - and that was just reading the documentation :(

Most of them either suck to use or are ridiculously over implemented, whatever one you pick you'll end up raging after a while. Literally the only app framework I've gotten on well with is Windows Forms, if you still want to code in C++ that's more than possible with Windows Forms, it's just Managed C++, which afaik is just a wrapper around the standard variety.

BRPXQZME

  • Hero Member
  • *****
  • Posts: 4761
  • Location: Centreville, Virginia, USA
  • everything sucks forever
    • View Profile
    • The BRPXQZME Network
Re: Windhex Alternative?
« Reply #9 on: May 09, 2012, 08:59:08 pm »
OS X throws a wrench into pretty much all the cross-platform widget kits. There is no great way around that, unfortunately.
we are in a horrible and deadly danger

LostTemplar

  • Hero Member
  • *****
  • Posts: 1003
  • Location: Germany
    • View Profile
    • au-ro-ra.net
Re: Windhex Alternative?
« Reply #10 on: May 10, 2012, 03:09:05 am »
Qt is way too bloated in my book, and it can be rather unintuitive at times. It gets the job done though, so if wxWidgets isn't up your alley (I can't say, having never used it) you might give it a try. I think the difference between professional and open source shows pretty clearly in the design of all those GUI toolkits. For instance, I've always found that Windows Forms was very easy to develop for and that it was very intuitive. Cocoa is very nice, too, although I don't really like Objective-C. It's a shame that these are platform-specific.

By the way, if you end up writing it yourself, you might want to try C++/CLI (a "managed" variant of C++) for your Windows GUI. It lets you use the .net Framework in C++ and although the GUI will end up being "managed", you can easily call your own "unmanaged" C/C++ routines. (You could e.g. also write the GUI in C# and write a wrapper for your C++ code in C++/CLI.)

Nightcrawler

  • Hero Member
  • *****
  • Posts: 5810
    • View Profile
    • Nightcrawler's Translation Corporation
Re: Windhex Alternative?
« Reply #11 on: May 10, 2012, 09:06:01 am »
Using win32api to code a GUI is a soul-sucking experience.  I can't give you a good suggestion for a C++ Windows GUI framework as I've moved onto C#/.NET.  But definitely don't use win32api if the GUI is more complex than a simple dialog box.

Seconded. Using C++ for such purposes will undoubtedly require many more lines of code. I'd rather spend my time in the problem domain where it matters most.
TransCorp - Over 15 years of community dedication.
Dual Orb 2, Wozz, Emerald Dragon, Tenshi No Uta, Herakles IV SFC/SNES Translations

creeperton

  • Hero Member
  • *****
  • Posts: 560
  • Omnia mutantur, nihil interit
    • View Profile
    • Furdo's Workspace
Re: Windhex Alternative?
« Reply #12 on: May 11, 2012, 04:03:09 pm »
Didn't byuu develop Phoenix specifically for emulators, hex editors, and the like?

LostTemplar

  • Hero Member
  • *****
  • Posts: 1003
  • Location: Germany
    • View Profile
    • au-ro-ra.net
Re: Windhex Alternative?
« Reply #13 on: May 11, 2012, 04:36:57 pm »
Well, it has a Hex Editor control, if I recall correctly. I used Phoenix a bit when I modified his script editor for Far East of Eden Zero. It's easy to use, but don't expect anything beyond basic UI.

kingofcrusher

  • Full Member
  • ***
  • Posts: 220
    • View Profile
Re: Windhex Alternative?
« Reply #14 on: May 16, 2012, 12:40:17 pm »
Awesome, thanks for the tips guys. I'm fine on the Mac as it's what I do all my coding on, but I need to learn to create a Windows GUI as I know basically nothing about Windows programming (I just use the old classic console for everything I need to do in Windows, hah). I'll look into the C++/CLI idea that LostTemplar suggested, that sounds like it would work best for me.

I'm glad I asked, I had wxWidgets installed and was getting ready to read through the docs and get started, hah.