Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] The Source Code → D2GS and mod

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 19

1

Topic: D2GS and mod

Hello greetings to the whole community.

I have spent many years dedicated to this game and its emulator, but now I have a problem with my mod.

Everything works perfectly in open, but when I install the dll of my mod "D2GS" does not recognize it and it does not work.

How should it be done so that "D2GS" recognizes the mod and its dll. ???

Use D2cs 1.13d and the latest version of PvPgn pro.

Thanks and greetings to all.

2

Re: D2GS and mod

What Mod? What DLL? Send here the D2GS Error Logs...

3

Re: D2GS and mod

Feofilaktt wrote:

What Mod? What DLL? Send here the D2GS Error Logs...


There is no error, the server works perfectly, simply the dll does not work in batle.net closed

Dll = BaseMod.dll + BaseMod.ini  = no work

In open or single player it works well.

PvPgn,D2CS,D2dbs, D2gs - works perfectly = You can play perfectly, but the mod does not work because it does not load the mod dll.

A fellow from years ago called VillagueIdiot, in version 1.10 I modified the d2gs to make the dll work, but this champion disappeared and I can't get in touch with him, to explain how he did it. sad

4

Re: D2GS and mod

I understand, D2GS really isn't calling this DLL, because in open mode D2GS is not used to manage, so it should work normally with your Local Diablo 2. Already in closed mode who manages is D2GS itself that is not prepared to call your DLL.

5

Re: D2GS and mod

I don't think that basemod supports D2GS... You'll have to mod the game by yourself.

6

Re: D2GS and mod

Feofilaktt wrote:

I understand, D2GS really isn't calling this DLL, because in open mode D2GS is not used to manage, so it should work normally with your Local Diablo 2. Already in closed mode who manages is D2GS itself that is not prepared to call your DLL.

Exactly, what I want is to know how to make D2gs call the dll to compile it or in your case someone who knows how to do it, I would greatly appreciate it.

hehpe wrote:

I don't think that basemod supports D2GS... You'll have to mod the game by yourself.

All the mods are supported by d2gs, I know from experience since 1.09, what I don't know how it is done and as I commented above the partner who made it "VillagueIdiot" for a long time that nothing is known about him.
One thing is that D2gs loads an .mpq file and another very different is that it loads a Dll.
Thx

The only thing I pretend to know is how D2gs does to call the DLL
When I built AragorMod in version 1.09, when it was updated at 1.11 and later at 1.12 the modifications in the D2gs and close realm were made by "VillagueIdiot" and I do not have the source code sad

Of there is that it asks for help to be able to realize it myself or in his case somebody that would like to help me. xD

7 (edited by hehpe 31.08.2019 10:20)

Re: D2GS and mod

Basemod was created by @devurandom from PK ... I had a talk about that recently with him and he said

 I think you have to use a different loader to load basemod than the one that comes packaged with it.

So you'll need the source to change the loader(game.exe) which is not included by the creator. That's why I said it's better to make your mod by yourself if you have any c++ /asm knowlegde.
As for the mod you're trying to run most of the plugins for 1.10 modding are not available for 1.13. That's the other reason you might not be able to port your mod to 1.13.

8

Re: D2GS and mod

hehpe wrote:

I think you have to use a different loader to load basemod than the one that comes packaged with it.


In his last article, the mod worked perfectly in all versions, as he commented in his FK post.
PK forum --->viewtopic.php?t=65492 ^^

As you can see in this image, running in version 1.13d.

The problem is simple! does anyone know how to add a dll to D2GS?
Because the rest of the functions of the dll do work, color, animate, etc ........

9 (edited by hehpe 01.09.2019 01:25)

Re: D2GS and mod

zysus wrote:

.....

You still don't get what I am trying to explain to you... You don't modify the D2GS to run custom mods or dll's. Basemod.dll is compilation of code plugins but uses game.exe as a loader and that's why you can't use it with D2GS.  I guess you're trying to use basemod with custom dll's on your d2gs.
You need to find the plugins that you want to use and then add them in D2template and patch/make your own dll's in visual studio.

10

Re: D2GS and mod

hehpe wrote:
zysus wrote:

.....

You still don't get what I am trying to explain to you... You don't modify the D2GS to run custom mods or dll's. Basemod.dll is compilation of code plugins but uses game.exe as a loader and that's why you can't use it with D2GS.  I guess you're trying to use basemod with custom dll's on your d2gs.
You need to find the plugins that you want to use and then add them in D2template and patch/make your own dll's in visual studio.

Ahhhhhhhhh !! That is something else, in your previous post I did not understand.
In a nutshell, what I have to do is not to modify the D2gs, but to modify the fog.dll or the win.dll so that it calls the functions of the game.exe of basemod.dll, that way it will load the modifications made in the dlls of the game. And so you don't have to play the D2gs ......

Thank you, now I will get to it.

11

Re: D2GS and mod

Rename warden.dll to basemod.dll

That should get the D2GS to load in your new .DLL

or modify D2Win.dll to load your custom .DLL

Check out Diablo09.com and join our Diablo II Private Server!

12

Re: D2GS and mod

Kieran wrote:

Rename warden.dll to basemod.dll

That should get the D2GS to load in your new .DLL

How is it? Could you explain this action better?

13

Re: D2GS and mod

Kieran wrote:

Rename warden.dll to basemod.dll

That should get the D2GS to load in your new .DLL

It doesn't work that way, Parts of the file works, new animated colors, weapons and items etc, new portals and automatic collection do not work, however in single player everything works perfectly

Kieran wrote:

modify D2Win.dll to load your custom .DLL

Some tutorial explaining how to add xxx.dll - xxx.ini - xxx.exe ??? to D2Win.dll for D2gs to load it automatically

14 (edited by hehpe 04.09.2019 00:19)

Re: D2GS and mod

As I said countless times you can't use the custom dll function of basemod in D2GS. You can get the mods you want by using D2template or hex edit.
Check this code editing guide: https://drive.google.com/file/d/1ive9gV … 5q29r/view

15

Re: D2GS and mod

zysus wrote:
Kieran wrote:

Rename warden.dll to basemod.dll

That should get the D2GS to load in your new .DLL

It doesn't work that way, Parts of the file works, new animated colors, weapons and items etc, new portals and automatic collection do not work, however in single player everything works perfectly

Kieran wrote:

modify D2Win.dll to load your custom .DLL

Some tutorial explaining how to add xxx.dll - xxx.ini - xxx.exe ??? to D2Win.dll for D2gs to load it automatically

You have to enable warden of course.

Check out Diablo09.com and join our Diablo II Private Server!

16

Re: D2GS and mod

Kieran wrote:

You have to enable warden of course.

Activating warden is a problem since it expels you from the game every 10 seconds and does not let initialize the d2cs

Another solution is to modify the fog dll and add the execution code of the xxx.dll file .................

What I'm trying, if I solve it, I'll leave here the way to do it. although modification of the code is needed so that in theory it works.

I also receive suggestions on modifying the xD code

17

Re: D2GS and mod

zysus wrote:
Kieran wrote:

You have to enable warden of course.

Activating warden is a problem since it expels you from the game every 10 seconds and does not let initialize the d2cs

Another solution is to modify the fog dll and add the execution code of the xxx.dll file .................

What I'm trying, if I solve it, I'll leave here the way to do it. although modification of the code is needed so that in theory it works.

I also receive suggestions on modifying the xD code

Sorry you misunderstood me, rename basemod.dll to warden.dll and then activate warden.

It then loads in basemod

Check out Diablo09.com and join our Diablo II Private Server!

18

Re: D2GS and mod

Kieran wrote:

Sorry you misunderstood me, rename basemod.dll to warden.dll and then activate warden.

It then loads in basemod


Sorry you misunderstood me:
if I do that the D2CS server does not start, it always remains in queue of 1 waiting.





----------------------------------------------------------------------
]Is it possible to load a dll from d2gs.script????????????????
----------------------------------------------------------------------

Added: 08.09.2019 14:46

There are functions that are not executed.

Post's attachments

Attachment icon Sin-título.gif 270.73 kb, 2 downloads since 2019-09-08 

19

Re: D2GS and mod

zysus wrote:
Kieran wrote:

Sorry you misunderstood me, rename basemod.dll to warden.dll and then activate warden.

It then loads in basemod


Sorry you misunderstood me:
if I do that the D2CS server does not start, it always remains in queue of 1 waiting.





----------------------------------------------------------------------
]Is it possible to load a dll from d2gs.script????????????????
----------------------------------------------------------------------

Added: 08.09.2019 14:46

There are functions that are not executed.


Any advance? I found a D2GS that runs D2mod.dll, but I still only try to include BaseMod in D2GS. If possible of course.

Posts: 19

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 0 guests, 0 registered users

forums.pvpgn.pro → [EN] The Source Code → D2GS and mod