| ||
| Views: 14,036,520 |
Home
| Forums
| Uploader
| Wiki
| Object databases
| IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search |
04-05-21 11:30 PM |
| Guest: | ||
| 0 users reading Adding SMG1 Objects | 1 bot |
| Main - Archived forums - General SMG hacking - Adding SMG1 Objects | New reply |
| NWPlayer123 |
| ||
|
Member Imma Snuggle You Level: 105
Posts: 1167/3604 EXP: 12228841 Next: 33419 Since: 07-07-12 From: Colorado Last post: 1986 days ago Last view: 144 days ago |
probably means it fucked up the powerup system since there is a cloud flower on there, plus all the technical collection ones. ____________________ "I hate playing musical chats" ~ Quote of the month |
| Phantom Wings |
| ||
|
Normal user Level: 16 Posts: 22/46 EXP: 17631 Next: 2625 Since: 07-08-12 Last post: 2627 days ago Last view: 2627 days ago |
Quite the contrary actually. I simply changed the setup_IceMario routine to load regardless of the flagstate. This means that the game will attempt to load IceMario even in the hub. The freezing is caused by the code that creates Ice Mario - it's most likely a read or write to a null address. Dolphin doesn't catch those and simply lets the game continue running. Most of the time, the game is programmed will enough to handle invalid return values and the like, so it actually works using Dolphin without any problems. |
| Marionumber1 |
| ||
|
Wii U hacker Level: 52 Posts: 121/709 EXP: 1067014 Next: 16826 Since: 07-07-12 Last post: 1101 days ago Last view: 47 days ago |
So what are the other patches for? |
| Phantom Wings |
| ||
|
Normal user Level: 16 Posts: 23/46 EXP: 17631 Next: 2625 Since: 07-08-12 Last post: 2627 days ago Last view: 2627 days ago |
The other lines skip loading the IceStep objects and replace all references to IceMario's files to InvincibleMario's files. I needed to make sure the game wasn't crashing due the differences between SMG1 and 2's files - I know for sure that making the game load up InvincibleMario's files works for IceMario.
Anyways, I'm going to give this one last try. I've gotten rid of the loading routine for IceMario all together and substituted normal Mario's already loaded model in for it. I'm still loading up InvincibleMarioHandL and R, but there's not much of a way around that; if you want to have it load up the original files, remove the last two lines. The base functionality for IceMario is still there, but there's not much left that could cause it to crash - hopefully. Edit: What's the deal? I've spent all this time on making Ice Mario work and it turns out that brkirch has beaten me by 2 years. T_T |
| Marionumber1 |
| ||
|
Wii U hacker Level: 52 Posts: 128/709 EXP: 1067014 Next: 16826 Since: 07-07-12 Last post: 1101 days ago Last view: 47 days ago |
We already knew that brkirch had figured it out, but he hasn't actually released it. Also, he seems to have disappeared from the Internet around the time he made the video.
Also PhantomWings, with the most recent patch, the level loads. However, when I collect the Fire Flower, it starts to transform me into Rainbow Mario, but right before it displays the message, the game crashes. Mario gets Rainbow Mario's hands before it crashes. |
| MK7tester |
| ||
![]() Magikoopa I'm back Level: 99
Posts: 1629/3145 EXP: 9968405 Next: 31594 Since: 07-07-12 From: Dolphic Island Last post: 1483 days ago Last view: 1481 days ago |
So are you just gonna give up? Was that your final shot? |
| NWPlayer123 |
| ||
|
Member Imma Snuggle You Level: 105
Posts: 1568/3604 EXP: 12228841 Next: 33419 Since: 07-07-12 From: Colorado Last post: 1986 days ago Last view: 144 days ago |
Not by a long shot ____________________ "I hate playing musical chats" ~ Quote of the month |
| Marionumber1 |
| ||
|
Wii U hacker Level: 52 Posts: 131/709 EXP: 1067014 Next: 16826 Since: 07-07-12 Last post: 1101 days ago Last view: 47 days ago |
I don't know about PhantomWings, but I'm definitely not giving up on this. |
| Phantom Wings |
| ||
|
Normal user Level: 16 Posts: 27/46 EXP: 17631 Next: 2625 Since: 07-08-12 Last post: 2627 days ago Last view: 2627 days ago |
I'm limited in what I can do with Dolphin. Seeing as how brkirch managed to get it working so easily so long ago, I doubt it's anything serious. Unfortunately, whatever it is that is causing it to crash could be just about anything. You may not realize just how unreasonable it is to try to continue searching for it using guess-and-check, but doing so would be far more work than it is worth. I have an .iso of SMG2, so I'll see about installing USBLoaderGX on my Wii the next time I get a chance. That will allow me to use WiiRD which will make finding the problem trivial. |
| MK7tester |
| ||
![]() Magikoopa I'm back Level: 99
Posts: 1647/3145 EXP: 9968405 Next: 31594 Since: 07-07-12 From: Dolphic Island Last post: 1483 days ago Last view: 1481 days ago |
I know this might be unvalid to ask, but why exactly did you get rid of your Wii? |
| Phantom Wings |
| ||
|
Normal user Level: 16 Posts: 28/46 EXP: 17631 Next: 2625 Since: 07-08-12 Last post: 2627 days ago Last view: 2627 days ago |
It's not as much as I got rid of it as much as I don't live with it anymore. That, and its disk drive failed a long time ago. |
| Marionumber1 |
| ||
|
Wii U hacker Level: 52 Posts: 153/709 EXP: 1067014 Next: 16826 Since: 07-07-12 Last post: 1101 days ago Last view: 47 days ago |
After thinking for a little while, I realized that Flying Mario might also have a setup_ |
| Phantom Wings |
| ||
|
Normal user Level: 16 Posts: 30/46 EXP: 17631 Next: 2625 Since: 07-08-12 Last post: 2627 days ago Last view: 2627 days ago |
Flying Mario is actually always loaded in SMG2 because it only consists of a palette swap of Mario and some basic effects. The only reason you can't access him normally is because of a lack of an entry for it in the game's event table. The event table is used to determine what special in game events you have triggered. This includes the mini events that occur when you obtain a powerup for the first time. Because there's no entry for the "GetRedStar" event (internally called フライアマリオ初変身) the game returns a bogus index when trying to read the event flag and it crashes (on consoles, but not on Dolphin which doesn't report memory errors).
Oddly enough, while the Red Star doesn't have an event entry, Ice Mario does. However, because the InformationMessage.msbt file contained in SystemMessage.arc doesn't contain the InformationObserverIce label, the game still crashes just after Mario has transformed (once again, not on Dolphin). I made up some codes to try them out, but I can't use Riivolution, so I haven't made a .xml to patch them in yet. They should work just fine as long as you have the appropriate files loaded up. The only thing Flying Mario needs is PowerupFoo.arc and you don't even need that if you use the FireFlower Grants Flight code. Ice Mario needs IceMario.arc, IceMarioHandL.arc, IceMarioHandR.arc, IceStep.arc and PowerupIce.arc. Overall, there wasn't too much that needed to be tweaked to get them working, but as I said before, trying to find this blindly would have been a futile waste of time. Also, Happy Birthday Mega-Mario. |
| Marionumber1 |
| ||
|
Wii U hacker Level: 52 Posts: 154/709 EXP: 1067014 Next: 16826 Since: 07-07-12 Last post: 1101 days ago Last view: 47 days ago |
That's great, Phantom Wings! I'm going to try this out soon. I already was able to edit the Fire Flower class to change it to both the Red Star and the Ice Flower. I'm going to try your patch and my patch in combination.
Also, I can easily convert those to Riivolution patches. Great news! Flying Mario's outfit worked! Now I'm going to try the Ice Flower, with a your hack and a hack to make it load its resources. Unfortunately, it seems the level crashes with an Ice Flower in it. Anyway, now we need to add MorphItemNeoFoo to the BCSV object lookup table that you talked about in the Wiki. That's what I've been planning to do since the beginning of today, but first we need two empty slots. That means we either need to find 2 unused objects in there, or get rid of 2 objects. |
| Phantom Wings |
| ||
|
Normal user Level: 16 Posts: 31/46 EXP: 17631 Next: 2625 Since: 07-08-12 Last post: 2627 days ago Last view: 2627 days ago |
I've been looking into the whole Ice Mario thing. I'm guessing that it's not possible to use a direct copy of the SMG1 files for Ice Mario in SMG2. All this time I've been using a slightly modified set of files to better match the changes in SMG2.
Try them out and see what happens: Download Also, here's an interesting tip: the code for using Ice Mario includes a tweak to the resource loader function making it load when a Fire Flower is in the level. It's a dirty fix, so a better way to do this would be to place a MorphItemNeoIce object in the level. While the actual object wont show up, it will still call the preload function for it which will in turn activate the resource loader function and load Ice Mario. |
| Marionumber1 |
| ||
|
Wii U hacker Level: 52 Posts: 155/709 EXP: 1067014 Next: 16826 Since: 07-07-12 Last post: 1101 days ago Last view: 47 days ago |
Yes, but my idea is to add MorphItemNeoFoo and MorphItemNeoIce to the BCSV object lookup table. I'd add modified copies of the Fire Flower class.
Nope, level still crashes. |
| Phantom Wings |
| ||
|
Normal user Level: 16 Posts: 32/46 EXP: 17631 Next: 2625 Since: 07-08-12 Last post: 2627 days ago Last view: 2627 days ago |
if you haven't already, could you try it with the FireFlower Grants Ice code? I just want to make sure that the PowerUpIce.arc which I didn't include isn't the problem. |
| Marionumber1 |
| ||
|
Wii U hacker Level: 52 Posts: 156/709 EXP: 1067014 Next: 16826 Since: 07-07-12 Last post: 1101 days ago Last view: 47 days ago |
I already know that PowerUpIce.arc is fine, since when I modified the Fire Flower class into an Ice Flower class, the Ice Flower worked in the level. |
| Phantom Wings |
| ||
|
Normal user Level: 16 Posts: 33/46 EXP: 17631 Next: 2625 Since: 07-08-12 Last post: 2627 days ago Last view: 2627 days ago |
Alright then. The only other thing I can guess is that it's something to do with the IceStep.arc or IceMarioHand files. I've just checked IceMario.arc and it checks out for either version. Testing is a pain using a backup loader because you can't patch things like in Riivolution - you have to rebuild the .iso to make any changes.
You mentioned a while ago further up the thread that one of the patch revisions caused something to load, but crashed the game when the message box appeared. Can you try that patch again and see if it works with the message fix? |
| Marionumber1 |
| ||
|
Wii U hacker Level: 52 Posts: 157/709 EXP: 1067014 Next: 16826 Since: 07-07-12 Last post: 1101 days ago Last view: 47 days ago |
Okay, I'll try it. Using your patch to load Rainbow Mario's files instead of Ice Mario's works. So there's probably a problem with the Ice Mario files. |
| Main - Archived forums - General SMG hacking - Adding SMG1 Objects | New reply |
|
Page rendered in 0.030 seconds. (2048KB of memory used) MySQL - queries: 29, rows: 236/236, time: 0.023 seconds.
Acmlmboard 2.064 (2018-07-20)© 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |