Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gameshark not working #653

Open
pegs001 opened this issue Apr 24, 2020 · 11 comments
Open

Gameshark not working #653

pegs001 opened this issue Apr 24, 2020 · 11 comments
Assignees

Comments

@pegs001
Copy link

pegs001 commented Apr 24, 2020

Expected behavior

Put in gameshark codes, gameshark codes work

Actual behavior

No change in game

Steps to reproduce the behavior

Go to Tools
Cheats
List Cheats
Add in GS code
Enable

P.s. Codebreaker Codes work, but not gameshark

ROM details

Which games are affected by the issue (please state if GBA or GB game):
MegaMan Battle Network 2 and 3 Blue

@denisfa
Copy link
Collaborator

denisfa commented Apr 24, 2020

@pegs001 Thank you for the report. What codes did you try? Could you list them, please?

I think these games need a mastercode before other gameshark codes, so I would like to confirm this here.

@pegs001
Copy link
Author

pegs001 commented Apr 24, 2020

Hello,

I used the codes from this page
https://www.almarsguides.com/retro/walkthroughs/GBA/games/MegaManBattleNetwork2/Gameshark/

I used that master code in there
F80250A0 00000101
45324541 001DC0DE

and tested multiple codes such as
No Random Battles: 12009082 00000000
Cheap Chip Trader: 12009B28 00000009
Busting Level S
02004EFA 0000000B
0200EFF7 0000000B

I tried the same codes on a different emulator program (NO$GBA) to ensure I was putting them in correctly, and they do work on that one.

@rkitover rkitover changed the title VBA-M 2.1.4 Gameshark not working Gameshark not working Apr 24, 2020
@JMC5
Copy link

JMC5 commented Aug 25, 2020

Hello,

I'm having the same problem with the cheat tool from the Emulator. In this case, for the game Megaman Battle Network 3.

This feature is important because it's the only way to completely experience the game if they are the kind of games that come in two or more version per release.

For example the Pokemon games, some of the most popular used by users of the emulator. They come two versions in each release, and each version have specific items that can be traded to the other version. So in real life you would have the two version and trade between them with the "link cable", but in the emulator you can't do that. One has to crack the game with the game shark codes in order to experience the full game.

Any way, I found out that the problem is that the emulator is changing automatically the type of the codes.

The codes @pegs001 named are "games shark" codes. The emulator is changing their type to "code breaker" codes by default, and then read them. Therefore the codes don't work.

The workflow to the problem is:

  1. You open the emulator
  2. Go to "tools" in the menu bar
  3. Click on cheats
  4. Click on "cheat list"
  5. Click "add new cheat"
    **In this window you can see the problem Its the "edit cheat" window
    In the cheat type:
    There is generic code, game shark advance, code breaker advance, flash chart CHT

When you input the code, then select games hark code , then press OK.

The code will be saved. But if you click on it, and the "edit cheat" window pops up, you will see that the emulator would have set the code type to "code breaker".

I hope this is helpful.

@visualboyadvance-m visualboyadvance-m locked and limited conversation to collaborators Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@visualboyadvance-m visualboyadvance-m deleted a comment from JMC5 Aug 25, 2020
@ZachBacon
Copy link
Contributor

alright, I deleted the duplicate posts by JMC5 and kept the original first, I'm assuming that the connection he was using kept refreshing with the data and just kept posting it, I will now unlock the topic.

@visualboyadvance-m visualboyadvance-m unlocked this conversation Aug 25, 2020
@JMC5
Copy link

JMC5 commented Aug 26, 2020 via email

@ZachBacon
Copy link
Contributor

I’m sorry, it was not my intention to comment several times. In my screen the comments didn’t seem to be being posted, so I tried several times. Seems that it was working and the problema was my connection.
Again sorry.

Thanks for your understanding.

JMC5

El 25/08/2020, a la(s) 5:13 p. m., Zach Bacon notifications@github.com escribió:


alright, I deleted the duplicate posts by JMC5 and kept the original first, I'm assuming that the connection he was using kept refreshing with the data and just kept posting it, I will now unlock the topic.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

No worries about it, like I said, it felt like a connection issue so I temp locked it until I could clean up.

If that kind of issue happens again just close the tab and then go back to the issue to be sure next time, it'll help keep things a little cleaner.

@rkitover
Copy link
Collaborator

@JMC5 Thanks! I'll see if there's an easy fix for this.

@briansrls
Copy link
Collaborator

briansrls commented Sep 18, 2020

@rkitover I spent some time looking into this, I got a stack overflow (on windows) when I tried to edit a cheat (double click a cheat in the list).

I think this is because of the global arrays "cheatsList" and "gbCheatList". They are very large, and apparently in Windows the max stack size is only 16k. Reducing the MAX_CHEATS macro stops the stack overflow.

I would like to move them to the heap, but I don't know where to place it. Do you know of a good init I can malloc this from?

This is the stack overflow:

image

I will open a smaller PR to address this issue.

image

@rkitover
Copy link
Collaborator

@briansrls I'd have to look at this more, but CheatsData is a static array, and is unlikely to be copied to the stack, there is some other issue here. What is being stuffed into the event here that is overflowing the stack? Maybe it's too many function calls rather than some data structure?

@briansrls
Copy link
Collaborator

image

I just used a gameshark code for max money on Pokemon Sapphire and it worked well. I will keep looking and see if I can find any more strange behavior besides that stack overflow.

@briansrls
Copy link
Collaborator

image

Editing cheat codes works well on linux, but stack space is also unlimited unlike windows so no stack overflow ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants