Adding own DLLs or edit existing DLLs??? - Printable Version +- BaW Forum (http://bawsite.com/forum) +-- Forum: Black & White Discussion (http://bawsite.com/forum/forumdisplay.php?fid=3) +--- Forum: Modding (http://bawsite.com/forum/forumdisplay.php?fid=11) +--- Thread: Adding own DLLs or edit existing DLLs??? (/showthread.php?tid=62) |
Adding own DLLs or edit existing DLLs??? - Kratzean - 12-10-2017 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??? RE: Adding own DLLs or edit existing DLLs??? - Lant - 12-12-2017 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. RE: Adding own DLLs or edit existing DLLs??? - Kratzean - 03-19-2019 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. RE: Adding own DLLs or edit existing DLLs??? - . - 03-20-2019 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. RE: Adding own DLLs or edit existing DLLs??? - Kratzean - 03-21-2019 (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. RE: Adding own DLLs or edit existing DLLs??? - . - 03-21-2019 I managed to mangle the function names correctly. The example is almost done. RE: Adding own DLLs or edit existing DLLs??? - . - 03-23-2019 Done. Check the private message. |