Jump to content

Get Nailed! a17 Modlet


Khelldon

Recommended Posts

This modlet has moved

View and Download this modlet from here:

https://7daystodie.com/forums/showthread.php?99776-Khelldon-s-Modlets

 

 

 

Get Nailed!

This is a very simple modlet that adds nails to more of the wooden items in the game that 'should' have nails as part of their recipes.

 

Features:

- Adds nails to most wooden blocks recipes

- Adds Bent Nails into the game

- Adds Crowbar into the game

- Wood blocks require nails to repair when damaged

- Get nails from harvesting wood blocks. Use claw hammer or crowbar to get good nails, use anything else, get bent nails.

- Amount of nails found in loot doubled

- Straighten bent nails out via recipe

 

IMPORTANT: Since I'm not sure how to use xpath to write localization, you'll need to copy these few lines into your 7 Days To Die directory at the bottom of the text file: "/Data/Config/Localization.txt" in order for the new "Bent Nails" and "Crowbar" to have a proper name and description. You can open this file with any text editor.

resourceNailBent,items,Item,KgNone,Bent Nails,,,,,
resourceNailBentDesc,items,Item,KgNone,"You have some bent nails, you can probably straighten them out.",,,,,
khelldonCrowbar,items,Tool,KgNone,Crowbar,,,,,
khelldonCrowbarDesc,items,Tool,KgNone,"Great for disassembling mechanical devices. Can take nails out of wooden blocks without damaging them. Can also be used to repair and upgrade walls.\nRepair with Forged Steel.",,,,,

The modlet will function correctly without adding these lines, it just will not look nice :D

 

 

 

 

Download:

Khelldon-GetNailed Google Drive (recommended)

Khelldon-GetNailed Github Repo (advanced)

 

 

 

Notes:

- I highly encourage that you edit this modlet to suit your own needs. I left some comments in the code to help anyone editing it to understand what everything is doing and how to change things.

 

- This modlet was designed to work with vanilla a17.x.x and may cause some conflicts with any mods or modlets that add or alter wooden blocks in the game. It was designed to dynamically find recipes and change them, so in theory it should work no matter what recipes are added or changed, however, there are always exceptions and I think it's worth noting that it's something to look out for if problems arise.

 

- Feel free to use this modlet as you like. If you want to copy or edit or redistribute it please feel free to do so without worrying about credit.

 

- This modlet has not been tested fully. Please report any problems.

 

 

 

 

Thank you:

Thank you Sphereii for a great xpath tutorial that taught me everything I know about xpath.

Thanks to StompyNZ and Doombringer101 for coming up with most of the ideas for this modlet.

Thank you Guppycur for motivating me to make this. :D

 

 

Link to comment
Share on other sites

This mod is so damn awesome... Changes everything...

 

...first time I played, I came across a trailer park, was going to nerd Pole up to the roof of a trailer, but had no nails... I actually had to play the game!

 

Started a new server, and it was day 3 by the time I could make nails (base was forge house) to even begin building a defensible position... Hell, the damn quest chain took all day... Sitting tearing apart a house going for bent nails...

Link to comment
Share on other sites

Thanks Guys! :D

 

Just updated this mod to 1.0.1.

 

Update Features:

- Wooden doors added into the mix of things that need nails

- Ugly bent nail icon updated with a better one

- Crowbar added with same properties as wrench. Works to disable cars, also works with blocks to get nails back. Added to tool spawners and will spawn in cars from time to time. Also you can craft your own with forged steel in the workbench.

- Changed craft time on nails from bent nails to replicate having to pound them out.

 

note: Crowbar requires localization too, please check the original post for code.

Link to comment
Share on other sites

Thanks Guys! :D

 

Just updated this mod to 1.0.1.

 

Update Features:

- Wooden doors added into the mix of things that need nails

- Ugly bent nail icon updated with a better one

- Crowbar added with same properties as wrench. Works to disable cars, also works with blocks to get nails back. Added to tool spawners and will spawn in cars from time to time. Also you can craft your own with forged steel in the workbench.

- Changed craft time on nails from bent nails to replicate having to pound them out.

 

note: Crowbar requires localization too, please check the original post for code.

 

Oh nice. I have your mod installed. I was upgrading a broken wood block in one of the dungeon type houses where it had slits from damage it turns to a woodframe then upgraded to a normal wood block any chance we can use nails on that to please

Link to comment
Share on other sites

Oh nice. I have your mod installed. I was upgrading a broken wood block in one of the dungeon type houses where it had slits from damage it turns to a woodframe then upgraded to a normal wood block any chance we can use nails on that to please

 

Ah ha! Thanks! I knew there would be a few blocks that didn't make the cut. I'll work on finding those.

 

Hammers damage wood so slowly they're not worth using to get unbent nails, FYI.

 

Yeah I wasn't too sure what to do about that. I didn't want to make the hammer do too much damage to wood as it makes no sense. Then you could use it as an axe. The crowbar does a better job but it's still not great. Is there a way you know of to have the weapon only damage wood that has nails, and not all wood?

 

GetNailed mod posts the following warnings on gamestart.

 

WRN Sprite ._khelldonCrowbarIcon has incorrect resolution 8*8, expected 116*80

WRN Sprite ._resourceNailBentIcon has incorrect resolution 8*8, expected 116*80

 

hmmm very strange. Those icon are 116*80. Not sure why it's saying they aren't. They do show up in game.

Link to comment
Share on other sites

The icons show when looting and in inventory for me even with the warning

 

However, the actual item does not appear when using it in your hands and I see this additional error in the console

 

The file can not be loaded because it was created for another build target that is not compatible with this platform.

Please make sure to build AssetBundles using the build target platform that it is used by.

File's Build target is: 6

(Filename: Line: 1111)

The AssetBundle 'khelldonCrowbar.unity3d' can't be loaded because it was not built with the right version or build target.

(Filename: Line: 438)

2018-12-14T07:42:43 203.254 ERR Loading AssetBundle "C:/xxx/7 Days To Die_A17exp_moding2/7DaysToDie_Data/../Mods\Khelldon-GetNailed/Resources/khelldonCrowbar.unity3d" failed!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...