Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
One screw and a little time for a 40% repair and resetting repair stacks is crazy easy.
Should be 10 screws atleast, maybe a little scrap metal too.
I have been playing with it, both SP and MP, and it works perfectly. Had no trouble so far even running together with other mods.
Hope it helps!
Loving the mod, it's a nice addition.
I modified it so it, for guns, it accepts sturdy sticks and ripped sheets instead of toothbrushes. It made a bit more of sense >:D.
Thank you!
I have Brita's Weapons Pack and Scrap Weapons, along with More Spears Mod
@Robert J. Sullivan You can decompile java code to see what java interface you can use in your lua mods. Have fun.
You could edit the repairAction and set the item's repair stacks to 1 (1 is for an item that never got repaired) before actually repairing it, and just before the function ends set it back to it's previous value + 1, that way you repaired a "pristine" version of your item with full benefits but still kept the repair counter.
This kinda goes around the problem without solving it but i'd say it's just 3 lines of code and almost does what you want.
I have looked into the code and seen the HaveBeenRepaired function you used, I searched for every occurence of it in the lua files and the only one I found was in the TimedActions folder which doesn't seem right. The other occurence is inside a .class file which I can't read. Would you know where should I look first ? The simplest idea that I have would be just to modify the penalty "formula" so that repair count still increments but the penalty is basically 0. Thanks again for making the mod, it's a great help in the meantime.
My only problem is that i'm not aware of a function that tells me if an item is a vehicle part or not (something similar to isAimedFireArm() and getCategory() ) and since there is fuckall documentation i can only try to check the existing code and hope for the best.
I also want to keep this as mod-friendly as possible so i can't make a list of vehicle parts to check because that would make custom vehicle parts count as normal items, thus sovling the problem only for vanilla items
I'll gladly add a vehicle category once i find the correct functions
May I suggest:
Bodywork: 10 scrap metal, 1 metal sheet, 1 metal bar, 8 screws, 2 units of wire, 2 units of propane and a unit of any paint.
Tires: 10 duct tape, 20 denim strips, 6 pairs of shoes, 10 unusable metal, 2 bottles glue.
Windows: Chisel for tool?, a unit of water and a dishcloth (to clean the cracks), bottle of normal glue, 1 scotch tape, 2 credit cards
Mufflers: 10 scrap metal, 2 metal pipes, some silver jewellery (should be platinum, but I don't think we have any), a rope and 5 units of propane.
Seats: 2 units of wire, 4 screws, 10 ripped sheets, 6 ripped leather, 4 thread.
Brakes: 1 washing liquid, 3 water, duct tape (hydraulics), 2 scrap metal (calipers), 1 charcoal, 1 scrubber.
Suspension: 1 metal bar, 2 scrap metal, 2 units welding rod, 2 units propane 4 units charcoal. Needs campfire with Hammer, Rope and Sturdy stick. Not consumed.
All based on real solutions