News: 11 March 2016 - Forum Rules, Mobile Version
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia

Author Topic: How do I edit the sprites of an NES game (like Zelda 1) with hex editor???  (Read 366 times)

The3Dude

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
I've been so stuck on this for SOO long! Can anyone PLZ provide detailed info on this? Oh and the reason I want to use a hex editor is because I don't have a Windows computer... I have a chromebook.... :laugh: :-[
~The3Dude~

FAST6191

  • Hero Member
  • *****
  • Posts: 2238
    • View Profile
Refurb laptops of the core2 era with a few of gigs of RAM are going for next to nothing these days. Other than some of the high end emulation functions ROM hacking does not require anything even close to that.

Still
http://datacrystal.romhacking.net/wiki/The_Legend_of_Zelda:ROM_map has a bunch of stuff pertaining to location of the graphics.

https://wiki.nesdev.com/w/index.php/PPU_pattern_tables has a bunch on how the sprite formats work.

Regardless of that it is still going to be very tricky to edit anything of note as far as graphics themselves (palettes maybe) in a hex editor.

The3Dude

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Yeah, I know how to edit the palettes with a hex editor, I just can't figure out how to change the actual graphics!
I mean I've edited the number 8 in hex code accidentally,but I didn't even understand how I edited it, I just
kept editing random code and the bottom pixel of 8 was gone...  :huh:
« Last Edit: January 19, 2018, 01:12:35 pm by The3Dude »
~The3Dude~

KingMike

  • Forum Moderator
  • Hero Member
  • *****
  • Posts: 6294
  • *sigh* A changed avatar. Big deal.
    • View Profile
You would have to manually convert every tile to its hex representation and search for that.
I'm sure there's documents here explaining how graphics are stored in hex, but it would be quite cumbersome to convert every single graphic to hex, make changes in hex, and then write the hex back to the ROM.
I don't think you'd make it very far before finding it incredibly frustrating.

Are there emulators you can use with built-in hex editors to see the data?
Quote
Sir Howard Stringer, chief executive of Sony, on Christmas sales of the PS3:
"It's a little fortuitous that the Wii is running out of hardware."

Squall_FF8

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
I don't think you'd make it very far before finding it incredibly frustrating.
Indeed! Working in hex is probably the worst way to do things, especially complicated things like sprites.

I will suggest to try this: https://www.codeweavers.com/products/crossover-chromeos

The3Dude

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
 :'(Darn.. I can't use that crossover program because I have an ARM processor chromebook... I usually edit graphics
with this website called cameyo, but you have a 25 minute timer to use Windows, and it's very hard editing when I have a time limit..
~The3Dude~

Psyklax

  • Hero Member
  • *****
  • Posts: 511
    • View Profile
    • Psyklax Translations
I'm really not sure about hacking with one of those things... depending on where you live, can't you just buy a second-hand desktop or laptop for next to nothing? If you're hacking the NES as you said, you can use something over 10-15 years old and FCEUX will still run perfectly fine, then you can use all the programs you need. I'm sure Chromebooks have their uses, but I can't see hacking being one of them.

Regarding how graphics look in a hex editor, sure, you could do it, if you read documentation in how graphics are stored. But seriously, your time is worth more than hacking graphics that way.

The3Dude

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Ok! I've found some info a couple days ago from http://www.romhacking.net/forum/index.php?topic=20294.0, now I got this down!!! I spent hours trying to figure out which hex address made up each combo string in the hex editor and went through all the addresses and made this! (The white parts=transparent and the red parts=the actual color) (https://drive.google.com/file/d/1N4kCLPxB0sr84tH_DdBmcg-kg3ESUgY1/view?usp=sharing) and now I understand! Thanks for your help guys, oh and edited this sprite
for the number zero with a hex editor(https://drive.google.com/file/d/186oZr-FoBnvSg1B_GjyKnjMupHB9caLc/view?usp=sharing)!!!
~The3Dude~

pianohombre

  • Full Member
  • ***
  • Posts: 243
    • View Profile
    • My personal website of short stories and comics
Just run a simulated Windows from a program like Wine, then download a sprite editor for Zelda NES.

Better yet, try a program like Zelda Quest that has all the sprites, palettes, level objects loaded. No need to re-invent the wheel.
One small step for man,
one giant leap for mankind. -Neil Armstrong

Jorpho

  • Hero Member
  • *****
  • Posts: 3734
  • The cat screams with the voice of a man.
    • View Profile
I was going to suggest using Tile Molester, but apparently not even Java will run on a Chromebook.

Seems there are ways to get a Linux distro running, though.
https://github.com/dnschneid/crouton

I agree with the repeated suggestions that you should not be doing sprite editing with a hex editor.
This depresses me. I feel like a goldfish right now...

The3Dude

  • Jr. Member
  • **
  • Posts: 6
    • View Profile
Re: How do I edit the sprites of an NES game (like Zelda 1) with hex editor???
« Reply #10 on: January 23, 2018, 12:27:51 am »
I know guys :D Thankyou for the suggestions, It's kinda fun editing the sprites the programmy way though, I understand it a lot more, but I guess I'll stick to editing sprites with cameyo.com, because... beleive me it's a WHOLE LOT FASTER than doing it in hex!
~The3Dude~