Page 1 of 1

Robins continuous thread, all kinds of topics

Posted: Tue Nov 06, 2018 8:40 am
by linkert
I have lots of questions and opening up new posts for each questions seems unpopular. So I've decided to convert this thread to a continuous thread where I post all my questions. I always try searching for answers before I ask questions. I do look through the Knowledge Base in search for answers but it's not always so clear.

:mrgreen: :arrow: Please look towards end of thread for most recent discussions :mrgreen: :arrow:


Previous thread name: "Scrolls to stack themselves upon purchase"

Greetings!

Oddly enough It has taken me 15 years of on and off with D2LOD to start researching D2 modding, I've read the beginners PDF and I'm feeling pumped!

So i thought I'd start off with a small change. I want to remove the Tome of Town portal because I find it odd to tare out pages out of a book and inserting rolled up scrolls into it once it's empty. I want regular Scroll of Town portal to be stackable.

Went into misc.txt and managed to have it be stackable but it does not stack automatically when I purchase from vendor. They end up one by one in the inventory and I'm forced to stack them myself. It should behave like the key where they stack onto itself until it has reached max quantity. Ideas?

Edit: 1.14d

Thanks
Robin

Re: Scrolls to stack themselves upon purchase

Posted: Tue Nov 06, 2018 9:20 am
by Nizari
Compare your rows with rows of "key". You can't do anything more without code edit. If you want to display the quantity of scrolls in stack, you have to add spelldesc.

Let me advice you something out of the topic. If you are sure you want to get yourself into modding permanently, then I HIGHLY recommend to choose 1.10 or 1.13c game version to work with.

Re: Scrolls to stack themselves upon purchase

Posted: Tue Nov 06, 2018 9:36 am
by Necrolis
The auto-stacking for scrolls and scrolls into books is actually hardcoded; what might be better is changing all the books to look like their corresponding scrolls, and removing the normal scrolls from dropping (I think that books will auto stack with books, been a while since I have checked this; else you will need to stack them manually which means you are back to square one. In which cause you might find it easier to change the visuals so they aren't books.)

Re: Scrolls to stack themselves upon purchase

Posted: Tue Nov 06, 2018 10:21 am
by linkert
Nizari wrote:
Tue Nov 06, 2018 9:20 am
Compare your rows with rows of "key". You can't do anything more without code edit. If you want to display the quantity of scrolls in stack, you have to add spelldesc.

Let me advice you something out of the topic. If you are sure you want to get yourself into modding permanently, then I HIGHLY recommend to choose 1.10 or 1.13c game version to work with.
Yup, I realized this.

Thing is, blizzard have done something as they released 1.14 which makes things harder to roll back as the usual swapping of game.exe and then running patch installer will cause d2data corruption error. I'll look into it and I see people suggesting to mod for older versions but less explaining why you would want to run older patches.
Necrolis wrote:
Tue Nov 06, 2018 9:36 am
The auto-stacking for scrolls and scrolls into books is actually hardcoded; what might be better is changing all the books to look like their corresponding scrolls, and removing the normal scrolls from dropping (I think that books will auto stack with books, been a while since I have checked this; else you will need to stack them manually which means you are back to square one. In which cause you might find it easier to change the visuals so they aren't books.)
Tried it, tomes does not diapare when they reach quantity 0 which is an issue. I'll have to put this mod on hold for now until I'm cofortable with modifying the code.

Re: Scrolls to stack themselves upon purchase

Posted: Tue Nov 06, 2018 10:29 am
by Ogodei
Yes. I heard that 1.14 made downgrading harder. Recently I happened to point out a simple few steps to get two functional D2 folders (one for modding, one for playing official battle.net). See if it helps you.
https://d2mods.info/forum/viewtopic.php?f=8&t=65510

Re: Robins continuous thread, all kinds of topics

Posted: Tue Nov 06, 2018 3:22 pm
by Necrolis
linkert wrote:
Tue Nov 06, 2018 10:21 am
Thing is, blizzard have done something as they released 1.14 which makes things harder to roll back as the usual swapping of game.exe and then running patch installer will cause d2data corruption error. I'll look into it and I see people suggesting to mod for older versions but less explaining why you would want to run older patches.
This is due to the MPQ's, GalaxyHaxz has a fix for this on the forums.
linkert wrote:
Tue Nov 06, 2018 10:21 am
Tried it, tomes does not diapare when they reach quantity 0 which is an issue. I'll have to put this mod on hold for now until I'm cofortable with modifying the code.
Yeah, that is one issue. Unfortunately the way D2 does stackable items is very brittle.