Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Super Mario World hacking: labmaster | 3 guests
Acmlm's Board - I2 Archive - Super Mario World hacking - LevelASM v1.0 - the hacking marathon continues! | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
BMF98567
BLACK HAS BUILT A SILLY DICE-MAZE!
GO!

Current list of BURNING FURY >8( recipients:
- Yiffy Kitten (x2)
- Xkeeper
Level: 53

Posts: 1145/1261
EXP: 1094149
For next: 62970

Since: 03-15-04
From: Blobaria
Special Move: Rising Meatloaf Backhand Combo

Since last post: 21 hours
Last activity: 1 hour
Posted on 09-20-05 01:47 PM Link | Quote
Using top-secret technology previously revealed in my "Name That Level!" thread, I have come up with a level-number-based successor to palette-based ASM: LevelASM!

Just call it "PALASM - The Next Generation."

RELEVANT LINKAGE

Complete instructions are in the README. Enjoy!
The Kins

Kodondo
Level: 38

Posts: 569/595
EXP: 354733
For next: 15714

Since: 03-15-04
From: Melbourne, VIC, Australia

Since last post: 2 days
Last activity: 9 hours
Posted on 09-20-05 01:51 PM Link | Quote
Sounds like chocolate.

Can't wait to see what the ASM people come up with using this.
Smallhacker

Green Birdo

SMW Hacking Moderator
Level: 68

Posts: 2104/2273
EXP: 2647223
For next: 81577

Since: 03-15-04
From: Söderhamn, Sweden

Since last post: 10 hours
Last activity: 9 hours
Posted on 09-20-05 02:20 PM Link | Quote
Level ASM? Executes code depending on level number instead of palettes? Damn! I was planning on doing that!
BMF98567
BLACK HAS BUILT A SILLY DICE-MAZE!
GO!

Current list of BURNING FURY >8( recipients:
- Yiffy Kitten (x2)
- Xkeeper
Level: 53

Posts: 1147/1261
EXP: 1094149
For next: 62970

Since: 03-15-04
From: Blobaria
Special Move: Rising Meatloaf Backhand Combo

Since last post: 21 hours
Last activity: 1 hour
Posted on 09-20-05 02:30 PM Link | Quote
Aww, I'm sorry.

In response to your post in my other thread: the levelnum.ips patch included in this package is all you need to get the current level number. The miniscule hack simply snags the number during the level loading routine, before it's erased, and stores it at $010B.

Knowing the current level number will allow me to overhaul practically everything in my hack...I can finally assign HDMA effects by level (as d4s's system does), or alter the message box code to load different messages for sub-levels...
Tweaker

Red Paragoomba
Level: 12

Posts: 56/57
EXP: 6490
For next: 1431

Since: 03-20-05
From: Rochester, NY

Since last post: 25 days
Last activity: 13 days
Posted on 09-20-05 02:47 PM Link | Quote
Heh, awesome how something so simple can make things so much easier.

Great job, BMF. You never cease to amaze me.
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 7152/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 09-20-05 09:16 PM Link | Quote
Originally posted by BMF54123
I can finally [...] alter the message box code to load different messages for sub-levels...

You do and I'll... uh... be very thankful.
d4s

Panser
Level: 29

Posts: 311/325
EXP: 142151
For next: 5734

Since: 03-23-04

Since last post: 13 days
Last activity: 1 day
Posted on 09-21-05 02:35 PM Link | Quote
am i wrong when i'm saying you got the inspiration for that level-based selection from my hdma pack? :>
anyway, cool stuff.
BMF98567
BLACK HAS BUILT A SILLY DICE-MAZE!
GO!

Current list of BURNING FURY >8( recipients:
- Yiffy Kitten (x2)
- Xkeeper
Level: 53

Posts: 1149/1261
EXP: 1094149
For next: 62970

Since: 03-15-04
From: Blobaria
Special Move: Rising Meatloaf Backhand Combo

Since last post: 21 hours
Last activity: 1 hour
Posted on 09-21-05 04:06 PM Link | Quote
Originally posted by d4s
am i wrong when i'm saying you got the inspiration for that level-based selection from my hdma pack? :>
anyway, cool stuff.
Well, maybe just a little. I knew I forgot to add something to the README...

Just out of curiosity, how did you find the current level number? The game temporarily writes it to $0E during the level-loading routine, so I just hacked it to write to $010B as well (which is never erased).


(edited by BMF54123 on 09-21-05 07:07 AM)
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 7181/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 09-21-05 06:15 PM Link | Quote
Hey, where does it stick the high bit? (To determine whether you're in level 0xx or 1xx.)
BMF98567
BLACK HAS BUILT A SILLY DICE-MAZE!
GO!

Current list of BURNING FURY >8( recipients:
- Yiffy Kitten (x2)
- Xkeeper
Level: 53

Posts: 1151/1261
EXP: 1094149
For next: 62970

Since: 03-15-04
From: Blobaria
Special Move: Rising Meatloaf Backhand Combo

Since last post: 21 hours
Last activity: 1 hour
Posted on 09-22-05 01:16 AM Link | Quote
$010C. The level number's 16-bit.
d4s

Panser
Level: 29

Posts: 312/325
EXP: 142151
For next: 5734

Since: 03-23-04

Since last post: 13 days
Last activity: 1 day
Posted on 09-22-05 04:21 AM Link | Quote
heres my code that writes the current level number to a certain variable.
ive attached the overworld zones, too, my code handles them as level numbers $200-$204. because overworld hdma stuff tends to be buggy, i havent documented it, but you can enable hdma effects on the overworld by adding 5 more level slots to the levelattributes file in my hdma pack.
heres the subroutine for that without comments, but its not hard at all, just a tad messy. :>

SmwCalculateLevelNumber:
php
rep #$30
lda.w $13BF ;get games level number
cmp.w #$01FF
bpl SmwProcessOverworldNumber

cmp.w #$0024 ;check if level number is below $24
bmi SmwDontAddLevelNumber

clc
adc.w #$00dc

SmwDontAddLevelNumber:

sta.w SmwLevelNumberLo
SmwDontProcessLevelNumber:
plp
rts

SmwProcessOverworldNumber:
lda.w $1F11
and.w #$00ff
clc
adc.w #$0200
bra SmwDontAddLevelNumber


(edited by d4s on 09-21-05 07:22 PM)
Glyph Phoenix

Level: 39

Posts: 574/745
EXP: 385876
For next: 18895

Since: 11-07-04

Since last post: 2 hours
Last activity: 2 hours
Posted on 09-22-05 08:04 PM Link | Quote
This will be better than having to make a custom palette every level, but still, I'm not too fond of subroutining each level by hand. I think I'll start working on a spriteASM system instead.

But I shouldn't look a gift blob in the mouth. I don't want to be Rising Meatloaf Backhand Combo'd.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Super Mario World hacking - LevelASM v1.0 - the hacking marathon continues! | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.029 seconds.