Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding own DLLs or edit existing DLLs???
#1
Like the ddraw.dll file of the Graphics Mod Manager, is there another DLL file the game can read automatic?

Because I want to implement for my mods, like the extra land heights some changes into a own DLL file for permamament usings (perhaps like the graphics mod with own comands in a text file...).
Perhaps it's possible, to edit a existing dll file (like multiplayer.dll or LHDialogLib.dll), to implement some commands with the start of the game???
Reply
#2
Hi
Sorry, did not answer earlier, was busy.
Well, it may look like ddraw.dll was not used by the game before, but actually it was. It was (and is) in the system folder. BaW Graphics Mod Manager uses the ddraw.dll in that folder, redirecting the game requests there and altering them a bit. But you need to know the functions and their parameters of the original file.
You can rename an original .DLL file of the game, create own one and make it redirect game requests to the renamed file. You can make your .DLL additionally make the needed changes in the memory of the game.

It is planned to add a feature to BaW Mod Manager that would allow to load custom user .DLL files, it would add an easy way to access the game memory.
Reply
#3
I know, it's a year ago, but I don't find the correct informations, how I can do this. I want to use a existing dll file (like LHDialogLib.dll), write some code in a own version of this dll file and make a redirect to the original (but renamed) file (for example LHDialogLib2.dll).

But I never made a dll file and also never a redirect to another dll-file.
Reply
#4
I tried to make an example, but there were problems about mangling the function names the same way they are in the original file. It could be easier with ddraw.dll, it has clean function names.
Reply
#5
(03-20-2019, 23:05). Wrote: I tried to make an example, but there were problems about mangling the function names the same way they are in the original file. It could be easier with ddraw.dll, it has clean function names.

Yes, you're right. But you are using the ddraw.dll for your Graphics mod manager.
Reply
#6
I managed to mangle the function names correctly. The example is almost done.
Reply
#7
Done. Check the private message.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)