Banner
Views: 692,846,189
Time:
16 users online: atari2.0, BaronSupreme, coffee, FailSandwich, Fullcannon, Green Jerry, Hooded Edge, kamekku14, MaxwelHacks, obersteiner86, rotten-blood, TheJullasicFox, Tobio, Tyzecta, Ultima, Will16 - Guests: 88 - Bots: 124Users: 36,294 (1,494 active)
Latest: kubzon19
Tip: Before asking for help on the forums, make sure you've tried to figure out the problem on your own first.Not logged in.
Details for Independent Teleport Blocks v1.1
SMW Blocks - Independent Teleport Blocks v1.1
File Name: Independent Teleport Blocks v1.1
Added:
Authors: MolSno
Act As: 25
Includes GFX: No
Description: These blocks will teleport Mario to a specified secondary entrance, independent of any screen exits within the level. Exits are defined in a table within the block itself, so only one copy of each block needs to be inserted.

There are two variants included: a regular block and a door block. Additionally, a patch which stores the current level number to $010B, which is necessary for these blocks to function, is included in case the user hasn't inserted any other patches with that functionality.

This version contains a bugfix that enables functionality for large warp tables.
Tags: door, teleport, warp
Rating: 4.6 (Votes: 5)
Download: Download - 3.44 KiB
304 downloads
TheBiob
Originally posted by underway
Seem to not work with bigger secondary exit numbers (i.e. 14FF), chose a lower number and it worked.


The reason for this is that in order for LM to not break existing resources and probably it's own code as well it had to use the unused bits to fit the secondary exit number and couldn't rearrange the bits.

This means bits 9-12 of the secondary exit number had to be moved to the unused bits 13-16 which gives you 0xA0FF for the 0x14FF secondary entrance.

And just because why not, here's a quick function that should put the real number into the format LM expects:
Untested™
Code
function secondary_exit(num) = num&0x1FF|((num&0x1E00)<<3)


so
Code
LDA #secondary_exit($14FF)

should turn into
Code
LDA #$A0FF

automatically
Posted by: TheBiob -
underway
Seem to not work with bigger secondary exit numbers (i.e. 14FF), chose a lower number and it worked.
Posted by: o underway -
SuperYoshi SMW
omg this block;

work
Posted by: SuperYoshi SMW -
Raggy
So I tried using these, and I THINK I'm following for directions right, but... it's taking me to level 0 anyway.

GPS changes 010B to 610B, so I sa-1 converted your patch as well, but it is STILL not working right...
Posted by: Raggy -

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2018 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 26

Menu

Follow Us On

  • Facebook
  • Twitter
  • YouTube

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG
  • Gaming Reinvented