[PlugY 14] PlugY.ini into mpq

Discuss applications of D2Mod (v1.10), NefEx (v1.11+), and PlugY, and post suggestions for future plugins.

Moderators: Nefarius, Yohann, SVR

Post Reply
User avatar
borg
Posts: 51
Joined: Mon Jun 10, 2002 3:52 pm
Location: taiwan
Contact:
Taiwan

[PlugY 14] PlugY.ini into mpq

Post by borg » Sun Apr 11, 2021 6:56 pm

If you don't want players to change plugy settings, you can put plugy.ini into mpq. But it seems that way doesn't work for the latest release.
After several testing, PlugY.ini has to be outside of mpq to work properly. I wonder it's a new feature for plugy 14 or there is another way to put plugy.ini into mpq for real effect?

Texalic
Junior Member
Paladin
Posts: 149
Joined: Sat Mar 10, 2018 9:09 am

Re: [PlugY 14] PlugY.ini into mpq

Post by Texalic » Mon Apr 12, 2021 3:14 pm

"Now, the PlugY folder must be in the same directory as PlugY.ini (so in the mod folder)."

So I would say that in mpq with plugy ini you also need to include plugy folder.

User avatar
borg
Posts: 51
Joined: Mon Jun 10, 2002 3:52 pm
Location: taiwan
Contact:
Taiwan

Re: [PlugY 14] PlugY.ini into mpq

Post by borg » Sat Apr 17, 2021 8:53 am

Texalic wrote:
Mon Apr 12, 2021 3:14 pm
"Now, the PlugY folder must be in the same directory as PlugY.ini (so in the mod folder)."
So I would say that in mpq with plugy ini you also need to include plugy folder.
Well, this is how I did:
ext/dmzx/imageupload/files/e8c33efd9537 ... 9f0883.png
plugy folder in patch_d2.mpq and plugy.ini in plugy folder.
Even though in mpq I took ini out of folder, plugy still has no effect. :-|

Texalic
Junior Member
Paladin
Posts: 149
Joined: Sat Mar 10, 2018 9:09 am

Re: [PlugY 14] PlugY.ini into mpq

Post by Texalic » Sat Apr 17, 2021 11:32 am

I think it should be like this.

Patch_d2.mpq
- data
-plugy folder as it is
Directly inside patch_d2.mpq there should be plugy.ini and plugy.dll

What did you do with plugy dll.

Of course, you won't have plugy files outside patch_d2.mpq.

User avatar
kain_abel_666
Posts: 68
Joined: Fri Apr 03, 2020 12:13 pm
Location: Canada
Canada

Re: [PlugY 14] PlugY.ini into mpq

Post by kain_abel_666 » Sat Apr 17, 2021 11:45 am

Texalic wrote:
Sat Apr 17, 2021 11:32 am
I think it should be like this.

Patch_d2.mpq
- data
-plugy folder as it is
Directly inside patch_d2.mpq there should be plugy.ini and plugy.dll

What did you do with plugy dll.

Of course, you won't have plugy files outside patch_d2.mpq.
I am 99.9% sure you cannot run a DLL from inside an mpq.
I've stayed quite a while and heard what you have to say. Now it is time for the real Kain to emerge.

User avatar
borg
Posts: 51
Joined: Mon Jun 10, 2002 3:52 pm
Location: taiwan
Contact:
Taiwan

Re: [PlugY 14] PlugY.ini into mpq

Post by borg » Sat Apr 17, 2021 2:59 pm

Texalic wrote:
Sat Apr 17, 2021 11:32 am
I think it should be like this.
Patch_d2.mpq
- data
-plugy folder as it is
Directly inside patch_d2.mpq there should be plugy.ini and plugy.dll
What did you do with plugy dll.
I just tested the same approach as what you think.....and didn't work.
Take a look....
https://imgur.com/j5i28c1
Thanks for your reply anyway.

Texalic
Junior Member
Paladin
Posts: 149
Joined: Sat Mar 10, 2018 9:09 am

Re: [PlugY 14] PlugY.ini into mpq

Post by Texalic » Sat Apr 17, 2021 5:44 pm

After a little bit of research :mrgreen:

@kain_abel_666

Well, it can be only loaded if there is a way for those dlls to be loaded, like d2mod.ini e.g. in Genesis mod is like that.

@borg

Yeah, had to test it by myself, it doesn't load, if I try older version it does load then.

Maybe "Now, the PlugY folder must be in the same directory as PlugY.ini (so in the mod folder)." i.e. "so in the mod folder" really means that.

Though maybe @Yohann could answer that, you can ask him.

And besides, everyone knows how to use mpq editor, so I guess they will extract your file and change plugy ini settings anyway. :mrgreen:

strafano
Posts: 92
Joined: Mon Feb 19, 2018 12:43 am
Italy

Re: [PlugY 14] PlugY.ini into mpq

Post by strafano » Thu Mar 16, 2023 11:57 pm

Sorry for reviving this bit old thread...Did anyone finally find a solution for inserting plugY files into mpq? I myself tried made several attempts but with no luck.

:cry:

User avatar
ChaosMarc
Dark Alliance Beta Test
Champion of the Light
Posts: 256
Joined: Fri May 28, 2004 2:00 pm
Germany

Re: [PlugY 14] PlugY.ini into mpq

Post by ChaosMarc » Fri Mar 24, 2023 4:13 pm

This was not done for plugy but @Onyx managed to put some of the d2mod system dlls into his back to hellfire mpq. The mod came with a custom exe though that is probably handling this. IIRC the files even are extracted temporarily at runtime

Image

Post Reply

Return to “PlugY|NefEx|D2Mod”