Soldak Entertainment Forums

Soldak Entertainment Forums (http://www.soldak.com/forums/index.php)
-   Zombasite modding (http://www.soldak.com/forums/forumdisplay.php?f=39)
-   -   Town doors and guards (http://www.soldak.com/forums/showthread.php?t=38432)

Dominator 04-16-2020 09:47 AM

Town doors and guards
 
Hello. I need help in making town doors repairable and gate guards revivable. I saw only one thread on that topic from around 2016 and it still has no answers. Honestly, I have little idea where should I start with this, since I haven't done any mods, any help is appreciated. Doors are in higher priority. I'll explain my point of view : if doors were some kind of resource or material (you find wood, build doors, install them, rebuild with wood if damaged, build new ones from wood etc.) that would make sense, broken - lost. But since they are being acquired from drops, have rarity, stats etc. they are more like artifact or gear, loosing them and throwing them out on 0 durability doesn't make much sense to me. Say you very rare door broken, would you just throw it away? To me it's only makes sense to repair/rebuild it from it's "leftovers" especially considering game reality.

Shadow 04-16-2020 02:35 PM

In general you need to change the value for CantBeRepaired to 0 in the appropriate database entries. You can find that in BaseItemDoor entry in Database/doors.gdb and in BaseGuard entry in Database/guards.gdb.

Dominator 04-17-2020 01:28 AM

Quote:

Originally Posted by Shadow (Post 85961)
In general you need to change the value for CantBeRepaired to 0 .

Ah, thanks alot. Found those two files in assets 001 and 004. For some reason in 001 there was no "CantBeRepaired" string in "doors" file, but it was in "guards" file. I added it, just in case(did I have to, though?). And made it "0" everywhere. So now instead of showing "Can't be repaired" when I'm applying armor scraps or grindstones it says "Can be used only on armors/weapons" accordingly. How do I specify material it can be repaired with? Or do I need to attach them to armor/weapon item type somehow?

Shadow 04-17-2020 03:36 PM

Yeah, I'm not sure you can get around that part. Can you now repair/heal doors/guards at vendors though?

Dominator 04-18-2020 08:27 AM

Quote:

Originally Posted by Shadow (Post 85965)
Yeah, I'm not sure you can get around that part. Can you now repair/heal doors/guards at vendors though?

Oh well, took me some time to find vendors, but eventually I managed to gather 3 (sword, axe, shield), and non of them seem to have an option for repair, like they do have in Din's curse, as far as I remember. So basically you can't repair anything, even their "native" items. That's a bummer...

Is there really nothing I could do? Like, it would seem natural to attach armor scraps to doors atleast, since they drop from doors on dismantling.

Shadow 04-20-2020 02:51 PM

The armor/weapon specific stuff is in code so that's why I suggested the vendor route (I forgot that vendors didn't repair in Zombasite).

You should be able to make vendors repair though by adding
CanRepairItems 1
to the ArchetypeNpcWanderingVendor entry in Database\Monsters\npcArchetypes.gdb though.


All times are GMT -4. The time now is 06:32 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2007 - 2019 Soldak Entertainment, Inc.