Register - Login
Views: 99792808
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 04:52:56 AM
Jul - General Game/ROM Hacking - NES mappers - what have I done wrong? New poll - New thread - New reply
Next newer thread | Next older thread
Ninji

Birdo
Why did my user title say I'm a toaster anyway
Level: 88


Posts: 114/2014
EXP: 6638518
For next: 12146

Since: 07-26-07

Pronouns: he/him or they/them
From: Glasgow, Scotland

Since last post: 113 days
Last activity: 6 days

Posted on 12-02-07 10:24:09 PM Link | Quote
At the time of writing this post, I had..
Posts: 114 ~ Level: 15 ~ Exp: 13847

I decided I wanted to try to learn to ASM hack NES games, so I downloaded the SMB1 disassembly off romhacking.net and got it working with the compiler it suggested (x816).
I don't have any previous ASM hacking knowledge (other than a very basic understanding of assembly, registers, etc) so I just tried to study it a lot and change things.
So far, I managed to remove the 2 player game selection (first edit I did), add different tiles for the top and middle ground (something I have always wanted in SMB) and add animation using CNROM. However- the ROM does not start in FCEU. FCEU XD and Nestopia run it fine. Does anyone know why?
Here is the IPS patch for my ROM, if it helps:
http://www.sendspace.com/file/oveiqx

____________________


NSMB Editor 2.2
making awesome SMB remakes since 16/7/07
what? you want a new version already? are you joking?
The "Official" NSMB Hacking Links Page
Nitro Explorer: universal NDS ROM file extracter/inserter


Joe
Common spammer
🍬
Level: 111


Posts: 192/3392
EXP: 14501038
For next: 367322

Since: 08-02-07

From: Pororoca

Since last post: 12 days
Last activity: 6 hours

Posted on 12-03-07 12:04:36 AM Link | Quote
Well, for one, that IPS contains about half of the ROM, since you recompiled the ROM instead of replacing the parts you changed. If you post your changes, I might be able to make a smaller IPS.

Also, SMB doesn't have a mapper.

____________________
それから、:rofl:はありません。
And then, the :rofl: wasn't.


I have a server dedicated to providing me with cheap hosting. There's a few things there now, but it's still not much to look at.
Ninji

Birdo
Why did my user title say I'm a toaster anyway
Level: 88


Posts: 115/2014
EXP: 6638518
For next: 12146

Since: 07-26-07

Pronouns: he/him or they/them
From: Glasgow, Scotland

Since last post: 113 days
Last activity: 6 days

Posted on 12-03-07 09:50:05 AM Link | Quote
At the time of writing this post, I had..
Posts: 115 ~ Level: 15 ~ Exp: 14056

SMB does have a mapper after I added one, for animation.

Anyway, I fixed my problem - FCEU didn't like me not setting the VRAM bank to 0 at the start of the game.
Adding this code among the rest of SMB's initialisation code fixed it:
lda #$00
sta $8000

____________________


NSMB Editor 2.2
making awesome SMB remakes since 16/7/07
what? you want a new version already? are you joking?
The "Official" NSMB Hacking Links Page
Nitro Explorer: universal NDS ROM file extracter/inserter


Sails
2800
as a video game‎‎‎‏‏‎ grows old its content and‏‏‎ internal logic‏‏‎ deteriorateÿ
Level: 102


Posts: 696/2803
EXP: 10922260
For next: 167707

Since: 07-04-07

Pronouns: He/Him
From: MA

Since last post: 120 days
Last activity: 28 days

Posted on 12-03-07 10:00:07 PM Link | Quote
You should post screenshots of what you have accomplished. I wish I knew 6502 I tried learning it once, but it didn't go very far once the person teaching me dissapeared.

____________________








Ninji

Birdo
Why did my user title say I'm a toaster anyway
Level: 88


Posts: 116/2014
EXP: 6638518
For next: 12146

Since: 07-26-07

Pronouns: he/him or they/them
From: Glasgow, Scotland

Since last post: 113 days
Last activity: 6 days

Posted on 12-03-07 10:53:24 PM Link | Quote
At the time of writing this post, I had..
Posts: 116 ~ Level: 15 ~ Exp: 14269

So I'm having more problems..
See this screenshot:

Basically describes it. I'm changing around the statusbar. However, one piece makes the game crash when I change its position. What could be causing this?
Any help would be appreciated!

____________________


NSMB Editor 2.2
making awesome SMB remakes since 16/7/07
what? you want a new version already? are you joking?
The "Official" NSMB Hacking Links Page
Nitro Explorer: universal NDS ROM file extracter/inserter


Darkdata
Ruins!? ♥
Level: 103


Posts: 329/2892
EXP: 11445958
For next: 25448

Since: 07-04-07


Since last post: 202 days
Last activity: 10 days

Posted on 12-03-07 10:57:03 PM Link | Quote
DPP - [internet://board/post329.bit] - 12-03-07 10:57:03pm
File Edit View Settings ?
That stupid coin image behind the real coin is tricky. It can really mess up the game if moved or changed. I think RH.net has something about it in their fourms somewhere...

____________________
Drag
2640
Level: 99


Posts: 454/2641
EXP: 9990042
For next: 9958

Since: 07-03-07


Since last post: 4.2 years
Last activity: 3.4 years

Posted on 12-03-07 11:00:07 PM Link | Quote
Drag's Post #454
The problem is due to the way SMB splits the screen.

It uses what's called "sprite 0 detection". Basically, there is a flag that will be set when any non-transparent pixels of sprite 0 overlap any non-bgcolor pixels of the background.

SMB will wait in a loop, reading this flag over and over, until the screen gets rendered to the point where it finds that sprite 0 is overlapping some part of the background. When that happens, the game updates the scrolling position, so the lower non-statusbar portion of the screen scrolls, while the top remains fixed.

In the right picture, notice the "garbage" tile that's underneath the coin in the status bar, and notice how on the left picture, the coin overlaps it. That garbage tile is actually sprite 0 (sprite 0 being the very first sprite in the sprite ram). So to fix your problem, you need to update the position of sprite 0 so that it overlaps the status bar.

____________________
Ninji

Birdo
Why did my user title say I'm a toaster anyway
Level: 88


Posts: 117/2014
EXP: 6638518
For next: 12146

Since: 07-26-07

Pronouns: he/him or they/them
From: Glasgow, Scotland

Since last post: 113 days
Last activity: 6 days

Posted on 12-03-07 11:16:14 PM Link | Quote
At the time of writing this post, I had..
Posts: 117 ~ Level: 15 ~ Exp: 14455

Originally posted by Drag
The problem is due to the way SMB splits the screen.

It uses what's called "sprite 0 detection". Basically, there is a flag that will be set when any non-transparent pixels of sprite 0 overlap any non-bgcolor pixels of the background.

SMB will wait in a loop, reading this flag over and over, until the screen gets rendered to the point where it finds that sprite 0 is overlapping some part of the background. When that happens, the game updates the scrolling position, so the lower non-statusbar portion of the screen scrolls, while the top remains fixed.

In the right picture, notice the "garbage" tile that's underneath the coin in the status bar, and notice how on the left picture, the coin overlaps it. That garbage tile is actually sprite 0 (sprite 0 being the very first sprite in the sprite ram). So to fix your problem, you need to update the position of sprite 0 so that it overlaps the status bar.

So that is what it was looping for in FCEUXD's debugger..Anyway, I've managed to fix all this now. Thanks!

____________________


NSMB Editor 2.2
making awesome SMB remakes since 16/7/07
what? you want a new version already? are you joking?
The "Official" NSMB Hacking Links Page
Nitro Explorer: universal NDS ROM file extracter/inserter


Next newer thread | Next older thread
Jul - General Game/ROM Hacking - NES mappers - what have I done wrong? New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

29 database queries, 3 query cache hits.
Query execution time: 0.089165 seconds
Script execution time: 0.021990 seconds
Total render time: 0.111155 seconds