Why dos D2AddSkill.dll can' save the skill?

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
huohuowu2
Junior Member
Paladin
Posts: 123
Joined: Sat Feb 28, 2015 4:20 am
China

Why dos D2AddSkill.dll can' save the skill?

Post by huohuowu2 » Wed Feb 28, 2018 3:38 am

I had use D2AddSkill.dll and this was working.
But when i out the game ,the char haven't save the new skill.
What's this wrong?

User avatar
HarvestWombs
Senior Moderator
Angel
Posts: 944
Joined: Wed May 25, 2011 11:50 pm
United States of America

Re: Why dos D2AddSkill.dll can' save the skill?

Post by HarvestWombs » Wed Feb 28, 2018 8:06 am

Without more information, I can only assume you are adding skills that are not assigned to the character in skills.txt. IIRC you can only add skills that have have the respective charclass assigned (ex sorc, firebolt) and not (pal, firebolt)
Official Phrozen Keep Discord
Common Modding tools: link
My Resource Packs: link

User avatar
Necrolis
Site Admin
Throne
Posts: 8987
Joined: Sat Mar 25, 2006 1:22 pm
Location: The Land of the Dead
Contact:
South Africa

Hand-picked

Re: Why dos D2AddSkill.dll can' save the skill?

Post by Necrolis » Wed Feb 28, 2018 10:38 am

Characters can only save skills for which they have been allocated in skills.txt, this is because the savefile needs to have a fixed number of slots. Only way to fix this is to recode the section of code that reads and writes skills (very easy to do, relatively though).
Image
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal

User avatar
huohuowu2
Junior Member
Paladin
Posts: 123
Joined: Sat Feb 28, 2015 4:20 am
China

Re: Why dos D2AddSkill.dll can' save the skill?

Post by huohuowu2 » Wed Feb 28, 2018 2:43 pm

Thank you.
It's work right now.

Post Reply

Return to “PlugY|NefEx|D2Mod”