The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 871 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 871 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The DLL Project
#1
I'd like to start a discussion thread about this DLL project here.

Firstly, let me inform you about what the "package" contains:
  • A minimally edited gamemd.exe. It includes IcySon55's high resolution YR icon for the looks, as well as a disabled launcher notification (ie it can run without ra2md.exe) and, of course, some DLL loader code and required memory.
    The file is probably not going to be changed any further, since all the other edits are possible using the DLL system.
  • An application currently called "Debugger.exe". It is the new launcher of gamemd.exe that activates the DLL system (running gamemd.exe by itself will run the unmodified game).
    Its name will probably be changed (it's "Debugger" because the app technically acts like one).
    To make Debugger.exe work with gamemd.exe, it has to find a corresponding information file, "Debugger.pdo" (a pdo-file Big Grin 2 ) which is designed specifically for the target executable.
    I made it a raw data format instead of an INI so people will just leave it alone.
    Debugger.exe currently comes with the YR icon and passes any command line argument to gamemd.exe.
  • The C++ wrapper for YR 1.001. Put the files into some folder and add it to the include list in your compiler.
    #include <YRWrapper.h> and you have all you need. More on this later.

A thing we need to discuss is some coding conventions.
Naming shouldn't be a problem, you can simply adapt to my naming scheme I suppose (I will post a sample header/cpp soon which you can comment on).

Inline assembly is a more critical aspect.
It is essential at many parts, although I will try my best to keep it minimal.
Since I'm writing this on MS Visual C++ 6.0 (which is recommended since the game itself was programmed on it), but its way of implementing inline assembly is different to GCC's way (to name one example).

An example.
MSVCPP:
Code:
_asm{mov ecx, [eax+edx*4+0x3C]}
GCC:
Code:
asm("mov ecx, [eax+edx*4+0x3C]");
As you see, GCC uses just "asm" and uses it as a function taking a const char*, so there's no way to make one notation working for both compilers.
Does anyone know of a compiler-directive that can make out the compiler's internal name?

As you might also see, I use the Intel notation, GCC defaults to the AT&T notation.
The notation can be switched with some flag, will dig it out later.

Finally, as Blade proposed, there should be a central repository for DLLs that are considered authentic.
My current RP2 place can be turned into such a place, I think it would be the best idea.
[Image: jsfml.png]
Reply


Messages In This Thread
The DLL Project - by pd - 26.12.2007, 20:37:16
RE: The DLL Project - by TheMan - 26.12.2007, 22:34:40
RE: The DLL Project - by pd - 26.12.2007, 22:53:56
RE: The DLL Project - by Marshall - 28.12.2007, 10:39:11
RE: The DLL Project - by Renegade - 27.12.2007, 21:37:39
RE: The DLL Project - by MCV - 28.12.2007, 20:47:59
RE: The DLL Project - by gordon-creAtive - 28.12.2007, 23:11:24
RE: The DLL Project - by pd - 29.12.2007, 21:48:17
RE: The DLL Project - by TheMan - 29.12.2007, 22:26:11
RE: The DLL Project - by Electro - 29.12.2007, 22:27:42
RE: The DLL Project - by Marshall - 29.12.2007, 22:57:40
RE: The DLL Project - by pd - 29.12.2007, 23:06:56
Rather offtopic but... - by gordon-creAtive - 29.12.2007, 23:38:39
RE: The DLL Project - by TX1138 - 30.12.2007, 00:54:11
RE: The DLL Project - by Guest - 30.12.2007, 02:29:35
RE: The DLL Project - by Blade - 30.12.2007, 18:25:46
RE: The DLL Project - by MCV - 30.12.2007, 19:10:44
RE: The DLL Project - by pd - 30.12.2007, 19:52:00
RE: The DLL Project - by gordon-creAtive - 31.12.2007, 15:26:51
RE: The DLL Project - by pd - 07.01.2008, 12:31:49
RE: The DLL Project - by Blade - 07.01.2008, 14:49:55
RE: The DLL Project - by gordon-creAtive - 07.01.2008, 17:27:50
RE: The DLL Project - by pd - 07.01.2008, 19:22:08
RE: The DLL Project - by gordon-creAtive - 07.01.2008, 20:21:46
RE: The DLL Project - by pd - 07.01.2008, 22:22:46
RE: The DLL Project - by Marshall - 07.01.2008, 22:40:33
RE: The DLL Project - by Bachsau - 10.01.2008, 23:54:22
RE: The DLL Project - by Guest - 11.01.2008, 10:59:41
RE: The DLL Project - by DCoder - 11.01.2008, 11:08:00
RE: The DLL Project - by pd - 16.01.2008, 16:03:16
RE: The DLL Project - by pd - 18.01.2008, 11:31:34
RE: The DLL Project - by MCV - 18.01.2008, 17:36:08
RE: The DLL Project - by DCoder - 18.01.2008, 20:12:09
RE: The DLL Project - by pd - 18.01.2008, 20:40:52
RE: The DLL Project - by DCoder - 19.01.2008, 10:00:31
RE: The DLL Project - by pd - 19.01.2008, 12:50:39
RE: The DLL Project - by pd - 11.02.2008, 02:58:43
RE: The DLL Project - by Marshall - 11.02.2008, 10:52:08
RE: The DLL Project - by pd - 12.02.2008, 11:32:14
RE: The DLL Project - by Black Shadow 750 - 12.02.2008, 11:48:08
RE: The DLL Project - by TheMan^ - 19.02.2008, 17:38:29
RE: The DLL Project - by gordon-creAtive - 20.02.2008, 18:47:22
RE: The DLL Project - by DCoder - 20.02.2008, 20:09:38
RE: The DLL Project - by Guest - 27.02.2008, 23:00:59
RE: The DLL Project - by gordon-creAtive - 28.02.2008, 20:29:45
RE: The DLL Project - by pd - 28.02.2008, 21:52:14
RE: The DLL Project - by Blade - 29.02.2008, 00:34:45
RE: The DLL Project - by pd - 29.02.2008, 00:41:54
RE: The DLL Project - by Bobingabout - 29.02.2008, 11:16:07
RE: The DLL Project - by Guest - 23.03.2008, 18:09:34
RE: The DLL Project - by pd - 06.04.2008, 12:52:28
RE: The DLL Project - by Marshall - 06.04.2008, 13:16:05
RE: The DLL Project - by gordon-creAtive - 06.04.2008, 14:45:59
RE: The DLL Project - by pd - 06.04.2008, 19:49:39
RE: The DLL Project - by DCoder - 06.04.2008, 21:04:14
RE: The DLL Project - by pd - 08.04.2008, 08:30:22
RE: The DLL Project - by pd - 10.04.2008, 22:46:34
RE: The DLL Project - by Marshall - 10.04.2008, 23:35:03
RE: The DLL Project - by Bobingabout - 11.04.2008, 10:09:57
RE: The DLL Project - by pd - 11.04.2008, 10:54:10
RE: The DLL Project - by Marshall - 11.04.2008, 18:49:35
RE: The DLL Project - by pd - 11.04.2008, 19:41:23
RE: The DLL Project - by pd - 28.04.2008, 14:00:02
RE: The DLL Project - by Guest - 18.05.2008, 20:56:51
RE: The DLL Project - by pd - 18.05.2008, 20:59:24
RE: The DLL Project - by Dupl3xxx - 20.05.2008, 16:37:47
RE: The DLL Project - by gordon-creAtive - 26.06.2008, 15:38:57
RE: The DLL Project - by pd - 27.06.2008, 00:18:57
RE: The DLL Project - by MRMIdAS - 27.06.2008, 04:20:48
RE: The DLL Project - by gordon-creAtive - 27.06.2008, 00:25:20
RE: The DLL Project - by gordon-creAtive - 27.06.2008, 09:34:04
RE: The DLL Project - by gravity20m - 06.02.2009, 00:55:51
RE: The DLL Project - by MRMIdAS - 06.02.2009, 01:32:25
RE: The DLL Project - by Guest - 06.02.2009, 13:22:36
RE: The DLL Project - by new guy - 30.06.2009, 02:47:31
RE: The DLL Project - by MRMIdAS - 30.06.2009, 03:49:53
RE: The DLL Project - by hogo - 01.07.2009, 12:07:21
RE: The DLL Project - by Nikademis Von Hisson - 27.08.2009, 12:49:14
RE: The DLL Project - by Lt Albrecht - 28.08.2009, 19:32:07



Users browsing this thread: 1 Guest(s)