News:

11 March 2016 - Forum Rules

Main Menu

Screenshots

Started by Gemini, September 04, 2011, 09:02:29 PM

Previous topic - Next topic

Gemini

#180
Given how it has heavy winapi dependencies, I doubt.

EDIT: I was wondering if anyone ever used the bytecode feature in Translhextion? I wasn't even aware it had such a feature, plus it turns out it behaves incorrectly when case sensitivity is not active (it affects binary data instead of just Ascii values). Thanks to this bug I was thinking about removing bytecode entirely, but I read somewhere about regular expressions and how they are not available for case sensitive strings, so I took inspiration from that and decided to add an option in order to enable/disable bytecode at request of the user, making it disabled by default when doing case insensitive searches (and vice versa when enabling byte code).


Does this workaround sound reasonable enough?


EDIT 2: Now it also has a nice toolbar:

justin3009

Oh god Gemini.  You're my hero for doing all of this.  I cannot express my gratitude for fixing up this program!
'We have to find some way to incorporate the general civilians in the plot.'

'We'll kill off children in the Juuban district with an infection where they cough up blood and are found hanging themselves from cherry blossom trees.'

optomon

I think the only time used the byte code was to get around the "00" searching error, which I've noticed you taken care of in a previous screenshot. By far the most irritating error in that program. Nice.

Gemini

IIRC, the 0x00 hex bug was caused by the data structures for a search being based on std::string and the c_str() method, which returns a NULL terminated string compatible with the C standard. However, when said data is used with anything like strlen() to determine the size of the array, the function will automatically break on the first 0x00 found in the search string, since it's recognized as the EOS token, thus ignoring the rest of the data. This didn't happen on bytecode stuff because it used another method for counting data size.

In the meanwhile, small updates on the GUI side:

Deriving classes for everything is just a dreamboat and allows so much control over everything, including fancy details such as menus with true color icons and other flashy GUI components (winky wink, Toolbars). Not to mention the new way dialogs are managed will allow extra functions in just a matter of defining a click event and associating a class method linked to it. Here's an example of how things are now managed inside the relative scan dialog:
CScanRelativeDlg::CScanRelativeDlg(HWND hWnd)
: CDialog(hWnd,IDD)
{
EventClick(IDC_SCAN,CScanRelativeDlg::OnScan);
EventClick(IDC_GTABLE,CScanRelativeDlg::OnGenerateTable);
EventClick(IDC_SAVE,CScanRelativeDlg::OnSave);
}

This should be very similar to how Java button events works, but I'm not sure as I haven't touched Java since high school (about 9 years ago). Many thanks to Klarth for helping me in resolving a compiler error with class method pointers.

Also, table support is working again out of the blue; no idea why it even broke in the first place, but it seems like I fixed it by toying around with the Unicode settings. On a related matter, relative scan is working again as well, but according to what I see in the code, it would only properly behave with ASCII strings, rendering the Unicode support rather useless. Should I just leave it like that and let Monkey Moore do the dirty job?

DaMarsMan

I think it looks pretty awesome. I mix of translhextion and hex workshop's speed and flexibility would be the best hex editor ever. I know a lot of people use WindHex but it's not the most user friendly in my opinion.

DarknessSavior

What's with all of the "&"s in the GUI, and what does the "I think it's the Onion!" option do? XD

~DS
Red Comet: :'( Poor DS. Nobody loves him like RC does. :'(
Sliver-X: LET ME INFRINGE UPON IT WITH MY MOUTH
DSRH - Currently working on: Demon's Blazon, Romancing SaGa, FFIV EasyType.
http://www.youtube.com/user/DarknessSavior

Gemini

In Windows menus '&' usually corresponds to "underline the following letter and use it as a shortcut for highlighting the option", while the TAB character '\t' (or 0x09) is used to indicate accelerator text (which is rendered as a separate, right-aligned message). That stuff hasn't been programmed into the new menu rendering code as it's still a WIP, but will be fixed pretty soon.

As for the onion option, it's just a joke I included for a friend of mine who likes this unknown meme. It has been removed already. :P

Speaking of icons, does anybody have a decent set of true color 16x16 pictures for the program? So far I've been ripping them from VS2005, but I'd rather use brand new icons for Translhextion.

Rhys

Visual Studio has a graphics pack you can install that has standard menu icons

Gemini

You mean those crappy 16 color icons? Give me something better, please. :P

Rhys

#189
There's more than 16 color ones :P there's various formats and color options buried in there, but when I say buried I mean it ;)

[edit]

If you feel like a bit of resource hacking, open up shell32.dll with resource hacker, standard toolbar/menu controls are in the bitmap section.

Gemini

Care to upload them somewhere? All I can find in my VS2005 folder is just a bunch of 16 color icons all using the crappy Windows default palette. <.<

Rhys

#191
Ah I use 2010, that might be why :/

[edit]

Here's the relevant toolbar strips from shell32:
linky

Gemini

Definitively a nice bunch, thanks!

Rhys


Pennywise



Text still doesn't quite match the plot of the movie, so I can probably squeeze decent translation in that space after some editing.

Jedi QuestMaster

Quote from: Pennywise on April 30, 2012, 01:30:42 AM

This game already has an entire cap font set:



I can come up with a minuscule set if you'd like.

Pennywise



I replaced that font with my standard futuristic font.

DarknessSavior

I sorta feel like your edits lose a bit of the meaning behind the original text, but it's a friggin' NES game. Space isn't a luxury. XD

~DS
Red Comet: :'( Poor DS. Nobody loves him like RC does. :'(
Sliver-X: LET ME INFRINGE UPON IT WITH MY MOUTH
DSRH - Currently working on: Demon's Blazon, Romancing SaGa, FFIV EasyType.
http://www.youtube.com/user/DarknessSavior

Cryomancer

Clearly you should hack the game so every time someone says the scientist's name it plays a WATTSMAAAAN sound clip from the movie.
weird video game comic translations:
http://opentrain.theyear199x.org/

Garoth Moulinoski

Quote from: Pennywise on April 30, 2012, 04:05:26 PM


I replaced that font with my standard futuristic font.

Gah. I'm trying to read the text box, but my eyes are actually getting distracted and I keep jumping. WHAT TRICKERY IS THIS?!
Who will quote me next?
Disclaimer: If it sounds wrong, I may have been posting while asleep.