This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
KillaVanilla's profile picture

HexEdit

Started by KillaVanilla, 11 May 2013 - 05:53 PM
KillaVanilla #1
Posted 11 May 2013 - 07:53 PM
Hello all.

I was bored.
Then, I decided to make something that was not an API. I decided to make a hex editor.

Usage is simple: click on cells to change the hex values in them, or click on the corresponding character in the "ASCII Representation" field.
The cell or character you clicked will become a blank field and be highlighted in red. The corresponding cell or character will also become a blank field but will be highlighted in blue.
Then type in the appropriate value or character. Cells that are blank have not been set; they're equivalent to (and actually are) Lua's nil value. When setting a byte's value or character, pressing your backspace key will set it to nil.

Press E to save and exit, Q to quit without saving, and S to save without quitting.

You'll need an advanced computer, obviously.

Possible bugs:
  • Long filenames will be cut off.
  • Trying to access bytes with offsets greater than 0xFFFF (65535) bytes will break the UI or cause visual defects. You would need a file that is at least 64 kilobytes large though.
Get it here. (Pastebin code: H7uig1Yi)
Dlcruz129 #2
Posted 11 May 2013 - 10:51 PM
I was bored.

The three most common words in the Programs section. :P/>
Nice program!
Sxw #3
Posted 11 May 2013 - 11:09 PM
I've been waiting for this ;p Nice job
Shnupbups #4
Posted 11 May 2013 - 11:37 PM
Interestingnessful. Imma play around with this…