Notings of Attention™
Acmlmboard 2 Released
Github/GIT | @acmlmboard
Chatting Places
Discord

Affiliates
Super Mario Bros. X | Kuribo64 | NeoRHDN
Views: 11,254,202
Main | FAQ | IRC chat | Memberlist | Active users | Latest posts | Stats | Ranks | Online users | Search
12-27-24 12:19 PM
Guest: Register | Login

Main - Posts by KP

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68

KP
Posted on 08-23-18 03:16 AM, in SMW Hacking Help Link | ID: 139999
Retired Staff
NES Game Aficionado
Level: 73


Posts: 1341/1354
EXP: 3431379
Next: 54489

Since: 01-02-12

Last post: 2216 days
Last view: 1724 days
Honestly, even though there's a smiley there to indicate a few things, I prefer to look at it as something he is angry about and perhaps a language barrier he might be dealing with. SMWC is a good choice, but I think there might be a change coming in the near future to Kafuka that would get us back into ROM hacking again.



KP
Posted on 08-23-18 11:40 PM, in SMB3 Data Mining and Wiki construction (START HERE FIRST!) Link | ID: 140005
Retired Staff
NES Game Aficionado
Level: 73


Posts: 1342/1354
EXP: 3431379
Next: 54489

Since: 01-02-12

Last post: 2216 days
Last view: 1724 days
Here's a couple of images I made that shows how to edit the ending screens and warp zone. (Source: Quick Curly, board2)






KP
Posted on 08-24-18 05:20 PM, in SMW Hacking Help Link | ID: 140013
Retired Staff
NES Game Aficionado
Level: 73


Posts: 1343/1354
EXP: 3431379
Next: 54489

Since: 01-02-12

Last post: 2216 days
Last view: 1724 days
This thread isn't closed because the author hasn't said anything. I'm giving him a chance to see everything and respond before it gets closed.

Also, I'm not in charge of decommissioning board2. Although there are tons of information in threads there, I can't do anything to decommission it.

Sit tight though. Things may get better around here, ROM-hacking-wise.



KP
Posted on 08-24-18 05:52 PM, in SMB3 Data Mining and Wiki construction (START HERE FIRST!) Link | ID: 140015
Retired Staff
NES Game Aficionado
Level: 73


Posts: 1344/1354
EXP: 3431379
Next: 54489

Since: 01-02-12

Last post: 2216 days
Last view: 1724 days
Super Mario Bros. 3 Hacking Notes (By DahrkDaiz)

============================
RAM MAP
============================

Terminology: $ denotes a ram address in hex, 0x denotes a ROM address in the .nes file

Button Press Status Format, a 1 indicates it's pressed, 0 means it's not.

1 2 3 4 5 6 7 8
| | | | | | | |
| | | | | | | - Right
| | | | | | --- Left
| | | | | ----- Down
| | | | ------- Up
| | | --------- Start
| | ----------- Select
| ------------- B
--------------- A


Sound and music explanation:

4F1 through 4F6 are bytes used to initiate sound effects.
Each bite in these RAM bytes plays a different sound
(except for 4F2). A byte is stored in these locations, then the game
will reset them after the sound routines are initiated. So if you're ASM hacking
and would like to play a new sound, do 1 store to the appropriate location and the
game takes care of the rest.

RAM MAP:

$0E = Current level page.

$14 = Setting this byte to 1 ends a level
$15 = This byte is increased once every game cycle and used as a timer.

$17 = Controller status for held buttons.
$18 = Controller status for just pressed buttons.

$5E = PPU Buffer loading offset. This will determine where to read a pointer
in a table to load the PPU buffer from.

$69 & $6A = PPU Buffer pointer.

$75 = Vertical position on the map screen.

$79 = Horizontal position on the map screen.

$BD = Direction and speed of Mario. 00-7F is moving right, 80-FF (FF is slowest) is moving
left.

$CF = Direction and speed of Mario verticlaly. 00-7F is moving down, 80-FF (FF is slowest)
is moving up.

$E4 = The vertical tile offset in the current level page
$E5 = Current Tile Number Mario is on.

$ED = Current Power Up

$160 = Debug mode enable/disable. If it's $80, then debug controls are enabled (select
switches power-ups, B+select toggles Kuribo's shoe on/off, etc).

$300~$350 = PPU Buffer. The buffer works as follows. $300 is the current size of the
buffer. $301 and beyond is data for the PPU in the following format: AA AA SS XX XX XX 00
AA = address of PPU to write to, this is written in big endian format.
SS = Size of the data to write.
XX = The actual data itself
00 = End of the PPU Buffer.

When writing to the buffer, always end it with 00 and update the buffer size.

$3DD = This byte is the Turbo running speed. At FF, Mario can start flying.
This byte is also used to draw the P-Meter. Each bit depicts the tile type. There
are 8 tiles [|>|>|>|>|>|>(p)] the (p) is two tiles. Lets say $3DD were 0000 0101 then the
first and 3rd arrow tiles will light up.

$3EC = Coin addition byte. Any coin grabbing you do causes this to go up by 1.

$462 = This byte keeps track of the current level music for when invincibility or p-switch
music switches back to the level music

$4F1 = Another sound play switch byte.
01 = Deep jump sound
02 = Block bounce
04 = Swim sound
08 = Shell kicked
10 = Down a pipe
20 = Fireball throwing
40 = nothing
80 = high pitched jump sound.

$4F2 = This is the sound play switch byte. If it's 00, no sound effect plays, but
if it's not 00, then a sound effect will play.
01 = Coin sound.
02 = Power-up coming out/vine grow
04 = longer sound of 02
08 = Boom sound (cannon fireing)
10 = 'Tick' sound
20 = Powerup!
40 = 1-up
80 = Poof sound
90 = Odd "poof" sound
A0 = Lost Kuribo Shoe
B0 = Tail Wag
C0 = dragged out 1-up sound

$4F3 = Another sound byte
01 = broken bricks
02 = fire sound
04 = Going through Brush?
08 = Woosh! Sound Airship makes when it moves on map.
10 = Hammer Bros. moving on map.
20 = no sound
40 = no sound
80 = Skidding sound.

$4F4 = Fanfare music player.
01 = Death
02 = Game Over/Continue
04 = Classic Ending
08 = King Rescued
10 = Bowser Defeated
20 = Level Complete
40 = Time's running out!
80 = Play current level song.

$4F5 = This is the music change switch byte. If it's 00, the music doesn't change (current
music continues to play). But if it's not 00, then the music will change.

01 = World 1 Map Screen
02 = World 2 Map Screen
03 = World 3 Map Screen
04 = World 4 Map Screen
05 = World 5 Map Screen
06 = World 6 Map Screen
07 = World 7 Map Screen
08 = World 8 Map Screen
09 = World 9 Map screen/Coin heaven
0A = Star Power
0B = Warp Whistle
0C = Music Box
0D = Returning to Earth with the wand
0E = Game Theme
0F = Princess Saved
10 = Plains
20 = Underground
30 = Water
40 = Dungeon
50 = Boss Battle
60 = Doomship
70 = Hammer Bros. Stage
80 = Mushroom House
90 = Hilly Theme
A0 = P-Switch
B0 = Bowser Fight
C0 = Glitched Boss fight
D0 = Theme Song rotation (ends with music box infinite loop)
E0 = Underground to Song rotation
F0 = Water to Song rotation

$4F6 = Another Sound byte
01 = Sound made when Mario is generated on the start tile of a world map.
02 = Moved on the map
04 = Enter a level
08 = Status bar flip
10 = Secret revealed on the map
20 = nothing
40 = nothing
80 = Error sound

$4F7 = Another sound byte
01 = Pause (stops music)
02 = Resume music
All other values = pause.

$516 = This is the timer for multi-coin blocks. If $581 reaches 0 first, getting more coins
stops.

$552 = Invisibility timer for after you get hit.
$553 = Invincibility Timer

$566 = Enemy generator byte. This will generator a pre-set enemy based on the value.
$567 = P-switch effect timer

$56E = Flight timer for Racoon/Tanooki Mario
$56F = Pressing down indicator
$570 = Timer when holding down on a magical white block to let you go behind the bg.

$575 = Indicates you're in water and what you're doing in water (coming out of, going into,
swimming, just walking, etc). Not sure what values tell what though.

$577 = Kuribo Shoe indicator (0 = no shoe, 1 = shoe)
$578 = This is the transformation byte. When Mario gets a power-up or is injured, this
byte contains the power-up he will go to + 1. Thus, if he's going to be small, this
byte is 0x01. A value of 00 means there's no change. A value of 0x80 will give you the shoe.\

$57A = Tanooki's Statue Timer.

$581 = This is the max number of coins you can get in a multi-coin blocks. If $516 reaches 0
first, getting more coins stops.

$588 = Behind the background timer
$589 = Traction byte: 0 = no slip, 1 = slip, 2 = extra slip

$5EE = Hundreds place of timer
$5EF = Tens place of timer
$5F0 = Ones place of timer

$602 = Current tile to the left and above Mario
$603 = Current tile to the left and under Mario
$604 = Current tile to the right and under Mario
$605 = Current somewhere under Mario
$606 = Current tile to the right and above Mario

$676 = Power up sprite number. This byte is seperate from the other sprite buffer. When
another power-up appears, this byte is over written, thus the first power up disappears.

$69C & $69D = Score addition bytes. When these bytes are set, then that amount of the score
will be added to your main score. $69C = high byte, $69D = low byte

$70A = Current Object Set/Level Type

$711 = Timer used during World/Lives status screen before Mario generates onto
the map.

$713 = This is level beaten byte. 1 means that the level is being beaten. It's changed
to 0 when you die, so when you return to the map screen, the level you were on doesn't flip over.

$715-$717 = Score (24-bit value)

$719 = First 2K Bank of GFX (upper left of pattern table, $0000-$07FF)
$71A = Second 2K Bank of GFX (lower left of pattern table, $0800-$0FFF)
$71B = First 1K bank of GFX (upper right of pattern table, $1000-$13FF)
$71C = Second 1K bank of GFX (second from upper right of pattern table, $1400-$17FF)
$71D = Third 1K bank of GFX (second from lower right of pattern table, $1800-$1BFF)
$71E = Fourth 1K bank of GFX (lower right of pattern table, $1C00-$1FFF)
$71F = Current bank @ 0xA000
$720 = Current bank @ 0xC000

$726 = Current player (0 = player 1, 1 = player 2)
$727 = Current World

$736 = Player 1's Lives Counter
$737 = Player 2's Lives Counter

$73A = This is where the palette for the current level is stored. The palette is loaded
before the level is drawn, so changing this byte doesn't have any effect after the level
loads.

$7C1-$7E0 = This is where the palette current stored. Changing this won't have much effect on the
palette. To force a change, set $5E to 0x06

$6000-$794f = This is where the 16x16 block numbers are kept that corresponds directly to
the level. An example is that 0x40 is the value for a coin. This also applies to the map screen.

$7965 = White Mushroom House indicator, if it's 1, your coins are checked to see if they meet
the requirements
$7966 = Number of coins needed to make a white mushroom house appear
$7967 = Number of coins obtained in the current level

$7A0A and $7A0C = used in combination to determine the current scrolling point in an
autoscroll level.

$7CF4 = Frozen Mario byte. 01 = Mario can't move. 00 = Mario can move.

$7CFB = Flash timer, this will make the bg flash through rainbow colors. If it's above 80, then
the 9th palette instead.

$7B41 - $7C40 (?) = Sprite data buffer. All sprites found in a level are stored here for
easy reference.

$7D80-$7D9B = Player 1's item inventory
$7D9C-$7D9E = Goal cards for player 1. 00 = no card, 01 = mushroom, 02 = flower, 03 = star

$7DA2 = Player 1's Coin counter
$7DA3-7DBE = 2nd Player's Inventory box
$7DBF-$7DC1 = Goal cards for player 2. 00 = no card, 01 = mushroom, 02 = flower, 03 = star

$7DE0 - $7DFF = Current Palette.

$7EB6 = Stop scrolling byte (stops scrolling altogether).

$7F3E-$7F43 = Arrow tile numbers.
$7F44 and $7F45 = ( P ) Bar tile numbers.
$7F46 and $7F47 = Coin tiles (not the coins counter, but the tiles used to display it)
$7F48 and $7F49 = Lives counter tiles (not the lives counter, but the tiles used to display it)
$7F4A-$7F4F = Score tiles (note, not the score itself, just the tiles displayed for it)
$7F50-$F52 = Timer tiles (same for score tiles)

$7F9A = Seems to be the start of some buffer. Setting this to anything but 2 will prevent bricks
from animating when broken.

Lock Data:

I kept this seperate since everyone is so eager to get their hands on the data, thus
I kept this a seperate section for quicker reference.

0x14877 = Start of a table of tiles used to replace lock blocks.
0x1498E = Start of a table of locations used to determine where the lock block will
be (or any tile to replace).
Format: XXXX SSSS
X = X co-ordinate of the tile (relative to the current screen)
S = Screen to change it on.

0x14955 = Start of table of locations used to determine where the lock block will
be (or any tile to replace).
Format: YYYY 0000
Y = Y co-ordinate
0 = Nothing.

==============
ROM MAP
==============

Some routines/data tables used the global item table, which is a table that indicates
an item number directly into your inventory.

00 = Nothing
01 = Mushroom
02 = Fire Flower
03 = Leaf
04 = Frog Suit
05 = Tanooki Suit
06 = Hammer Bros. Suit
07 = Jugem's Cloud
08 = P-Wing
09 = Starman
0A = Anchor
0B = Hammer
0C = Whistle
0D = Music Box

This is used for things like Mushroom House item values or Princess gift item values.

0x3F0-0x3F6 = This is a properties table for power-ups. The bits do the following:
xxxx xxSF

S = Sliding disabled. If this is 1, you can't slide on hills.
F = Flying ability. If this is 1, you can fly.

Each index into the table corresponds to a power-up status. Thus, if you change 0x3F2
to 03 (0000 0011), then Fire Mario (index here is 2, 2 is fire power) will be able to fly
and not be able to slide on hills.

The x's have no effect.

0x133C = Amount of stay-in-shell time for most enemies who have shells.

0x1A3E = What Mario turns into after getting hit while having a power above Super Mario.

0x24EE = Table of sprites to output from certain ? blocks.
0x24EF = Sprite to put out of blocks that normally output a Flower
0x24F0 = Sprite to put out of blocks that normally output a Leaf
0x24F1 = Sprite to put out of blocks that normally output a Star
0x24F2 = Sprite to put out of blocks that normally output a Mushroom
0x24F3 = Sprite to put out of blocks that normally output a Vine
0x24F4 = Sprite to put out of blocks that normally output a 1-Up

0x2A56 = The bounce force to the right when hitting a 4 way bouncing
note block from the left.

0x2A50 = The bounce force to the left when hitting a 4 way bouncing
noteblock from the right.

0x6EA9 = Sprite that Boom-boom will leave behind when he explodes.

0x80A4 = This is the sprite that a Green Koopa Para-Troopa will turn into when they
lose their wings.

0x80AE = This is the sprite that a Para-Goomba will turn into when it's wings are
destroyed.

0x9368 = Left speed of many enemies
0x9369 = Right speed of many enemies

0xA837 = Amount of time a Venus Fire Trap will take from going into a pipe
and going back into it divided by 2. (default is 30, but it's multiplied by 2
for a total time of 60).

0xBDC3 = ParaBeetle right flying speed (x2 for "fast" beetles)

0xBDCD = ParaBeetle left flying speed (x2 for "fast" beetles)

0xFD75 = Sprite number that's generated from a Goomba generator.

0x103F1 = Amount of time Tanooki Mario can be a statue.

0x104F8 = Maximum running speed (must be atleast 7F to be able to fly).

0x10CAA = Amount of time Raccoon/Tannoki Mario can fly

0x11618 = Which tile acts like a coin.

0x11634 = Which tile acts like a P-switch.

0x11653 = Amount of time the P-switch will last. (default: 0x80)

0x11657 = The song value to be played during the P-Switch effect. (default: 0xA0)

0x1167E = Amount of time needed for an ice block to melt.

0x118A5 = Max number of coins you can get from the multi block coin.

0x118BA = Amount of time you have to get coins from a multi block coin.

0x11E6A = Amount of time required to hold down on magic white blocks to take effect.

0x11E6F = Amount of time the Magic white blocks take effect for.

0x1451F = Amount of time delay between the start of a world and when
Mario generates onto the screen.

0x14DF8 = Sound used when Mario moves over the map screen. (4F1 sound byte useD)

0x14DFA = Sound byte used when Mario goes over a map screen.

0x16190 = Hammer Bros. Item table. Here there is a big chunk of 00s and a few bytes that
are not 00. The groups of bytes that are _not_ 00 represent the items you receive from a
Hammer Bros. Examples are the first byte, 09, is world 1's Hammer Bros. item (a star).
Next is 0D0B0C which is world 2's (music box, hammer, whistle) and so on. The item values
are the exact same for the item values listed above. Note, world 8 has NO Hammer Bros. item
groups. Instead, the items in the treasure chests found there are defined by enemy level
data. When using the Help Sprite as a Hammer Bros. the item control is 2 bytes before the
normal Hammer Bros. group for that world. The Airship sprite uses the one after that

0x1625B = Horizontal starting position on every map screen (applies to all maps).

0x17C35 = Table of graphics banks used to animate map screen tiles.

0x1D233-0x1D235 = 16x16 tile id's that are used to draw the mushroom, star and flower
background in some plains levels.

0x2D1AD-0x2D1b0 = Number of 1-Ups you will receive from the roulette game. There are two
bytes that are 02, this is because there are two mushroom pictures in the roulette you can
match up.

0x2D721-0x2D732 = N-Spade card matching game initial deck. The deck is always shuffled
from code, so there's only 1 deck you can modify without ASM hacking. The values for each
card is as follows:
00 = Mushroom
01 = Flower
02 = Star
03 = 1-Up
04 = 10 Coins
05 = 20 Coins

0x309B0 = This is the left side of the curtains tile. This must be an even number, then
the tile to the right of this one will be the right side of the curtain. You cannot change
the number of tiles used to draw the curtains without ASM hacking.

0x309D5 = Debug mode activation/deactivation
Activated = 0xCC
Deactivated = 0x35

0x30C68 = Button to press to change game type.

0x30C6C = Sound to play when you press select at title screen. (4F6 sound byte)

0x30C6E = Sound byte to write to when you press select.

0x30C99 = Button to Press to start the game.

0x30C9D = The Sound to play when you start the game. (4F2 Sound byte)

0x30C9F = The sound byte to write to when you start the game (can change to music bytes too).

0x34123 = Status Bar's palette on the map screen after returning from the inventory box.

0x3509B = Number of coins needed for a 1-Up.

0x350AB = Sound played when you receive 100 coins (1up sound) (4F2 sound byte used)

0x350AD = Sound byte used when 100 coins are obtained.

0x360DE = Table of items the Princess will give you after completing a world. There are
7 bytes in all, but the 7th byte is 00, you can change this so that you gain an item for
beating world 7. For values, see Global item table.

0x3B14B = Table of items used to create Mushroom House treasure chests.
Some bytes affect the "all same items" mushroom houses. Meaning, if all the chest have
the same items, then only 1 byte is needed to define the chests, rather than 3. The first
5 bytes affect these type of mushroom houses. The 3rd is for all Frogs, 4th is all
Tanooki, 5th is all Hammer. 1st is All Whistles (never seen in the game), 2nd is all
P-Wings (also never seen in the game).I believe these two are used for White Mushroom
houses. The rest are 3 item houses. One type is 0A 0A 0A, all three anchors. This is the
ONLY exception to the same-type house rule. And remember, the definitions come in groups
of three. Example: The second set (bytes 9, 10, and 11) is 01, 02, 03, a set of three
defining the Mushroom, Flower, and Leaf type houses. For item values, see global item table.

0x3C474 = Graphics bank used for the title screen (upper half, bg side)

0x3C479 = Graphics bank used for the title screen (lower half, bg side)

0x3C47E = Graphics bank used for the title screen (first 1/4th, sprite side)

0x3C483 = Graphics bank used for the title screen (second 1/4th, sprite side)

0x3C488 = Graphics bank used for the title screen (third 1/4th, sprite side)

0x3C47D = Graphics bank used for the title screen (fourthg 1/4th, sprite side)

Routine Explanations:

BG tile animation routine: Used for action stages (not maps) for animating common objects, such as
bricks, coins, munchers, water, lava, etc.
$8E35 (0x3C345)

$8E35:AC 1A 07 LDY $071A ; This loads the current bank from lower left corner of the pattern table
$8E38:C0 6A CPY #$6A ; 6A is the bank for the Airship, which doesn't have animated bg tiles
$8E3A:F0 21 BEQ $8E5D ; thus skip the animating routine
$8E3C:A5 15 LDA $15 ; This loads the constant timer
$8E3E:29 03 AND #$03 ; used for battleship animated tiles
$8E40:D0 1B BNE $8E5D ; but skips it on xxxx xx00 since there's only 3 frames of animation
$8E42:C8 INY
$8E43:C8 INY
$8E44:C0 76 CPY #$76 ; 74 is the last bank for the battle ship animated tile sequence (70, 72, 74)
$8E46:D0 02 BNE $8E4A ; a table isn't used here, thus, Y (from 71A) is increased twice
$8E48:A0 70 LDY #$70 ; if it reaches 76, loop back to the first animation sequence (70)
$8E4A:8C 1A 07 STY $071A ; and store it into the gfx bank
$8E4D:D0 0E BNE $8E5D
$8E4F:A5 15 LDA $15 ; this loads the constant timer and indexes it for the global
$8E51:29 18 AND #$18 ; animated tiles (coins, ? blocks, munchers, etc)
$8E53:4A LSR
$8E54:4A LSR
$8E55:4A LSR
$8E56:AA TAX
$8E57:BD FC 83 LDA $83FC,X ; Loads a bank from the animation sequence (60, 62, 64, 66)
$8E5A:8D 1A 07 STA $071A ; and finally stores it into the ram for the lower left gfx bank


Bank swapping routine
$FC6F (0x3FC7F)
$FC6F:A9 46 LDA #$46
$FC71:8D 00 80 STA $8000 = #$00 ; Set up the $8000 register for $A000 swapping
$FC74:AD 1F 07 LDA $071F = #$00
$FC77:8D 01 80 STA $8001 = #$60 ; swap $A000 bank with value in 71F
$FC7A:A9 47 LDA #$47
$FC7C:8D 00 80 STA $8000 = #$00 ; Set up the $8000 register for $C000 swapping
$FC7F:AD 20 07 LDA $0720 = #$1A
$FC82:8D 01 80 STA $8001 = #$60 ; swap $A000 bank with value in 720
$FC85:60 RTS


Curtain drawing routine:

$A990 (0x309A)
$A990:AD 02 20 LDA $2002 = #$09 ; Set up the PPU for drawing
$A993:A9 20 LDA #$20
$A995:8D 06 20 STA $2006 = #$40
$A998:A9 00 LDA #$00
$A99A:8D 06 20 STA $2006 = #$40
$A99D:A2 02 LDX #$02 ; The routine goes through 512 times *
$A99F:A9 08 LDA #$08 ; This is the first tile (left side) used to draw the curtain
$A9A1:A0 FF LDY #$FF ; * which is 256 from Y and twice from X
$A9A3:8D 07 20 STA $2007 = #$00
$A9A6:49 01 EOR #$01 ; This toggles from 08 and 09 (0000 1000 and 0000 1001)
$A9A8:88 DEY ; Thus using this routine, you can only use 2 tiles, side by side
$A9A9:D0 F8 BNE $A9A3
$A9AB:8D 07 20 STA $2007 = #$00
$A9AE:49 01 EOR #$01
$A9B0:CA DEX
$A9B1:10 EE BPL $A9A1
$A9B3:60 RTS




KP
Posted on 08-24-18 05:55 PM, in SMB3 Data Mining and Wiki construction (START HERE FIRST!) Link | ID: 140016
Retired Staff
NES Game Aficionado
Level: 73


Posts: 1345/1354
EXP: 3431379
Next: 54489

Since: 01-02-12

Last post: 2216 days
Last view: 1724 days
NES Super Mario Bros. 3 Level format (by DahrkDaiz)
------------------------------------
CORRECTNESS NOT GUARANTEED.

Header (9 bytes):

11 22 33 44 55 66 77 88 99
AB AB AB AB AB AB AB AB AB

1x = level pointer
2x = level pointer
3x = enemy pointer
4x = enemy pointer
5A = level start Y (first 3 bits)
5B = level length
6A = level start X (first 3 bits)
6x = enemy color palette # (bits 4, 5)
6B = level color palette #
7A = level scrolling type
7B = level object set
8A = level start action (first 3 bits)
8x = level graphic set (last 5 bits)
9A = time (first 2 bits)
9B = music


Level objects (3/4 bytes each):

Y position (3 leftmost bits = object bank ["domain"])
X position
Type
Length (only if 4 byte object)


Enemy objects (3 bytes each):
Type
X
Y


Level data:
Header followed by all level objects followed by byte $FF
Enemy objects (NOT after level objects) followed by byte $FF

Objects rendered in the order they appear in the level data.

Palettes (size for one obj.set = $C0):
Object set 1 at $36CA2,
Object set 2 at $36D62 ...



KP
Posted on 08-24-18 05:55 PM, in SMB3 Data Mining and Wiki construction (START HERE FIRST!) Link | ID: 140017
Retired Staff
NES Game Aficionado
Level: 73


Posts: 1346/1354
EXP: 3431379
Next: 54489

Since: 01-02-12

Last post: 2216 days
Last view: 1724 days
Below are IDs of items you can receive from treasure
chests and Princess Peach upon completing a level.

Table of items Princess Peach gives starts at ROM
location $360DE, and there is no entry for level 8.

The vertical location of sprite 214 ("Puts item in
treasure chest") in the editor determines which item
to put in the treasure chest, corresponding to the
values below.

0 = Nothing
1 = Mushroom
2 = Fire Flower
3 = Leaf
4 = Frog Suit
5 = Tanuki Suit
6 = Hammer Bros. Suit
7 = Jugem's Cloud
8 = P-Wing
9 = Starman
10 ($A) = Anchor
11 ($B) = Hammer
12 ($C) = Whistle
13 ($D) = Music Box



KP
Posted on 08-24-18 05:56 PM, in SMB3 Data Mining and Wiki construction (START HERE FIRST!) Link | ID: 140018
Retired Staff
NES Game Aficionado
Level: 73


Posts: 1347/1354
EXP: 3431379
Next: 54489

Since: 01-02-12

Last post: 2216 days
Last view: 1724 days
Special notes on SMB3 object drawing routines
---------------------------------------------
Data collected by DahrkDaiz, some additional notes by hukka


Block platforms that extend to ground:
The code looks for the two tile id's defined at $1D0D7 and $1D0DB.
The drawing stops upon encountering either of these tiles below
the block platform. If neither of these tiles is encountered, the
game will crash(?).

Green platforms:
This object looks for any tile id that differs from the value
defined at offset $22638 and stops drawing. If the drawing routine
reaches the bottom, it overlaps to the next page at the top row.
At least on Sky type levels, this will effectively stop the drawing
because the top row on these levels is filled with tile id $86.

Wooden poles:
These work like the Green platforms explained above, but the tile
id is defined at offset $22789.


Block platform shadows
----------------------
Shadow tiles cannot be forced by level data; the game will dynamically
draw shadows on certain objects, depending on the tile being drawn
over, but the data can still be edited.

There are 2 tables, one at $1D06B and the other at $1D084. The game will
start at the first table, and take the current tile it's about to overwrite
and match it to a value in the table. Then it will take the position it
found the matching tile in table #1 and overwrite the tile with the value
using the position of table #1 in table #2. Example below:

$1D06B: Table #1
07 09 0A 0D 47 49 4A 4D 87 89 8A 8D C7 C9 CA CD 90 94 91 95 92 96 93 97 98
**
$1D074: Table #2
0C 0C 0F 0F 4C 4C 4F 4F 8C 8C 8F 8F CC CC CF CF 99 9E 9A 9F 9B 9E 9C 9E 9E
**

-------------------------
80 80 80 80 80 01 80 80
-------------------------
80 80 4F 80 80 80 80 91 <- Lets say the game is about to overwrite this tile.
------------------------- It loads the value 91 and matches it in table #1.
80 80 80 9B 80 80 80 80 You can see that in table #2, below #1, is 9A, thus
------------------------- the game will overwrite this value with 9A.
80 80 80 80 80 80 80 80
-------------------------

The only objects that will force shadow tiles are the white, orange, green
and blue block platforms.
Shadows against the sky do have data that can be edited normally, listed below.

$1D17C = Right side shadow against sky

Corner shadows against other objects has an odd "table", but the data isn't
consecutively lined up.

Overwrite tile Replace tile
---------------------------------------------
$1D146 $1D13A
* Range: $1D14F to $1D153 $1D157

* The two values at $1D14F and $1D153 denote a range of tiles to look for.
The value at $1D14F is $90 and the value at $1D153 is $9F, thus if the
tile you're overwriting is between $90 and $9F, it will be replaced.
So effectively, $1D153 should be greater than $1D14F.

Shadows over platform blocks are sort of "hard coded" and cannot be edited
without using assembly hacking. Read DD's Object_Def.txt for more info.



KP
Posted on 08-24-18 05:58 PM, in SMB3 Data Mining and Wiki construction (START HERE FIRST!) Link | ID: 140019
Retired Staff
NES Game Aficionado
Level: 73


Posts: 1348/1354
EXP: 3431379
Next: 54489

Since: 01-02-12

Last post: 2216 days
Last view: 1724 days
Data collected by DahrkDaiz


0x1E41B = Tile used to clear Plains type levels.

0x2041B = Tile used to clear out the very top row of tiles on Hilly type levels.
0x20427 = Tile used to clear out Hilly type levels.

0x22420 = Tile used to clear out the very top row of tiles of Sky/Ice type levels.
0x22429 = Tile used to clear the rest of the level of a Sky/Ice type level.

0x1A41B = Tile used to clear out the very top row of tiles on Underground type levels.
0x1A427 = tile used to clear out the rest of the level of Underground type levels.

0x2642C = Tile used to clear Cloudy type levels.

0x2A420 = Tile used to clear out the top row of tiles in Dungeon type levels.
0x2A429 = Tile used to clear out the mid-way row (vertically) of tiles in Dungeon type levels.
0x2A42E = Tile used to clear out the 2nd row of tiles in Dungeon type levels.
0x2A437 = Tile used to clear out the rest of the tiles except for the bottom 2 rows in
Dungeon type levels.
0x2A443 = Tile used to clear out the next to last row of tiles in Dungeon type levels,
except these tiles alternate, starting with the 1st tile.
0x2A449 = Tile used to clear out the next to last row of tiles in Dungone type levels,
except these tiles alternate, starting with the 2nd tile.
0x2A453 = Tiles used to clear out the very bottom row of tiles in Dungeon type levels,
except these tiles alternate, starting with the 1st tile.
0x2A459 = Tiles used to clear out the very bottom row of tiles in Dungeon type levels,
except these tiles alternate, starting with the 2nd tile.

0x2841B = Tile used to clear out the level of Desert type levels.
0x28427 = Tile used to clear out the very bottom row of tiles in Desert type levels.

0x2E41B = Tile used to clear out Ship/Airship level types.

0x2441B = Tile used to clear out Water type levels.

0x2641B = Tile used to clear out Giant type levels.



KP
Posted on 08-24-18 06:02 PM, in SMB3 Data Mining and Wiki construction (START HERE FIRST!) Link | ID: 140020
Retired Staff
NES Game Aficionado
Level: 73


Posts: 1349/1354
EXP: 3431379
Next: 54489

Since: 01-02-12

Last post: 2216 days
Last view: 1724 days
TSA Locations (DahrkDaiz)

Map Screen
$18010 - $1840F

Underground
$1A010 - $1A40F

Plains
$1E010 - $1E40F

Hilly
$20010 - $2040F

Sky/Ice
$22010 - $2240F

Water/Pipe
$24010 - $2440F

Giant/Cloudy
$26010 - $2640F

Desert
$28010 - $2840F

Dungeon
$2A010 - $2A40F

Ship
$2E010 - $2E40F



KP
Posted on 08-26-18 08:46 PM, in SMB3 Data Mining and Wiki construction (START HERE FIRST!) Link | ID: 140098
Retired Staff
NES Game Aficionado
Level: 73


Posts: 1350/1354
EXP: 3431379
Next: 54489

Since: 01-02-12

Last post: 2216 days
Last view: 1724 days
What don't you like about it? I'm not partial to any wiki service. If there are better alternatives, I'll definitely hear them out.



KP
Posted on 08-26-18 09:52 PM, in Jacksonville Shooting Link | ID: 140100
Retired Staff
NES Game Aficionado
Level: 73


Posts: 1351/1354
EXP: 3431379
Next: 54489

Since: 01-02-12

Last post: 2216 days
Last view: 1724 days
You know, if Big Pharma wasn't so centered around profiting on sick people (as opposed to curing them) then there would be major advances on understanding why people are distraught enough to go shooting places up. I know it's not as straight forward black-and-white as that, but all the investigations that have been done following a shooting have questioned the mental state of the individual(s) involved in the attack. Big Pharma doesn't want to cure people. That'd put them out of a job. But what if they did? How much more research into understanding mental issues could be done? How many lives could that save?

And then there's guns. Sure, there will always be someone pointing the finger at guns, some justifiably so. Some would cite the Constitution and others would denounce it, and then there's the few who would even go as far as to say that the shooting was made possible by the creation of the video game at the center of that event. Guns? They're tools of defense, recreation, hunting, war, terrorism, and death. Whatever the use, I agree there should be regulation but I also agree that law-abiding Americans should have access to them.



KP
Posted on 08-27-18 03:31 PM, in SMB3 Data Mining and Wiki construction (START HERE FIRST!) Link | ID: 140132
Retired Staff
NES Game Aficionado
Level: 73


Posts: 1352/1354
EXP: 3431379
Next: 54489

Since: 01-02-12

Last post: 2216 days
Last view: 1724 days
We are talking about it as staff. Thanks for the input!



KP
Posted on 08-27-18 04:09 PM, in New SMB3 hack "THM", name to revealed at some point. Link | ID: 140133
Retired Staff
NES Game Aficionado
Level: 73


Posts: 1353/1354
EXP: 3431379
Next: 54489

Since: 01-02-12

Last post: 2216 days
Last view: 1724 days
This is a hack I wanted to make for a long time. I've kept the name hidden for now, but I'll refer to it by its acronym, THM.

Here's an old video of THM's Ancestor, Obscure Kingdom, showing off its proof-of-concept level:



This code is now implemented across 8 worlds, and is working as intended.


Each world's coins have a certain power to them. Coins will add, in order:
1) star power
2) flight time
3) p-switch time
4) shell and ice block hold time
5) jump height
6) a mixture of p-switch time and hold time (Shares spiral graphic)
7) a mixture of star power and flight time (Shares spiral graphic)
8) death

THM has a few ASM hacks implemented. These include (so far) Various coin effects per-world (seen above), code to handle unique global graphics per-world (coins and blocks are part of global graphics), code to handle unique graphics for each world map (featured in Communist Mario 3). I have planned some more ASM changes, graphics related. Currently, the ship graphics share pages with the map graphics page, and only has three frames. I intend to separate those graphics out into their own pages and have the ship graphics use four frames instead of the vanilla 3.

Other changes so far include much faster overall game flow.


This group of changes speeds up n-spade games (seen above), message text, mushroom houses, after-stage waiting, faster 1-up sounds, boomboom explosions, and other behind the scenes stuff.

A few levels are done, but I struggle so hard with data management of levels and enemies. No title screen as of yet. I'll post more when I have more to show!



KP
Posted on 12-02-18 08:19 PM, in Happy Birthday KP. Link | ID: 144744
Retired Staff
NES Game Aficionado
Level: 73


Posts: 1354/1354
EXP: 3431379
Next: 54489

Since: 01-02-12

Last post: 2216 days
Last view: 1724 days
Thanks for even remembering me, since I mostly lurk these days. I appreciate it!
I bought two dozen Krispy Kreme donuts and ate most of them before bed last night. Got me some cheap Old Navy jeans too. My wife is pretty swell!


Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68


Main - Posts by KP


Acmlmboard v2.5.6 (06/11/2024)
© 2005-2024 Acmlm, Emuz, et al.

Page rendered in 0.180 seconds. (1128KB of memory used)
MySQL - queries: 133, rows: 632/662, time: 0.158 seconds.