Posted: Wed Oct 01, 2014 2:40 am Post subject:
Remove the need of ra2.exe/yuri.exe
Hello all, I have been lurking for a while and decided to join.
Now, I was wondering if there is a way to remove the need of ra2.exe/yuri.exe (I guess they were for patching?) and launch from game/gamemd.exe. In the XWIS release, you can launch the game with game and gamemd, but gamemd requires YR.dll. I'm guessing this is for patching.
I will try looking through the game code later, just asking to see if anyone has done this.
______________________________________________
HEX PATCHES HERE
http://www.ppmsite.com/forum/viewtopic.php?t=38645 Last edited by thexshadow on Fri Oct 10, 2014 3:05 am; edited 4 times in total QUICK_EDIT
thexshadow, keep in mind that if you delete the files on Win8, you will get a black screen instead of the menu.
The game requires these (launcher executables) to be present, unless you patch the GAME(MD).EXE to not check for there status.
I don't see how these can produce a black screen as these are only doing a simple communication between each other, nothing graphics related... QUICK_EDIT
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Wed Oct 01, 2014 3:32 pm Post subject:
I suspect some specific made-for-RA2 compat setting detections causing that.
Yes, Win7-8 is known to have such.
Not to mention, Ares ignores that launcher too and uses own as Syringe. _________________ "If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more... QUICK_EDIT
CCHyper, I do not know exactly how it works, but requires that win8 in the game folder was a file ra2(MD).exe. And also requires that the executable file is called game(MD).exe. When this content ra2(MD).exe can be anything, you can even put empty files. But if you do not respect these requirements, then you get a black screen, or the lack of buttons on the menu, it happens even if you use Ares.
All of the above applies only to the Windows 8. QUICK_EDIT
Well, I got it working for RA2 so far, link in OP. I will be posting the one for YR tomorrow. Last edited by thexshadow on Fri Oct 10, 2014 2:58 am; edited 1 time in total QUICK_EDIT
It looks like it works for me? make sure you are using the YR patch and not the RA2. Try removing the RA2 from hacks.yr.ini, it appears to interfere sometime. If it still doesn't work, could you send me your exe? QUICK_EDIT
thexshadow, I said that it works as expected. However, this does not work with NPatch (This hacked gamemd from yr, which adds a lot of new things for mod developers. http://www.ppmsite.com/forum/viewtopic.php?t=29537 ) QUICK_EDIT
Ah, misread. I am looking through it now, it should be working, but it is not. I will have to play with it a bit more. Also, if you are on W8, could you test and see if it works (not npatch). QUICK_EDIT
I know some people have the black screen error, and I wanted to see if this has that problem, or if it had something to do with the yuri.exe QUICK_EDIT
thexshadow, I'll check, but I'm 99% sure that this problem will remain, so I suspect that this check is carried in windows, and not in the game.
Edit: I tested. Not a sensation. Still requires the presence of any file with the name ra2 (md) .exe in the game folder, otherwise you will not see the buttons. Last edited by Glukv48 on Wed Oct 08, 2014 5:02 am; edited 1 time in total QUICK_EDIT
E1 Elite, Maybe you are what that specific compatibility settings in exe file? If you rename a file, the compatibility settings are not copied.
I'm talking about "Right click (game(md).exe, ra2(md).exe) > Properties > Compatiblity" QUICK_EDIT
On original exe with only hex changes for this fix and UAC at never notify setting, result is the same
error on filename change.
Googling gives several reasons, most of them I have tried. I remember it happened for a few arcade
game exe as well on a fresh Win7 installation with same graphics drivers as was on XP. XP doesn't
have this problem. On Win7 both 32/64 bit, it happens with only a few exe files when renamed.
Time permitting, I could try switching to onchip/onboard graphics and removing nVidia drivers
and testing it. QUICK_EDIT
I have a similar problem with my dune2000 patch, i cannot rename dune2000.dat or else it wont start up properly anymore (no drawing). I could fix the drawing problem with a lil fix in the CreateWindow winapi call but the game is still not working properly (runs slow) ... pretty strange stuff Happens only on win8... Really need to find out what is going on there lol QUICK_EDIT
In dune 2000 "VideoBackBuffer=no" also solves the problems for some people, but it is not a perfect solution cause the game doesnt run as good as with the original filename. Also, "VideoBackBuffer=no" does not work for everyone either while running the game with the original filename works perfectly fine for those who have problems with "VideoBackBuffer=no" QUICK_EDIT
Already checked, reg entry LoadAppInit_DLLs is always 0, autoruns show no AppInit dlls etc. Confirmed that
graphics drivers are also not the problem. I even cleaned up all RA2YR entries from registry. Most likely it is
some Win7 security that I can't figure out.
Only a handful of exe has this problem. I can rename TS game.exe to anything, also dune2000.dat can be run
as an exe, no problems there. QUICK_EDIT
If you remove the dependency of ra2.exe and yuri.exe, would that mean you'd be able to create a standalone version of a mod project? _________________ Discord: princess_marisa
Steam QUICK_EDIT
Yes, but it would basically be the same as removing copy protection. (no-cd)
If your mod is for Yuri's you'll still require all the ra2/yr mix files (and other stuffs).
Besides there are current legal limitations to being able to release a stand-alone mod for those games. Speeder has already contacted EA in relation to that.
For personal use all you need to make a mod standalone is just a no-cd patch and the game can run without any registry entries, etc.. You can also remove the need for the files loaded from the CD though some exe hacks. QUICK_EDIT
Yes, but it would basically be the same as removing copy protection. (no-cd)
If your mod is for Yuri's you'll still require all the ra2/yr mix files (and other stuffs).
Besides there are current legal limitations to being able to release a stand-alone mod for those games. Speeder has already contacted EA in relation to that.
For personal use all you need to make a mod standalone is just a no-cd patch and the game can run without any registry entries, etc.. You can also remove the need for the files loaded from the CD though some exe hacks.
It will be stand-alone but it will require running the game as administrator the first time because BLOWFISH.DLL is registered as COM+ object..that DLL is only needed for protected/encrypted MIX files but if missing it will crash the game when it tries to load those kind of MIX files. CCHyper had a hack for TS to make the game load blowfish.dll without requiring administrator rights but he lost it. He didn't remember much when I asked him about how it works, as it's pretty do-able to add all the blowfish.dll code to the game exe itself and remove blowfish.dll completely. On other thing that could be done is loading in your own code to read the MIX protection as I don't think BLOWFISH.DLL reads the whole MIX file, it probably just does something related to encryption. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum