Jump to content

If the mod loader is working corectly what is wrong with this Code?


Shivster

Recommended Posts

So i am at ropes end. I have looked at this code for like a week and i cant figure out whats wrong. Everyone is saying that the mod loader is working and every post i have asked about it has gone unanswered.  My mods all worked fine before the mod loader was put in. And have not worked a day after. Sorry if i sound mad i am not just frustrated.

 

Making Jerky

Item/recipe file .TXT

module Jerky{     imports     {     Base, camping     }recipe make BaconJerky{Bacon,Basicmarinad,Result: BaconJerky=3,Time:1600,recipe make BeefJerky{Steak,Basicmarinad,Result: BasicBeefJerky=3,Time:1600,}recipe ChickenJerky{Chicken,Basicmarinad,Result: ChickenJerky=3,Time:1600,}recipe RatJerky{Rat,Basicmarinad,Result: RatJerky=3,Time:1600,}recipe ChipmunkJerky{Chipmunk,Basicmarinad,Result:ChipmunkJerky=3,Time:1600,}recipe RabbitJerky{Rabbit,Basicmarinad,Result:RabbitJerky=3,Time:1600,}recipe SquirrelJerky{Squirrel,Basicmarinad,Result:SquirrelJerky=3,Time:1600,}recipe Basicmarinad{Soysauce,Worcestershire,Salt,Liquidsmoke,Result: Basicmarinad=3,Time:800,}recipe make BoringBaconJerky{Bacon,Basicmarinad,Result: BoringBaconJerky=3,Time:1600,}recipe make BoringBeefJerky{Steak,Basicmarinad,Result: BoringBeefJerky=3,Time:1600,}recipe BoringChickenJerky{Chicken,Basicmarinad,Result: BoringChickenJerky=3,Time:1600,}recipe BoringRatJerky{Rat,Basicmarinad,Result: BoringRatJerky=3,Time:1600,}recipe BoringChipmunkJerky{Chipmunk,Basicmarinad,Result: BoringChipmunkJerky=3,Time:1600,}recipe BoringRabbitJerky{Rabbit,Basicmarinad,Result: BoringRabbitJerky=3,Time:1600,}recipe BoringSquirrelJerky{Squirrel,Basicmarinad,Result: BoringSquirrelJerky=3,Time:1600,}recipe Boringmarinad{Basicmarinad=3,Pepper,Result: Boringmarinad=3,Time:800,]recipe make TastyBaconJerky{Bacon,Tastymarinad,Result: TastyBaconJerky=3,Time:1600,}recipe make TastyBeefJerky{Steak,Tastymarinad,Result: TastyBeefJerky=3,Time:1600,}recipe TastyChickenJerky{Chicken,Tastymarinad,Result: TastyChickenJerky=3,Time:1600,}recipe TastyRatJerky{Rat,Tastymarinad,Result: TastyRatJerky=3,Time:1600,}recipe TastyChipmunkJerky{Chipmunk,Tastymarinad,Result:TastyChipmunkJerky=3,Time:1600,}recipe TastyRabbitJerky{Rabbit,Tastymarinad,Result:TastyRabbitJerky=3,Time:1600,}recipe TastySquirrelJerky{Squirrel,Tastymarinad,Result:TastySquirrelJerky=3,Time:1600,}recipe TastySalmonJerky{Salmon,Tastymarinad,Result:TastySalmonJerky=3,Time:1600,}recipe Tastymarinad{Boringmarinad=3,Garlicpowder,Result: Tastymarinad=3,Time:800,}item BaconJerky{HungerChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Bacon Jerky,Icon = Beef Jerky,}item BasicBeefJerky{HungerChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Basic Beef Jerky,Icon = BeefJerky,}item ChickenJerky{HungerChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Basic Chicken Jerky,Icon = BeefJerky,}item RatJerky{HungerChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Basic Rat Jerky,Icon = BeefJerky,}item ChipmunkJerky{HungerChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Basic Chipmunk Jerky,Icon = BeefJerky,}item RabbitJerky{HungerChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Basic Rabbit Jerky,Icon = BeefJerky,}item SquirrelJerky{HungerChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Basic Squirrel Jerky,Icon = BeefJerky,}item SalmonJerky{HungerChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Basic Salmon Jerky,Icon = BeefJerky,}item Basicmarinad{HungerChange = -10,Weight = 1,AlwaysWelcomeGift = true,Type = Food,DisplayName = Basic Marinad,}item BoringBaconJerky{HungerChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Boring Bacon Jerky,Icon = Beef Jerky,}item BoringBeefJerky{HungerChange = -15,BoredomChange = -5,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Boring Beef Jerky,Icon = BeefJerky,}item BoringChickenJerky{HungerChange = -15,BoredomChange = -5,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Boring Chicken Jerky,Icon = BeefJerky,}item BoringRatJerky{HungerChange = -15,BoredomChange = -5,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Boring Rat Jerky,Icon = BeefJerky,}item BoringChipmunkJerky{HungerChange = -15,BoredomChange = -5,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Boring Chipmunk Jerky,Icon = BeefJerky,}item BoringRabbitJerky{HungerChange = -15,BoredomChange = -5,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Boring Rabbit Jerky,Icon = BeefJerky,}item BoringSquirrelJerky{HungerChange = -15,BoredomChange = -5,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Boring Squirrel Jerky,Icon = BeefJerky,}item BoringSalmonJerky{HungerChange = -15,BoredomChange = -5,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Boring Salmon Jerky,Icon = BeefJerky,}item Boringmarinad{HungerChange = -10,BoredomChange = -5,Weight = 1,AlwaysWelcomeGift = true,Type = Food,DisplayName = Boring Marinad,}item TastyBaconJerky{HungerChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Tasty Bacon Jerky,Icon = Beef Jerky,}item TastyBeefJerky{HungerChange = -20,BoredomChange = -5,UnhappyChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Tasty Beef Jerky,Icon = BeefJerky,}item TastyChickenJerky{HungerChange = -20,BoredomChange = -5,UnhappyChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Tasty Chicken Jerky,Icon = BeefJerky,}item TastyRatJerky{HungerChange = -20,BoredomChange = -5,UnhappyChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Tasty Rat Jerky,Icon = BeefJerky,}item TastyChipmunkJerky{HungerChange = -20,BoredomChange = -5,UnhappyChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Tasty Chipmunk Jerky,Icon = BeefJerky,}item TastyRabbitJerky{HungerChange = -20,BoredomChange = -5,UnhappyChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Tasty Rabbit Jerky,Icon = BeefJerky,}item TastySalmonJerky{HungerChange = -20,BoredomChange = -5,UnhappyChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Tasty Salmon Jerky,Icon = BeefJerky,}item TastySquirrelJerky{HungerChange = -20,BoredomChange = -5,UnhappyChange = -10,IsCookable = TRUE,DangerousUncooked = TRUE,MinutesToBurn = 200,MinutesToCook = 180,Weight = 0.2,AlwaysWelcomeGift = true,Type = Food,DisplayName = Tasty Squirrel Jerky,Icon = BeefJerky,}item Tastymarinad{HungerChange = -15,BoredomChange = -5,UnhappyChange = -10,Weight = 1,AlwaysWelcomeGift = true,Type = Food,DisplayName = Tasty Marinad,}item Soysauce{Weight = 1,AlwaysWelcomeGift = true,Type = Drainable,UseDelta = 0.5,DisplayName = Soysauce,}item Salt{Weight = 0.5,AlwaysWelcomeGift = true,Type = Drainable,UseDelta = 0.5,DisplayName = Salt Shacker,}item Pepper{Weight = 0.5,AlwaysWelcomeGift = true,Type = Drainable,UseDelta = 0.5,DisplayName = Pepper Shacker,}item Worcestershire{Weight = 1,AlwaysWelcomeGift = true,Type = Drainable,UseDelta = 0.5,DisplayName = Worcestershire,}item Liquidsmoke{Weight = 1,AlwaysWelcomeGift = true,Type = Drainable,UseDelta = 0.5,DisplayName = Liquidsmoke,}item Garlicpowder{Weight = 0.5,AlwaysWelcomeGift = true,Type = Drainable,UseDelta = 0.5,DisplayName = Garlic Powder,}}

 

Distribution file .LUA

table.insert(SuburbsDistributions["kitchen"]["counter"].items, "Jerky.Salt");table.insert(SuburbsDistributions["kitchen"]["counter"].items, 10);table.insert(SuburbsDistributions["kitchen"]["counter"].items, "Jerky.Pepper");table.insert(SuburbsDistributions["kitchen"]["counter"].items, 10);table.insert(SuburbsDistributions["kitchen"]["counter"].items, "Jerky.Soysauce");table.insert(SuburbsDistributions["kitchen"]["counter"].items, 10);table.insert(SuburbsDistributions["kitchen"]["counter"].items, "Jerky.Worcestershire");table.insert(SuburbsDistributions["kitchen"]["counter"].items, 10);table.insert(SuburbsDistributions["kitchen"]["counter"].items, "Jerky.Liquidsmoke");table.insert(SuburbsDistributions["kitchen"]["counter"].items, 10);table.insert(SuburbsDistributions["kitchen"]["counter"].items, "Jerky.Garlicpowder");table.insert(SuburbsDistributions["kitchen"]["counter"].items, 10);

 

Crafting Nails

Item/Recipe File .TXT

module Nails{     imports     {     Base, camping     }recipe Make Ingot{Pot/Pan/RoastingPan/Kettle,CampfireKit,Result:Ingot,Time:400.0,}recipe Make Ingots{Shotgun/Pistol/Axe/Sledgehammer/ShotgunSawnoff/Crowbar,CampfireKit,Result:Ingot=2,Time:400.0,}recipe Make LogMold{Log,Nails,keep Screwdriver,keep Hammer,Result:LogMold,Time:400.0,}recipe Forge Nails{LogMold,Ingot,CampfireKit,Result:Nails=4,Time:800.0,}item Ingot{Weight = 5,Type = Normal,DisplayName = Ingot,}item LogMold{Weight = 9,Type = Normal,DisplayName = Log Mold}}

 

Distribution File .LUA

table.insert(SuburbsDistributions["all"]["crate"].items, "Nails.Ingot");table.insert(SuburbsDistributions["all"]["crate"].items, 10);

 

I know the .info files are done right as they show up in the Mod loader correctly But if you want ill post that stuff as well.

Link to comment
Share on other sites

If it crashes on start, there's probably something subtly wrong with the .info file or the mod dir structure. I don't have much experience with actual modding, but I did try making a simple mod stub a while back and it seemed like there's possibly something weird going on with the .info loading that can cause even a valid .info file to crash the game. IIRC I had to copy the .info file over from some mod that did actually work, and edit that, instead of creating my own from scratch. Maybe something charset/encoding related?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...