Posts: 115
Threads: 21
Joined: Jan 2017
Reputation:
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???
Posts: 95
Threads: 4
Joined: Dec 2016
Reputation:
6
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.
Posts: 115
Threads: 21
Joined: Jan 2017
Reputation:
1
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.
Posts: 54
Threads: 0
Joined: Dec 2016
Reputation:
0
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.
Posts: 54
Threads: 0
Joined: Dec 2016
Reputation:
0
I managed to mangle the function names correctly. The example is almost done.
Posts: 54
Threads: 0
Joined: Dec 2016
Reputation:
0
Done. Check the private message.