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

How to use the memory viewer #1705

Closed
Mte90 opened this issue Mar 28, 2020 · 9 comments
Closed

How to use the memory viewer #1705

Mte90 opened this issue Mar 28, 2020 · 9 comments

Comments

@Mte90
Copy link
Contributor

@Mte90 Mte90 commented Mar 28, 2020

I am trying to understand how to change values in memory with mgba but the memory viewer is not easy to understand (also there is not doc about the debug stuff integrated in this software).

As example I pick a value, found with the search (also if writing something in the search field and press Return doesn't do anything), select in the table view the address, press the button to open the memory viewer, found the value but is not possible to change that.

Screenshot_20200328_222932

So before start digging with the source code I don't know if mgba support that feature.

@RetroEdit
Copy link

@RetroEdit RetroEdit commented Mar 28, 2020

It should allow you to edit the value in the hex editor (maybe not?) It might be that you have not found the correct value for what you want, i.e. that the value does not do what you think it does. You may have better luck with BizHawk's memory tools.

As for mGBA's debug tools, they are a work-in-progress, and better, more intuitive tools are planned for future versions of mGBA.

@Mte90
Copy link
Contributor Author

@Mte90 Mte90 commented Mar 28, 2020

The 140 value as the screen in the right bottom is not possible to edit, is like in readonly mode (I know a bit Qt).

@RetroEdit
Copy link

@RetroEdit RetroEdit commented Mar 28, 2020

I meant typing in hex directly into the hex editor definitely does work, because I remember specifically doing it in mGBA before.

@endrift
Copy link
Member

@endrift endrift commented Mar 28, 2020

You just type the number in. But if the game isn't paused it might just overwrite it immediately.

Anyway this isn't a bug and this also isn't a support forum.

@endrift endrift closed this Mar 28, 2020
@Mte90
Copy link
Contributor Author

@Mte90 Mte90 commented Mar 29, 2020

Thanks for the answers!
Yes in the hex editor is possible to change it, I was thinking that the fields in bottom of the memory viewer like integer etc. as text field it was possible to change the values from there and automatically inserted that value in the memory.

Instead I have to do it manually the conversion.

@Mte90
Copy link
Contributor Author

@Mte90 Mte90 commented Mar 30, 2020

Before opening a new ticket do you think it is possible to implement in those fields an auto conversion of the value in the hex viewer? in this way is more simple to hack the games.

@endrift
Copy link
Member

@endrift endrift commented Mar 30, 2020

Yeah, I didn't realize that's what you were talking about. We can use this bug for that.

@endrift endrift reopened this Mar 30, 2020
@Mte90
Copy link
Contributor Author

@Mte90 Mte90 commented Mar 30, 2020

No problem :-D

@endrift
Copy link
Member

@endrift endrift commented Aug 17, 2020

I (finally) got around to adding integer editing. String editing is probably not going to come in this release though.

RetroEdit added a commit to TASVideos/mgba that referenced this issue Aug 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants