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 - Change overworld position from a level? | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Kailieann

Koopa
Level: 11

Posts: 7/106
EXP: 5320
For next: 665

Since: 10-09-05

Since last post: 2 hours
Last activity: 2 hours
Posted on 10-10-05 07:47 PM Link | Quote
I have an idea, but the problem is that in order for it to work properly, it would require the ability to change Mario's overworld position depending on how he exits a level.

Now, I'm assuming this would involve an amount of assembly. Could someone give me an idea as to how much?
XPeter

Fuzz Ball
Level: 42

Posts: 859/963
EXP: 501695
For next: 19667

Since: 01-24-05
From: South Ireland

Since last post: 1 hour
Last activity: 26 min.
Posted on 10-10-05 08:04 PM Link | Quote
I'm guessing it would just require a custom block to write 2 (possibly more) bytes to RAM.
Bio

Buster Beetle
Level: 27

Posts: 418/458
EXP: 107144
For next: 9015

Since: 07-06-05
From: a laboratory somewhere... Waiting to be completed

Since last post: 8 hours
Last activity: 5 hours
Posted on 10-10-05 10:31 PM Link | Quote
I already made this block for my hack, the ram are... *open his note*

7E1F11: Mario current submap
Main: 0
Yoshi island:01
vanilla dome:02
Forest of illusion:03
Bowser valley:04
Special world:05
Star world:06
7E1F17: Mario X position
7E1F19: Mario Y position
7E1DEA: Event to activate(FF for none)
7E1493: write FF to end level

with these data you should be able to make your custom block
Ragnara

Octorok
Level: 7

Posts: 23/28
EXP: 1265
For next: 183

Since: 08-21-05
From: Germany

Since last post: 17 days
Last activity: 13 hours
Posted on 10-10-05 10:41 PM Link | Quote
Being curious again:
If you have a two-player-hack, would this block affect the correct player or Mario only? If it is Mario only, it might not be helpful for Kailieann.
Bio

Buster Beetle
Level: 27

Posts: 419/458
EXP: 107144
For next: 9015

Since: 07-06-05
From: a laboratory somewhere... Waiting to be completed

Since last post: 8 hours
Last activity: 5 hours
Posted on 10-10-05 10:53 PM Link | Quote
I think it 'current character OW position'


(edited by Bio on 10-10-05 01:55 PM)
Dark Ludwig

Red Paratroopa
Level: 21

Posts: 130/172
EXP: 45740
For next: 4203

Since: 09-17-04
From: Georgia

Since last post: 9 days
Last activity: 2 days
Posted on 10-11-05 12:41 AM Link | Quote
Originally posted by Bio
I think it 'current character OW position'
Mario and Luigi use different RAM values for overworld submaps, X/Y position, etc. this will only work for Mario.
Kailieann

Koopa
Level: 11

Posts: 8/106
EXP: 5320
For next: 665

Since: 10-09-05

Since last post: 2 hours
Last activity: 2 hours
Posted on 10-11-05 12:43 AM Link | Quote
Right, Mario World has a two player mode. I keep forgetting about that.
Well, guess I'll just have to test it and see what happens.
Sukasa

Boomboom
Error 349857348734534: The system experienced an error.
Level: 57

Posts: 1909/1981
EXP: 1446921
For next: 39007

Since: 02-06-05
From: *Shrug*

Since last post: 6 days
Last activity: 1 day
Posted on 10-11-05 12:58 AM Link | Quote
Kailieann, check the memory map (find the link the the first page of ROM locations), for the mario/luigi flag. With it, make your block either move mario, or use it to move luigi by using a CMP...BEQ branch.
Glyph Phoenix

Level: 39

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

Since: 11-07-04

Since last post: 2 hours
Last activity: 2 hours
Posted on 10-11-05 01:10 AM Link | Quote
Or... just... move both.
Kailieann

Koopa
Level: 11

Posts: 9/106
EXP: 5320
For next: 665

Since: 10-09-05

Since last post: 2 hours
Last activity: 2 hours
Posted on 10-11-05 01:22 AM Link | Quote
Moving both isn't what I'm after.
The flag is a good idea, but the memory map doesn't say which values are for which characters.
Fortunately I know how to find that out for myself (0=mario, 1=luigi)
As for how to move Luigi a quick 2 player game pulled out the Luigi addresses I'd need:

7E1F12: Current map
7E1F1B: Xpos
7E1F1D: Ypos

*wonders vaguely if anyone's already made Mario/Luigi-only blocks or blocks that turn Mario into Luigi*

---

Okay, apparently changing the position isn't enough for what I want. There seems to be some kind of identifier for what level or whatever Mario is on, too.
Which makes sense, but I have no idea how to find it..


(edited by Kailieann on 10-10-05 04:23 PM)
(edited by Kailieann on 10-10-05 04:27 PM)
(edited by Kailieann on 10-10-05 06:45 PM)
XxShaynee2xX

Koopa
Level: 11

Posts: 54/102
EXP: 5679
For next: 306

Since: 10-03-05
From: San Diego

Since last post: 5 hours
Last activity: 5 hours
Posted on 10-11-05 06:32 AM Link | Quote
ok... this sounds very complicated.
BMF98567
BLACK HAS BUILT A SILLY DICE-MAZE!
GO!

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

Posts: 1194/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 10-11-05 03:43 PM Link | Quote
Jeez. What's it matter to you? If I'm not mistaken, Kailieann started this thread!

Seriously, stop spamming. Don't post in a topic if you have absolutely nothing to contribute. You replied to THIRTEEN THREADS in a row...doesn't that seem a bit, I dunno, excessive?


(edited by BMF98567 on 10-11-05 08:37 AM)
Glyph Phoenix

Level: 39

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

Since: 11-07-04

Since last post: 2 hours
Last activity: 2 hours
Posted on 10-11-05 04:07 PM Link | Quote
Way to fly off the handle. I would have expected this behavior from Kyouji, or me, or one of the other losers around here, but not you. For shame, BMF. For shame.
BMF98567
BLACK HAS BUILT A SILLY DICE-MAZE!
GO!

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

Posts: 1197/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 10-11-05 05:02 PM Link | Quote
Gah. I can't tell if you're being sarcastic right now, but it really doesn't matter. I'm so sick and tired of all the utter stupidity that flows into this forum 24/7. This place is practically Pokemon Hacking: The Sequel, and it's DRIVING. ME. INSANE.


(edited by BMF98567 on 10-11-05 08:38 AM)
(edited by BMF98567 on 10-11-05 08:39 AM)
Xkeeper
The required libraries have not been defined.
Level: NAN

Posts: 3744/-863
EXP: NAN
For next: 0

Since: 03-15-04

Since last post: 2 hours
Last activity: -753366 sec.
Posted on 10-11-05 05:06 PM Link | Quote
* hugs BMF

I am here to help you. Let me know if you see a thread that needs help. I will take care of it.
Glyph Phoenix

Level: 39

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

Since: 11-07-04

Since last post: 2 hours
Last activity: 2 hours
Posted on 10-11-05 06:14 PM Link | Quote
BMF, my blobby acquaintance, you're going about this all wrong. SMW does deserve better, true, true. But instead of making this forum, this active forum, better, you went and started a new one. Even if you were to get as many people over there as here the same problems would start up again the moment you took your eyes off the place.

Take a breather and think for a moment. Here is better than there because this forum has people and experience, even if you're a ladder-rung or two higher over there. Take what we have here and build a Lunar Utopia. Get yourself more access to the board. People on the higher up should listen to you because you're BMF. That's like people on the higher up not listening to Fu. They won't because Fu's Fu, and they won't because you're BMF.
Kailieann

Koopa
Level: 11

Posts: 10/106
EXP: 5320
For next: 665

Since: 10-09-05

Since last post: 2 hours
Last activity: 2 hours
Posted on 10-11-05 08:20 PM Link | Quote
It seems as though, at this point, the result I desire is beyond my current capabilities. Not surprising, seeing as I've never done this before.

Well, if someone figures how to manage this properly, let me know. For the record, for testing, I was using the following:

LDA $B30D ; Load character state to accumulator
CMP #$00 ; Compare with 0 (Sets Z-flag if current character is Mario)
LDA #$06 ; Load 6 (Star Road) to accumulator
LDX #$28 ; Load 28 (x-pos of the 'Donut Island' star) to X
LDY #$D8 ; Load D8 (y-pos of the 'Donut Island' star) to Y
BNE 09 ; Skip the next 9 bytes if Z-flag is not set
STA $111F ; Write accumulator to Mario's overworld state
STX $171F ; Write X to Mario's overworld x-pos
STY $191F ; Write Y to Mario's overworld y-pos
BEQ 09 ; Skip the next 9 bytes if Z-flag is set
STA $121F ; Write accumulator to Luigi's overworld state
STX $1B1F ; Write X to Luigi's overworld x-pos
STY $1D1F ; Write Y to Luigi's overworld y-pos
;; The next four I added after the original tests failed
LDA #$50 ; Load 50 to accumulator
STA $EA1D ; Write 50 to 7E1DEA (activates event 50)
LDA #$FF ; Load FF to accumulator
STA #9314 ; Write FF to 7E1493 (ends level)
RTS ; Return from subroutine

Which, in hex, broke down to this:
AD B3 0D C9 00 A9 06 A2 28 A0 D8 D0 09 8D 11 1F 8E 17 1F 8C 19 1F F0 09 8D 12 1F 8E 1B 1F 8C 1D 1F A9 50 8D EA 1D A9 FF 8D 93 14 60

What this resulted in was: When Mario touched the block, the map screen changed to the Star World submap, but Mario did not appear on said submap, and the level in the corner still read as whatever level the block had been placed in (I alternated between Yoshi's House and Yoshi Island 1), and when I hit A, I wound up with one of those endless bonus games. I tried putting a goal sphere in the corner, but it didn't show up. Next time I'll set the timer to 1, see if that can get out of there.

As for Luigi, well. Nothing happened for him. Though at one point I did manage to get him going up to the Yellow Switch Palace without creating the path, first.
Hmm.. maybe there's a way to use custom blocks that could trigger multiple events when you exit a level.

There are three possibilities that I can see. Either I screwed up the assembly for the block (hey, my specialty is php. Gimmie switch($B30D){} and I'll whip this bastard into shape).
Or, I screwed up the block itself. Which, to be fair, has more to do with the fact that I can't find any documentation on what the different offset values mean. I tried -1 and 0, they both failed.
Or there's another, undiscovered value in the RAM that defines which level Mario/Luigi is standing on. Either way, I can't get it to work, so I'll just work around it.

For the record, if anyone's interested, I was planning on making a 'Pipe Road' level to replace Star Road, which would feature a series of pipes, each leading to a different place on the overworld (or submaps), thereby freeing up the Star Road submap and all those levels that are being wasted by the stars.
Which isn't a problem with pipes, seeing as they all use level 0, so I can use a corner of the Overworld for the different pipes instead, but I still think it would've been cooler to do it through a level.
BMF98567
BLACK HAS BUILT A SILLY DICE-MAZE!
GO!

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

Posts: 1198/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 10-12-05 02:03 AM Link | Quote
Sorry to keep derailing your topic, Kailieann, I just need to clear this up.

Last night kinda pushed me over the edge. I already wasn't in a very good mood, and then I came in here to see (surprise surprise) thirteen topics in a row with lame, pointless replies from some stupid n00b. Now, see, I have a very hard time tolerating stupidity, and last night, all that pent-up anger just exploded. I was THIS CLOSE to banning a bunch of people with my new-found power (granted by a certain someone) and leaving this board forever. Hence the creation of Lunar Utopia.

So...I guess I'm not leaving just yet, but I AM leaving Lunar Utopia open. I don't care if I ever have the crazy huge number of users this board has--that's not what I want (half of said users should've been banned or disciplined in SOME way a long time ago). I just want it to be a place where intelligent, resourceful SMW hackers who are willing to do/learn whatever it takes to make a really good hack (mostly the ones who left shortly after the old board died) can chill out, share notes, and help each other without a constant influx of "HOW DO I CAHNGE TEH OVREWROLD MAPZ?!?!!?!?!" interrupting things and killing the mood. Think of it as "SMW Hacking Advanced," if you will, or a bike without training wheels.
Glyph Phoenix

Level: 39

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

Since: 11-07-04

Since last post: 2 hours
Last activity: 2 hours
Posted on 10-12-05 07:50 AM Link | Quote
I know that forum was created in the best of intentions: to create a stable SMW hacking community. But, what about this one? Do it here. It's that simple. It took forever just to round up good members, and even if you actually manage to do that elsewhere, it'll turn into a second here. That's all there is to it.

You mod a board with people, quite a few being knowledgeable people. That's hard to get, you know. You'd throw that away to start a new community because of a few n00bs? To quote a certain someone, "...doesn't that seem a bit, I dunno, excessive?"
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Super Mario World hacking - Change overworld position from a level? | |


ABII


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



Page rendered in 0.020 seconds.