PhantomSkyfire Posted August 10, 2015 Share Posted August 10, 2015 I added a wooden knife to the game. This works. I added a whetstone to the game, which works. I have both these items in my inventory. When I right-click on my wooden knife, I do not see the expected repair option. This is the fixing code: fixing Sharpen Wooden Knife { Require : LoonyKnifeWood, Fixer : LoonyWhetstone, }(I have no idea why the indentation is so weird on the forum) I have been staring at it for a long time and comparing it to the standard fixes in ./media/scripts/fixing.txt. There is no sign of errors in the game terminal. What do? Link to comment Share on other sites More sharing options...
Svarog Posted August 10, 2015 Share Posted August 10, 2015 Make sure the module is correct or try adding Module. before item ID for Require and Fixer items like ModModuleName.LooneWhetstone might help, might not, no idea why it doesn't work so I assume the module is the problem. Link to comment Share on other sites More sharing options...
PhantomSkyfire Posted August 10, 2015 Author Share Posted August 10, 2015 It might be helpful if I post the entire file. It's all one file.module LoonyMod{ imports { Base } item LoonyKnifeWood { MaxRange = 0.9, WeaponSprite = Knife, MinAngle = 0, Type = Weapon, MinimumSwingTime = 2, KnockBackOnNoDeath = FALSE, SwingAmountBeforeImpact = 0.02, Categories = Blade, ConditionLowerChanceOneIn = 1, Weight = 0.4, SplatNumber = 0, PushBackMod = 0.3, MaxDamage = 0.4, SubCategory = Stab, AimingMod = 0.8, ConditionMax = 5, MaxHitCount = 1, IsAimedHandWeapon = TRUE, DoorDamage = 1, SwingAnim = Stab, WeaponWeight = 1.7, DisplayName = Wooden Knife, MinRange = 0.61, CloseKillMove = Jaw_Stab, SwingTime = 2, MinDamage = 0.2, KnockdownMod = 0, SplatBloodOnNoDeath = TRUE, Icon = KnifeWood, RunAnim = Run_Weapon2, IdleAnim = Idle_Weapon2, BreakSound = PZ_WoodSnap, TreeDamage = 0, EnduranceMod = 0.5, } item LoonyWhetstone { Weight = 0.35, Type = Drainable, UseDelta = 0.1, UseWhileEquipped = FALSE, DisplayName = Simple Whetstone, Icon = Rock, } recipe Make Wooden Knife { PercedWood, WoodenStick, Result:LoonyKnifeWood, Time:40.0, Category:Carpentry, } recipe Make Simple Whetstone { Stone, RippedSheets, Result:LoonyWhetstone, Time:40.0, Category:Survivalist, } fixing Sharpen Wooden Knife { Require : LoonyKnifeWood, Fixer : LoonyWhetstone, }/*********************************************************//* Integrate the wooden knife to default crafting lists. *//*********************************************************/ recipe Slice Watermelon { Watermelon, keep LoonyKnifeWood, Result:WatermelonSliced=10, Time:70.0, Category:Cooking, } recipe Slice Bread { keep LoonyKnifeWood, Bread, Result:BreadSlices=3, Sound:PZ_SliceBread, Time:40.0, Category:Cooking, } recipe Slice Bread { keep LoonyKnifeWood, BreadDough, Result:BreadSlices=2, Sound:PZ_SliceBread, Time:40.0, Category:Cooking, } recipe Slice Pie { keep LoonyKnifeWood, PieWholeRaw, Result:Pie=5, Time:20.0, OnCreate:SlicePie_OnCreate, Category:Cooking, } recipe Slice Cake { keep LoonyKnifeWood, CakeRaw, Result:CakeSlice=5, Time:20.0, OnCreate:SlicePie_OnCreate, Category:Cooking, } recipe Slice Fillet { keep LoonyKnifeWood, Bass/Catfish/Perch/Crappie/Panfish/Pike/Trout, Result:FishFillet, Sound:PZ_FoodSwoosh, Time:50.0, OnTest:CutFish_TestIsValid, OnCreate:CutFish_OnCreate, Category:Cooking, } recipe Slice Fillet { keep LoonyKnifeWood, keep FishFillet, Result:FishFillet, Sound:PZ_FoodSwoosh, Time:50.0, OnTest:CutFillet_TestIsValid, OnCreate:CutFillet_OnCreate, Category:Cooking, } recipe Slice Frog { keep LoonyKnifeWood, Frog, Result:FrogMeat, Sound:PZ_FoodSwoosh, Time:50.0, Category:Cooking, }} Link to comment Share on other sites More sharing options...
Svarog Posted August 10, 2015 Share Posted August 10, 2015 ConditionMax = 5, <-- There's your problem, I did some in-game testing and Repairing started to work when I increased it to 15. Not sure what's the minimum for it if you want the item to be repairable. Link to comment Share on other sites More sharing options...
PhantomSkyfire Posted August 10, 2015 Author Share Posted August 10, 2015 Ahaaaa~! I guess repairing items with the durability of butter knives doesn't fit into the dev's paradigm. Ah well, with how cheap the things are to produce I guess it doesn't matter. Thank you. Marked as solved. By the way, I love your mods. =) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now