• Welcome to Smashboards, the world's largest Super Smash Brothers community! Over 250,000 Smash Bros. fans from around the world have come to discuss these great games in over 19 million posts!

    You are currently viewing our boards as a visitor. Click here to sign up right now and start on your path in the Smash community!

Bug With Dolphin

Kurausukun

Smash Apprentice
Joined
Jun 11, 2015
Messages
90
I also posted this in the support forum, but after thinking about it again, it probably belongs here.

This has been mentioned on this forum before, but I brought it up over at the Dolphin forums and got some more information about it, so I'm making a "please fix this" request, even though it is technically an avoidable bug. It has to do with the Gecko codes introduced in P:M 3.5.

When using Dolphin, if you do a normal Brawl and then try to do an All-star versus match, all of your characters are Mario, no matter what you selected. This happens for all players and CPUs. This behavior does not occur on actual hardware, so it's definitely a shortcoming on Dolphin's end, but from what I understand (which is not much), it should be easily fixable for someone with the right know-how (AKA a P:M dev). I'm going to paste what JMC47 from the Dolphin forums said:

"it's due to icache. They don't manually clear it, instead relying on the Wii CPUs own stuff. Emulating that would cause a 9x slowdown (we have fixed it before...)

The Project M team technically has nothing to fix, but if they want it to work with Dolphin, they'll have to manually clear the icache."

So there you have it. Basically, if someone in the PMBR could add a Gecko code to manually clear the icache, this would become a non-issue. I don't know how difficult that would be since I know next to nothing on the subject, but that's my request. It doesn't even have to be in a release, I'd just like to know how to add the necessary Gecko code to the P:M .gct. Thanks.
 

wiiztec

Smash Journeyman
Joined
Dec 19, 2007
Messages
402
Location
Houston, TX
NNID
wiiztec
We don't really know what JMC47 is talking about (or at least I don't and nobody I've asked has told me) I tried to fix it by changeing ASV & Stamina to check the mode ID in each ASM hook instead of doing it in gecko and writing the original instructions back
 

Dantarion

Smash Champion
Joined
May 21, 2007
Messages
2,492
Location
Santa Barbara, CA
This is exactly what you needed to do.

When you use a Gecko code to write to a code section, its just by luck that it works on the Wii. Technically, the code you replaced could be still in the processors cache, causing inconsistent problems until the cache is cleared. Fortunately, the cache gets cleared by something else and it just works.

The dolphin devs actually made a build that tries to emulate the exact way the Wii's cache works, but it trashed performance. Its much easier for us to just adjust any codes we made that use the above technique.
 

wiiztec

Smash Journeyman
Joined
Dec 19, 2007
Messages
402
Location
Houston, TX
NNID
wiiztec
I asked several times how to clear the cache and neither you or anyone else told me anything
 

Kurausukun

Smash Apprentice
Joined
Jun 11, 2015
Messages
90
Just to be clear, is that .gct one with the 3.5 codeset or the new 3.6 Beta codeset? Thanks a bunch, by the way.
 

Kurausukun

Smash Apprentice
Joined
Jun 11, 2015
Messages
90
I know it's a pain, but could I trouble you to post the code you added (if it's that simple) so I can add it to whatever codeset I prefer? Or is it more than just adding a code?
 
Top Bottom