Project

General

Profile

Actions

Emulator Issues #7588

closed

Gecko cheats are broken

Added by OMEGA345 over 10 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Game Name?
Paper Mario - The Thousand Year Door

Game ID?
R8PE01

What's the problem? Describe what went wrong in few words.
When enabling Gecko codes, none of them work at all. Enabled Cheats is checked in options.

What did you expect to happen instead?
Tried a few codes like, 1-hit kills enemy, coins, and health. Even separately one by one and they simply don't work.

What steps will reproduce the problem?

  1. Go to the Gecko options tab, enable any cheat.
  2. Run the game test the cheat like money, it won't work even after collecting a coin. Try health it doesn't work.

Which versions of Dolphin did you test on?
4.0.2

Does using an older version of Dolphin solve your issue? If yes, which
versions of Dolphin used to work?
3.5

What are your PC specifications? (including, but not limited to: Operating
System, CPU and GPU)
Intel i7
Geforce 770 2GB
16 Memory

Is there any other relevant information? (e.g. logs, screenshots,
configuration files)
[Upload big files to a hosting service and post links here!]

[Do not attach files to this issue. Upload them to another site and
link here. Use imgur.com for images and pastie.org for logs.]

Actions #1

Updated by OMEGA345 over 10 years ago

Sorry Subject should say Super Paper Mario Wii ActionReplay Issues,
Sorry wasn't specific in subject line I realized after I re read my bad.

Actions #2

Updated by pauldacheez over 10 years ago

  • Status changed from New to Questionable

Gecko cheats have been broken for a while, AFAICT. Actual Action Replay cheats should work.

Also, if you're gonna file issues on this issue tracker, always test on the latest development build. 4.0.2 is ancient at this point and has a ton of bugs that have already been fixed. https://dolphin-emu.org/download/

Actions #3

Updated by OMEGA345 over 10 years ago

I just tried on the latest 4.0-2722, they still aren't working. Some games don't have AR codes such as Paper Mario for Wii. At least I don't find anything online for them.

Actions #4

Updated by pauldacheez over 10 years ago

  • Status changed from Questionable to Accepted

Well, then.

Actions #5

Updated by JMC4789 over 10 years ago

Some Gecko Cheats do work, as I've said multiple times. It's just very, very few. I don't know why.

Actions #6

Updated by mimimi over 10 years ago

One small thing that would be easy to fix:
The instruction cache for ocarina codes is only cleared for the code handler, and not for the codes. But there are codes that contain instructions:
http://geckocodes.org/index.php?arsenal=1
(see asm codes, codes starting with C0000000)

One example code that shouldn't work at all right now is here:
http://geckocodes.org/?c=RSBA01
Disable Time Limit On VC Games
(requires SSBB's VC games to run, but i think they do now?)

https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/Core/GeckoCode.cpp
line 124, change:
for (unsigned int j = 0; j < data.length(); j += 32)
to:
for (unsigned int j = 0; j < 0x1800; j += 32)

and then asm codes have a chance to work. Well, it depends if there's something at play here, that makes it irrelevant that the cache is not cleared.

Actions #7

Updated by autofire372 over 10 years ago

Nope. On my end, Dolphin crashes outright when trying to launch a game with Gecko codes enabled, even with that "fix".

Actions #8

Updated by mimimi over 10 years ago

Oh, i was replying to JMC. And i think he was talking about wii games. Gamecube codes are not working at all, because Dolphin uses the wrong code handler.

You can fix this with the code handlers from here:
https://code.google.com/p/dolphin-emu/issues/detail?id=7588

And if you want to use codehanderonly (which works for wii and gc games), in order to use more codes and don't have the usb gecko code interfering, you also need to change a line of code. Same file:
https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/Core/GeckoCode.cpp
line 73, change:
u32 codelist_location = 0x800028B8;
to:
u32 codelist_location = 0x800022A8;

(not 100% sure about the offset, but it should be the right one, too lazy to look it up)

Actions #9

Updated by autofire372 over 10 years ago

It STILL doesn't work. Same result as before—the emulator crashes when Gecko codes are enabled, no matter what codehandler is used.

Actions #10

Updated by mimimi over 10 years ago

What games and codes are you trying? Some games don't even like Gecko OS's code handler(something being at 0x80001800). But some codes will most likely not work for some yet unknown problem. The way Dolphin hooks into the game, to force it to run the code handler once in a while, is completely different from the way Gecko OS works for example.

Actions #11

Updated by OMEGA345 over 10 years ago

so far the game mentioned above :)

Actions #12

Updated by skidau over 10 years ago

Have put a fix in for Gecko codes in Dolphin 4.0-2934 r1f6f01e2a0dc8c5d96f2ebf15ee2d6b03a79eeec

https://dolphin-emu.org/download/dev/1f6f01e2a0dc8c5d96f2ebf15ee2d6b03a79eeec/

One semi-bug that I noticed in Dolphin is that Gecko codes will not work if there are two cheats with the same name. If this is the case, go into the game ini and delete the duplicates or rename the cheat say that they have unique names.

Will mark this fixed but can reopen if the cheat engine is still crashing.

Actions #13

Updated by skidau over 10 years ago

  • Status changed from Accepted to Fixed
Actions #14

Updated by autofire372 over 10 years ago

Metroid Prime 3 is still crashing with Gecko codes enabled as of 4.0-3644.

Actions #15

Updated by skidau over 10 years ago

The Gecko codes are working for me. Used the "Have All upgrades" code for RM3E01 (NTSC-U version of MP3). The game booted fine, didn't crash and I had all upgrades in the game.

Actions #16

Updated by autofire372 over 10 years ago

What codehandler are you using, skidau? I'm using the one that ships with dolphin, and it just crashed MP3 with that exact code. And before anyone asks, yes, I have a verified good dump of MP3 (RM3E01).

In fact, Gecko codes on my end crash every Wii game I have except for Super Mario Galaxy (RMGE01). The following games all hang on boot for me with codes enabled:

LEGO Batman: The Videogame (RLBEWR)
LEGO Indiana Jones: The Original Adventures (RLIE64)
LEGO Star Wars: The Complete Saga (RLGE64)
Metroid Prime 3: Corruption (RM3E01)
Super Smash Brothers Brawl (RSBE01)

Actions #17

Updated by skidau over 10 years ago

I am using the default codehandler.bin (crc32: 3cfd63e4) under Dolphin 4.0-3655. Settings are JIT64, Windows 7, DSP LLE, OpenGL. Pressed the Gecko code download button to get the "Have All upgrades" code. Enabled the code and Enabled Cheats.

Make sure you are not falling over on the "line breaks" bug in the game ini. You can tell if you open up the game ini under Notepad and all of the lines are joined together. If this is the case, open the game ini with a good editor like Notepad++ and save the file in DOS format.

Actions #18

Updated by autofire372 over 10 years ago

Took the nuclear option (deleting the game inis and starting fresh) and that solved the issue. I guess something was wrong with the inis.

Actions

Also available in: Atom PDF