-
Notifications
You must be signed in to change notification settings - Fork 2
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
Where is the patched "gamemd-spawn.exe" #8
Comments
Hi, you need to perform the patching yourself. Easiest way to do this is to copy Line 82 in ffb674e
Line 86 in ffb674e
the instructions are a bit confusing. I have a major update coming up, including scripts that greatly simplify the set up process both on Windows and Linux. |
Thanks! I'll try it before you release the update! |
The latest spawner ( |
I've just pushed the update. The patching procedure described in the README has been confirmed to work in Windows dev VM. I couldn't test the Docker environment in Windows, but it should work fine as long as WSL is installed. Let me know if you find any issues or if there are ambiguities/errors in the documentation. |
Thanks for the update. I have tried the updated method. The patching procedure has been successful: [13:48:27] ~\..\ra2yrcpp on develop (base 3.11.5)❯ python ./scripts/run-gamemd.py --build-dir ra2yrcpp --spawner-path gamemd-spawn.exe patch-gamemd --output ra2yrcpp/gamemd-spawn-ra2yrcpp.exe
[INFO] 2023-12-05 14:03:32,710 run-gamemd.run-gamemd.py:70: Logging started at: 2023-12-05T14:03:32.710357, level=INFO
[INFO] 2023-12-05 14:03:32,865 run-gamemd.run-gamemd.py:253: exec: ['ra2yrcpp\\addscn.exe', 'C:\\Users\\pc\\AppData\\Local\\Temp\\tmpsz15xe00\\tmp.exe', '.p_text2', '0x1000', '0x60000020']
[INFO] 2023-12-05 14:03:33,074 run-gamemd.run-gamemd.py:253: exec: ['python', './scripts/patch_gamemd.py', '-s', '.p_text:0x00004d66:0x00b7a000:0x0047e000', '-s', '.text:0x003df38d:0x00401000:0x00001000', '-s', '.p_text2:0x1000:0xc3e000:0x53c000', '-d', '0xc3e000', '-r', 'data\\patches.txt', '-i', 'C:\\Users\\pc\\AppData\\Local\\Temp\\tmpsz15xe00\\tmp.exe', '-o', 'ra2yrcpp\\gamemd-spawn-ra2yrcpp.exe']
[INFO] 2023-12-05 14:03:33,285 run-gamemd.run-gamemd.py:424: patch successful: C:\Users\pc\project\ra2yrcpp\ra2yrcpp\gamemd-spawn-ra2yrcpp.exe However, after I copied these files ( |
By the way, i modified the
|
If there's no crash dialog, then a likely reason is that some dependent DLL couldn't be loaded, likely
Thanks for the info! Will fix this in the near future. |
Nothing happens when I launch the patched spawner, even if I remove the |
Just tested it and the reason is missing For a workaround, i'll attach it here. It's the DLL file taken from the Ubuntu based Docker image. Put it into the same folder as the rest of the binaries. You can also get the DLL by building the docker image with docker create shmocz/ra2yrcpp
# use the output of above for value of <ID>
docker cp <ID>:/usr/i686-w64-mingw32/lib/libwinpthread-1.dll .
docker rm -v <ID> |
This works for me, thanks! |
Nice Work! Would like to see major update soon. |
In the README.md:
Where can i find the
patched gamemd-spawn.exe
?The text was updated successfully, but these errors were encountered: