(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
06-23-24 10:14 PM
0 users currently in SMW Hacking.
Acmlm's Board - I3 Archive - SMW Hacking - Using normal and inverted Switch Blocks in the same hack (not a question; an answer) New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
SnifflySquirrel

Shyguy








Since: 03-03-06
From: Vermont

Last post: 6436 days
Last view: 6335 days
Posted on 04-21-06 02:45 PM Link | Quote
Currently, it's possible for one to "invert" the Switch Blocks in their hack (making them solid before the switch is pressed and passable afterwards) by changing a few ROM offsets. However, that doesn't help if you want to use both styles of Switch Block in your hack. Fortunately, I have a solution to that.

As a byproduct of my research into SMW's level rendering code, I've prepared this simple patch (see attachment). With it installed, Extended Objects 9C-9F (which are normally unused) will become inverted versions of the green, yellow, blue, and red switch blocks, respectively. There are a couple of negative points, however:

1. You'll have to use the Insert Manual window to add them to your levels. (For those who don't know, you manually insert Extended Objects by placing a zero in the "Object Command" field and putting the Extended Object number in the "Size/Type/Ext" field.)
2. The objects will still show up glitchy in LM (they'll look fine in-game, though). The glitchy objects are also two tiles high; the switch blocks are only one.
2a. One of the objects (9F, I think) has a door tile in it normally, so using it might cause LM to incorrectly report that there is an exit tile in a screen without an exit assigned.

Try it out, and let me know if you experience any bugs/crashes/other strange behavior.

Attachments

iswitch.ips (74b) - views: 47
Deleted User
Banned


 





Since: 05-08-06

Last post: None
Last view: 6335 days
Posted on 04-21-06 10:53 PM Link | Quote
Thanks SS , I wanted this . Also, I remember of a hack that had this...Super Mario Returns ?
Magic_Vampire_Joe

Reason Why SMW Hacking Sucks #2


 





Since: 04-15-06
From: Delfino Island

Last post: 6604 days
Last view: 6604 days
Posted on 04-22-06 01:28 PM Link | Quote
Brilliant, I think I might use that... Pretty good, but I wonder If there is anyway to make it non-glitchy in LM... Oh well, good enough for me...
spel werdz rite









Since: 11-19-05

Last post: 6336 days
Last view: 6334 days
Posted on 04-22-06 01:49 PM Link | Quote
Very nice work!
I was trying to find a way of doing this, but it would not have been near as good as yours.
And I can live with the Lunar Magic errors, so eh.
BMF54123
WARNING: MOOD LEVEL CRITICAL








Since: 11-18-05
From: MOOGLES

Last post: 6335 days
Last view: 6334 days
Posted on 04-23-06 04:47 AM Link | Quote
A better method might be to hack the Direct Map16 code in the ROM to check and replace blocks as they are loaded, i.e. if the current block is an inverted switch block, check the switch block flags and swap blocks as necessary. It would be a much cleaner method, anyway.
xpCynic

Red Cheep-cheep








Since: 03-29-06

Last post: 6334 days
Last view: 6334 days
Posted on 04-23-06 05:27 PM Link | Quote
That's truly amazing. I would have loved to put those in my hack to block off areas, but I just used regular switch blocks and they did what I needed them to do. Good job anyway!
SnifflySquirrel

Shyguy








Since: 03-03-06
From: Vermont

Last post: 6436 days
Last view: 6335 days
Posted on 04-23-06 06:19 PM Link | Quote
Originally posted by BMF54123
A better method might be to hack the Direct Map16 code in the ROM to check and replace blocks as they are loaded, i.e. if the current block is an inverted switch block, check the switch block flags and swap blocks as necessary. It would be a much cleaner method, anyway.

You know, that's an excellent idea.
Attached to this post is an alternative to the previous patch. With it, the filled switch blocks placed using the Direct Map16 feature will turn dotted once the relevant Switch Palace has been activated. As a bonus, the Direct Map16 dotted switch blocks will act just like normal switch blocks (they'll turn solid after you activate the switch).
This patch uses a different address than the last one, so it should be perfectly safe to install even if you've already installed the earlier version.

EDIT: D'oh, I just realized that I mucked up part of the code, so that some of the tiles on Map16 pages 2 and 3 might change in reaction to Switch Palace states as well . I can't update attachments, but I can tell you how to fix it:
Open iswitch2.ips in a hex editor, go to offset 0x0E (which should be FC), and change it to FE. Save and reapply to your hack if needed.

Attachments

iswitch2.ips (65b) - views: 30



(edited by SnifflySquirrel on 04-23-06 09:08 PM)
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - SMW Hacking - Using normal and inverted Switch Blocks in the same hack (not a question; an answer) |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.014 seconds; used 376.20 kB (max 457.16 kB)