Soldak Home   Drox Operative   Din's Curse   Depths of Peril   Zombasite  

Go Back   Soldak Entertainment Forums > Zombasite > Zombasite modding
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 04-16-2020, 09:47 AM
Dominator Dominator is offline
Amateur
 
Join Date: Nov 2014
Posts: 3
Question 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.
Reply With Quote
  #2  
Old 04-16-2020, 02:35 PM
Shadow's Avatar
Shadow Shadow is offline
Super Moderator
 
Join Date: Jun 2007
Location: Dallas, TX
Posts: 9,413
Default

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.
__________________
Steven Peeler
Designer/programmer
Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, & Drox Operative 2
Patreon
Reply With Quote
  #3  
Old 04-17-2020, 01:28 AM
Dominator Dominator is offline
Amateur
 
Join Date: Nov 2014
Posts: 3
Default

Quote:
Originally Posted by Shadow View Post
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?
Reply With Quote
  #4  
Old 04-17-2020, 03:36 PM
Shadow's Avatar
Shadow Shadow is offline
Super Moderator
 
Join Date: Jun 2007
Location: Dallas, TX
Posts: 9,413
Default

Yeah, I'm not sure you can get around that part. Can you now repair/heal doors/guards at vendors though?
__________________
Steven Peeler
Designer/programmer
Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, & Drox Operative 2
Patreon
Reply With Quote
  #5  
Old 04-18-2020, 08:27 AM
Dominator Dominator is offline
Amateur
 
Join Date: Nov 2014
Posts: 3
Default

Quote:
Originally Posted by Shadow View Post
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.
Reply With Quote
  #6  
Old 04-20-2020, 02:51 PM
Shadow's Avatar
Shadow Shadow is offline
Super Moderator
 
Join Date: Jun 2007
Location: Dallas, TX
Posts: 9,413
Default

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.
__________________
Steven Peeler
Designer/programmer
Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, & Drox Operative 2
Patreon
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:51 AM.


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