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

Author Topic: How to edit smb1 levels using a HEX editor?  (Read 784 times)

SuperMarioHacker

  • Newbie
  • *
  • Posts: 1
    • View Profile
How to edit smb1 levels using a HEX editor?
« on: November 21, 2020, 02:46:21 am »
Hello!
I want to edit Mario 1 levels using a HEX editor. Where are the addresses for levels?

I need to know this in order to finish my romhack, because I do not want to use a level editor, I want to do it by coding/hex editing :)

FAST6191

  • Hero Member
  • *****
  • Posts: 3052
    • View Profile
Re: How to edit smb1 levels using a HEX editor?
« Reply #1 on: November 21, 2020, 10:38:42 am »
What does being told where and what something is ( https://datacrystal.romhacking.net/wiki/Super_Mario_Bros. has much, and there is presumably source code to various level editors too) so you can poke it with a hex editor* have as any different to poking it with a premade level editor?
Edit. Also presumably a nice commented disassembly somewhere around ( https://gist.github.com/1wErt3r/4048722 beware, might slow the browser a bit until it is loaded).

*a generally poor tool for ROM hacking that most around here would not advise you use, and if they do it is because it is OK as a first pass for file analysis or to tell some other hacker how to do something simple or variable that you don't want to patches for each possibility for. Doing something with a hex editor is not really impressive, just a sign that you are a masochist or can't code/fiddle with even a spreadsheet.

KingMike

  • Forum Moderator
  • Hero Member
  • *****
  • Posts: 7067
  • *sigh* A changed avatar. Big deal.
    • View Profile
Re: How to edit smb1 levels using a HEX editor?
« Reply #2 on: November 21, 2020, 07:15:53 pm »
Why do you not want to use a level editor?

Do you want to seriously make it about a thousand times harder for yourself by reinventing the wheel and using a hex editor?

Well, to start you off, here's some notes.
http://datacrystal.romhacking.net/wiki/Super_Mario_Bros.:Notes
If that hasn't scared you off this silly idea yet, there's a full disassembly of the game. You can find the level offsets somewhere in there I'm sure.

Looking at the Data Crystal article...
Quote
Super Mario Bros. was the first commercially released NES game
One of you contributors needs to stay after class...  >:(
« Last Edit: November 22, 2020, 01:33:20 am by KingMike »
"My watch says 30 chickens" Google, 2018