How to Install and Run Aldelaro5's Live RAM Viewer
#1
How to Install and Run Aldelaro5's Live RAM Viewer



Intro & Requirements

Aldelaro5's Live RAM Viewer (Dolphin memory engine) is the first ever actual live memory viewer for Dolphin-Emulator. It supports BOTH Mem80 and Mem90. Comes with many features such as search fields, watch list, etc. It is a MUST have if you ever plan on creating your own ASM codes via Dolphin.

Requirements:
You will need to have a Developer Version of Dolphin already installed. 'Stable' versions will simply not work. Here is a guide on how to install Dolphin Dev Version - http://mkwii.com/showthread.php?tid=625



Installing & Running for Windows:

NOTE: For Windows 8 or later


Download the latest version of Aldelaro5's RAM Viewer- https://github.com/aldelaro5/Dolphin-mem...indows.zip

Unzip the download. You will see an application called Dolphin-memory-engine.exe.

The RAM Viewer is meant to run with Dolphin in Debugger Mode. This is simple to do. Simply go to the directory where your Dolphin Emulator exe file (Dolphin.exe) is located. Using your mouse, do a Shift plus Right-Click inside the directory on an empty area. The windows command prompt will appear. Now just type "Dolphin.exe -d" (without the quotations, be sure the D in Dolphin is capitalized).

If debug mode is not booting in Windows, then you may need to install this - https://go.microsoft.com/fwlink/?LinkId=746572

Once Dolphin Debugger Mode has launched, launch your Dolphin-memory-engine.exe file. You should see something similar to this - http://mkwii.com/pics/screenshots/RAMViewer.png

At the top, the program should say it is hooked successfully. If not click the large Hook button. If it fails, restart both Dolphin & the RAM Viewer, and try again. If the RAM Viewer still fails to hook, scroll down to the Troubleshooting portion of the thread...

If the program is hooked, go ahead and launch your MKWii game. Then on the RAM Viewer, click the "Open Memory Viewer" button. A new window will appear showing you the live view of MKWii's RAM. Congratz!



Installing & Running for Linux (Ubuntu or Debian only)

For Linux installation you will need to build the RAM Viewer from source.

1. Update, upgrade, etc etc...


sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove && sudo apt-get autoclean


The above command will update and upgrade everything for your Linux OS plus delete/wipe any unneeded cache and/or dependencies

If you had to preform any upgrades, be sure to reboot your computer - sudo reboot

2. Install Dependencies

If you already have Dolphin-emulator installed on your Debian or Ubuntu (via built from source code), then you already have all the dependencies, proceed to next step. If not, view the Dolphin install guide HERE and install all the dependencies from steps 2 & 3.

3. Download Master Github Package

Go to this link - https://github.com/aldelaro5/Dolphin-memory-engine

Click on the large button "Clone or download". Choose download, and download the zip file. THe zip file - Dolphin-memory-engine-master.zip will be downloaded.

Unzip the file. There will be a master/root folder named - Dolphin-memory-engine-master. Move that master/root folder to a desired location (such as /home/yourusername).

4. Preparing and Executing the Build

Within the master/root folder, is a folder called Source. Using terminal, cd into the Source folder (ex: cd /home/yourusername/Dolphin-memory-engine-master/Source)

Run the following command...


mkdir build && cd build


Now run this command...


cmake ..


And finally run this...


make


The source code will now be built, takes just a few minutes. Once completed your terminal will be auto directed into /home/yourusername/Dolphin-memory-engine-master/Source/build

If not, just cd into that location.

5. Booting the RAM Viewer

Before we boot the RAM viewer, you will need to launch Dolphin in Debugger Mode. This is simple to do. Open up another terminal, and run this command...


dolphin-emu -d


Dolphin Debugger mode will now launch. Going back to your original terminal, run this command to boot the RAM Viewer...


./Dolphin-memory-engine


You should see something similar to this - http://mkwii.com/pics/screenshots/RAMViewer.png

At the top, the program should say it is hooked successfully. If not click the large Hook button. If it fails, restart both Dolphin & the RAM Viewer, and try again. If the RAM Viewer still fails to hook, scroll down to the Troubleshooting portion of the thread...

If the program is hooked, go ahead and launch your MKWii game. Then on the RAM Viewer, click the "Open Memory Viewer" button. A new window will appear showing you the live view of MKWii's RAM. Congratz!



Troubleshooting for RAM Viewer unable to hook to Dolphin:

Windows Users: If the latest dev version of Dolphin is not allowing the RAM Viewer to hook, this is because certain updates on Dolphin were done by the Dolphin Devs which subsequently effects how the RAM Viewer hooks. Here are a list of older Dolphin Dev versions that I have used in the past that have worked w/ the RAM Viewer - 8029, 8279, 8490, 10431, 10886

Linux Users: You will need an older source package of the Dolphin Dev. Unfortunately there is no github database of older Dev revisions. Aldelaro himself has his own fork of Dolphin on his github. Link - https://github.com/aldelaro5/dolphin

Before compiling the source, you need to remove your current version of Dolphin completely. Wherever you main Dolphin folder is, there is a build directory within. Open a terminal within that build directory. Run this command....

sudo cat install_manifest.txt | xargs -d '\n' rm

Command will take a minute or so. Dolphin is now uninstalled.

Download the dolphin package. Extract it. Open a terminal within the main dolphin-master folder. That folder should contain some directories such as Cmake, Data, Externals, etc along with some files. Run these commands...

mkdir Build
cd Build
cmake ..

If there are any errors displayed when the 'cmake ..' command is finished, the make files will not be created thus allowing you to not continue the compilation. Most likely it will say your Qt version is out of date. Ubuntu 18 and Debian 10 have the proper Qt version. If you are not on one of those Linux OS's with this error occurring, you need to install Ubuntu 18 or Debian 10 on your computer. Yes I know this sucks... 

If no errors occurred, type in this command now.....

make

The source will now compile (will take 5 - 10 minutes). Once the compilation is completely finished,  type in this command now....

sudo make install

You may be prompted to enter in your password. Once you enter that command in, the finishing touches to the compilation will be finished.

Launch Dolphin in Debug mode then launch the RAM Viewer and see if you can hook it. Please note I have never tested this fork/version of Dolphin so I cannot guarantee that it will even boot let alone allow the RAM Viewer to hook.

If this version of Dolphin by Aldelaro5 doesn't work for allowing the RAM Viewer to hook, there is another option. You can try Dolphin Linux Source package for v10413 (which is what I use), contact me via discord (Vega#8365) for more information.

Once you have the v10413 downloaded. Extract the download and follow the exact same steps I listed earlier for installing Aldelaro's version of Dolphin.
Reply
#2
deleted
Reply
#3
Since I've got a new pc I've had to re-install everything and I came across a problem which I didn't have before.
When I hook the RAM viewer it says The extended Wii-only memory is absent which as far as I know should say present.
This makes it so I can't view the 90xxxxxx memory addresses.

I've updated my dolphin, re-installed everything, even read the readme that came with the ram viewer (I know crazy.)
I might be missing a crucial step but so far I can't really seem to figure out what I'm doing wrong.
Reply
#4
You can view/post issues here and the creator of the program himself might have the solution - https://github.com/aldelaro5/Dolphin-mem...ine/issues

You could also try older versions of the RAM Viewer - https://github.com/aldelaro5/Dolphin-mem...e/releases

EDIT: Ah it looks like Joshua had the same issue - https://github.com/aldelaro5/Dolphin-mem.../issues/46

If older versions of the RAM viewer won't fix the issue, try an older dev version of Dolphin.
Reply
#5
Yes, the issue is that Dolphin Memory Engine doesn't work properly on dev builds of dolphin using VSCode2019 solutions. It's best to rollback your install to version 5.0-113xx and back since they use the compatible VSCode2017 solutions
(10-14-2019, 11:55 PM)Vega Wrote: Was lucky enough to be one of few to learn proper ASM. Now I just post random garbage on Make it to a 1000 thread.
Was lucky enough to be one of few to learn proper ASM. Now I'm writing codes that I hope amaze!  Tongue
Reply
#6
Yeah my bad, I should have checked the issues first. Thanks for the explanation.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)