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

Author Topic: Super Mario Bros, how to edit warp pipe entrance & exit.  (Read 392 times)

GlitchyTSP

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Super Mario Bros, how to edit warp pipe entrance & exit.
« on: June 15, 2019, 09:52:38 am »
Hey, does anyone know how to edit the warp pipes entrance and exit locations?

I don't mean the warp zone pipes, rather edit the standard warp pipes, such as the one found in 1-1

As a side question, is there a way to change the sub-area? would be cool if you could take a pipe in 1-1 to go to 1-2, only to then exit 1-2 and re-enter 1-1.

The tool I'm using at the moment is ISD SMB Util, but if this requires a different editor then please tell me.

HPJ

  • Jr. Member
  • **
  • Posts: 37
  • reeeeeeeeeee
    • View Profile
Re: Super Mario Bros, how to edit warp pipe entrance & exit.
« Reply #1 on: June 15, 2019, 02:27:22 pm »
This is a pretty simple thing to do in ISD SMBUtil. The first thing you want to do is to press this button to reveal the sprites, which the warp pipe information is stored as for some reason.



Then, locate this block, normally placed nearest the warp pipe, labelled "room change" (careful, in some warp areas there are two stacked on top of each other. There's no harm in moving them about, as long as they remain within the screen-and-a-bit that is loaded when mario enters the underground section) and double click on it to view the object's options.



Here, these three options are the only ones you'll need.



"World" selects the world the warp will work in, allowing some areas to be reused in other worlds (hence why some warp zones have two or three of these blocks on top of each other). If the level that has the entrance to this area is 3, for example, you should set this to 3 so that the pipe actually works. If mario is in world 4 and the setting is incorrectly set to any other number (that will happen if you don't check these regularly), mario will just loop infinitely.

"Room" is the level Mario will be spat back out into, allowing for bonus rooms to actually lead into other levels (something I often use myself). "25", as it is set to here, is 1-1. You can look up the level codes in this menu:



"Page" is just the page of the level the exit pipe is in. You can change the location of the place mario comes out of, by going to edit>header>Position and changing the co-ordinates from the presets in the menu. The only two you will need are V=10, H=1.5, or two blocks above ground and three blocks from the left screen edge, and V=-1, H=1.5 which is dropping from the ceiling.

The way these work is that the moment one of these blocks is loaded into memory, the output of all the warp pipes in the room change. You can't make it so that there are several pipes on one screen that go to different places, but if you send multiple of these into one level, you can have them change between pipes (ala 8-4) so that one level can have several bonus rooms.

This is a very brief and pretty awful explanation, but if you can get your head around it, I'm glad I helped.

Spoiler:
If you can't, I'm very sorry and you'll have to work it out yourself like I did. Sorry in advance

GlitchyTSP

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: Super Mario Bros, how to edit warp pipe entrance & exit.
« Reply #2 on: June 15, 2019, 03:21:24 pm »
...Thank you so much!

HPJ

  • Jr. Member
  • **
  • Posts: 37
  • reeeeeeeeeee
    • View Profile
Re: Super Mario Bros, how to edit warp pipe entrance & exit.
« Reply #3 on: June 15, 2019, 04:48:24 pm »
You are welcome! ;)

chillyfeez

  • Hero Member
  • *****
  • Posts: 795
    • View Profile
Re: Super Mario Bros, how to edit warp pipe entrance & exit.
« Reply #4 on: June 16, 2019, 09:16:44 am »
Out of curiosity, if you are on 1-1 and you take a poioe that spits you out somewhere on 3-2 and finish the level there, do you go on to 1-2 or 3-3?
Ongoing project: "Final Fantasy IV: A Threat From Within"

Latest Demo

HPJ

  • Jr. Member
  • **
  • Posts: 37
  • reeeeeeeeeee
    • View Profile
Re: Super Mario Bros, how to edit warp pipe entrance & exit.
« Reply #5 on: June 16, 2019, 09:22:38 am »
You go to 1-2. The world number can never change unless you touch an axe (without asm hacking, that is)