Jump to content

Nelolis

Member
  • Posts

    32
  • Joined

  • Last visited

Posts posted by Nelolis

  1. I did some poking around and I was able to get the first mod to work (just called it base and added them together.) . But I am still unable to import anything from camping I wanted to use a WoodenStick in a recipe but i have to add that item to the module im making to get it to work just seems like a strange wok around to me.

  2. You could also name them both module furnfood and it would work also.

    Yes that works too. But I still cant get it to import more then one module. I had a recipie that i need items from Hunting and camping for but it wont let me import them. I was able to get just Hunting to import into furnfood

  3. Hey whats the zombie apocalypse with out eating and drinking from thoes old tin cans?

     

    But I do think i need to redo the weight. A Mugs weight empty is 0.1, 0.2 with water, holding 1 water unit and a staggering ammount of 1 with coffee or tea (sweetened with lead i guess). A bowl has 0.5 empty weight, full 1.2 and holds 2 water units. A waterbottle and popbottle has an empty weight of 0.1 and a full weight of 0.8 and holds 10 water units. The Kettle is probly the best with a empty weight of 1 full weight of 0.3. A Pot is 1 empty 3 full and holds 25 water units. The bucket empty weights 1, full 4, and has 32 water units.

     

    I was thinking of changing the weight of my cants to Pop/tuna cans too 0.05 empty 0.15 full, and 1 water unit. Tin cans to .1 empty, .2 full with 2 water units. Right now they are at Pop/tuna 0.1 empty, 0.2 full, and 1 water unit.Tin cans 0.2 empty and 0.5 full, and 2 water units.

  4. No it kind of looked that away, but my other post had to do with how the game loaded the base files and loading new items over the old ones(took a long time but I figured it out). In that one I was trying to get my rewored itmes to be used insted of the games. My problem here is that it will not load my items from the other module.

  5. I seem to be unable to import items from other modules. I just cant figure out why it wont work tryed it a few ways but dont know why it wont work. Maybe someone else can see what I have done wrong.

     

    This is my code

     

    module one:

    module furnfood{ imports {  Base, bits } item Cat {  HungerChange  = -20,  UnhappyChange  = 75,  Weight    = 1,  Type    = Food,  IsCookable   = FALSE,  DangerousUncooked = TRUE,  DisplayName   = Dead Cat,  Icon    = DeadRat,  DaysFresh   = 1,  DaysTotallyRotten = 2,  ReplaceOnUse  = AnimalGuts, } item CatDressed {  HungerChange  = -25,  UnhappyChange  = 45,  Weight    = .8,  Type    = Food,  IsCookable   = FALSE,  DangerousUncooked = TRUE,  DisplayName   = Field Dressed Cat,  Icon    = DeadRat,  DaysFresh   = 1,  DaysTotallyRotten = 2,  ReplaceOnUse  = SmallFur, } item CatSkinned {  HungerChange  = -60,  UnhappyChange  = 20,  Weight    = .6,  Type    = Food,  IsCookable   = TRUE,  DangerousUncooked = TRUE,  DaysTotallyRotten = 4,  DisplayName   = Skinned Cat,  Icon    = DeadRat,  DaysFresh   = 2,  MinutesToCook = 60,  MinutesToBurn = 80, } item Rat {  HungerChange  = -4,  UnhappyChange  = 50,  Weight    = .2,  Type    = Food,  IsCookable   = FALSE,  DangerousUncooked = TRUE,  DisplayName   = Dead Rat,  Icon    = DeadRat,  DaysFresh   = 1,  DaysTotallyRotten = 2,  ReplaceOnUse  = AnimalGuts, } item RatDressed {  HungerChange  = -6,  UnhappyChange  = 30,  Weight    = .8,  Type    = Food,  IsCookable   = FALSE,  DangerousUncooked = TRUE,  DisplayName   = Field Dressed Rat,  Icon    = DeadRat,  DaysFresh   = 1,  DaysTotallyRotten = 2,  ReplaceOnUse  = SmallFur, } item RatSkinned {  HungerChange  = -8,  UnhappyChange  = 10,  Weight    = .12,  Type    = Food,  IsCookable   = TRUE,  DangerousUncooked = TRUE,  DisplayName   = Skinned Rat,  Icon    = DeadRat,  DaysFresh   = 2,  DaysTotallyRotten = 4,  MinutesToCook = 60,  MinutesToBurn = 80, } recipe Field Dress a Cat {    Cat,    keep KitchenKnife/Axe,       Result:CatDressed,    Time:70.0, } recipe Skin a Cat {    CatDressed,    keep KitchenKnife/Axe,       Result:CatSkinned,    Time:70.0, } recipe Butcher Cat {    CatSkinned,    keep KitchenKnife/Axe,       Result:CutMeat=4,    Time:70.0, } recipe Field Dress a Rat {    Rat,    keep KitchenKnife/Axe,       Result:RatDressed,    Time:70.0, } recipe Skin a Rat {    RatDressed,    keep KitchenKnife/Axe,       Result:RatSkinned,    Time:70.0, } recipe Butcher Rat {    RatSkinned,    keep KitchenKnife/Axe,       Result:CutMeat,    Time:70.0, }}

     

    module two:

    module bits{ item SmallFur {  Weight    = 0.2,  Type    = Normal,  DisplayName   = Small Fur,  Icon    = DeadRat, } item AnimalGuts {  HungerChange  = -5,  Weight    = 0.2,  Type    = Food,  DisplayName   = Offal,  IsCookable   = TRUE,  DangerousUncooked = TRUE,  DaysFresh   = 1,  DaysTotallyRotten = 2,  Icon    = Chicken,  MinutesToCook = 5,  MinutesToBurn = 15, } item CutMeat {  HungerChange  = -15,  Weight    = .2,  Type    = Food,  IsCookable   = TRUE,  DangerousUncooked = TRUE,  DaysTotallyRotten = 6,  DisplayName   = Cuts of Meat,  Icon    = Chicken,  DaysFresh   = 2,  MinutesToCook = 20,  MinutesToBurn = 40, }}
  6. Ok I have now figured out how it works. And got it to work. Figured it out by changing the names between a and z.

     

     

    1. I had changed the name of my orginal file from TinCans to emptycans

    2. This put it under the newitems.txt file so when it loaded the files it loaded newitems.txt first then TinCans.txt so the item from TinCans.txt was the active item.

    3. Sub folders under media/scripts changes the load order.

     

     

    Again thanks everyone for all the help. Now I can eat my Dogfood (or dump out rotten food for the can) and get my can too!

  7. Nope tryed that. Every time i tryed to name a mod something other then Base it never works. I just reinstalled PZ and now i cant get any new mods i make to work even something thats just one recipe like this.

     

    moduel Base{ recipe Stuff {  RippedSheets,       Result:BaseballBatNails,    Time:150.0, }}

  8. Yeah that about sums it up. But i have "Fixed" it.

     

    Works:

    module Base{ imports { Base }

     

    Will not work any of the module:

    module tincans{ imports { Base }

     

    I have done it to a few vanilla items and I had no problems up untell this point. Guess I will mark it solved.

    Thanks everyone for the help on trying to solve it. :D

  9. Well to echo RoboMat's question - how have you tried setting your module and base?  Are you doing something like:

    module SICmod {			imports	    {	        Base,			camping	    }

    instead of:

    module Base {

    The former may work for you, it worked for my Skinned Rat recipe (DeadRat being in newitems.txt)

     

    Yeah I had already tryed that. did not work. Thanks

  10. Everything works just fine but the DogfoodOpen. I am only useing the Base game files and items. first item in the code TunaTinOpen when i eat the can of tuna i get a TinCanS back. But for Dogfood I should get a TinCanl3 but i get nothing. My problem is that any vanilla items i try and get this to change from newitems.txt wont change but items from items.txt do like the tuna can. I watned to add this to my P-38 Can Opener mod but sence i cant get the DogfoodOpen to work I dont see the point.

     

    Ways I have got this to work.

    1. Change the base newitems.txt

    2. Remove newitems.txt and put those items from it in items.txt

    3. Use Vanilla By Kinyoshi

    4. Change newitems.txt name (I used itemsb.txt worked fine then. Changed the name back it stoped working.)

     

    Code:

    module Base{ item TunaTinOpen {  HungerChange  = -20,  Weight   = 0.3,  Type   = Food,  DaysTotallyRotten = 4,  DisplayName  = Open Tin of Tuna,  Icon   = TunaOpen,  ReplaceOnUse  = TinCanS,  DaysFresh  = 2, } item TinCanS {  Weight   = 0.1,  CanStoreWater  = TRUE,  Type   = Normal,  DisplayName  = Small empty can,  ReplaceOnUseOn  = WaterSource-TinCanWaterS,  Icon   = TunaOpen, } item TinCanWaterS {  IsWaterSource  = TRUE,  Weight   = 0.3,  CanStoreWater  = TRUE,  Type   = Drainable,  UseWhileEquipped = FALSE,  UseDelta  = 1,  DisplayName  = Small can of water ,  ReplaceOnDeplete = TinCanS,  ReplaceOnUseOn  = WaterSource-TinCanWaterS,  Icon   = TunaOpen, } item TinnedSoup {  HungerChange  = -30,  Weight   = 0.8,  RequireInHandOrInventory= TinOpener,  Type   = Food,  DisplayName  = Canned Soup,  Icon   = TinCan,  ReplaceOnUse  = TinCanl, } item TinCanl {  Weight   = 0.1,  CanStoreWater  = TRUE,  Type   = Normal,  DisplayName  = Empty large can,  ReplaceOnUseOn  = WaterSource-TinCanWaterl,  Icon   = TinCan, } item TinCanWaterl {  IsWaterSource  = TRUE,  Weight   = 0.5,  CanStoreWater  = TRUE,  Type   = Drainable,  UseWhileEquipped = FALSE,  UseDelta  = .3,  DisplayName  = Large can of water ,  ReplaceOnDeplete = TinCanl,  ReplaceOnUseOn  = WaterSource-TinCanWaterl,  Icon   = TinCan, } item OpenBeans {  HungerChange  = -30,  Weight   = 0.8,  Type   = Food,  DaysTotallyRotten = 4,  UnhappyChange  = 10,  DisplayName  = Open Can of Beans,  Icon   = BeansOpen,  DaysFresh  = 2,  ReplaceOnUse  = TinCanl2, } item TinCanl2 {  Weight   = 0.1,  CanStoreWater  = TRUE,  Type   = Normal,  DisplayName  = Empty large can,  ReplaceOnUseOn  = WaterSource-TinCanWaterl2,  Icon   = BeansOpen, } item TinCanWaterl2 {  IsWaterSource  = TRUE,  Weight   = 0.5,  CanStoreWater  = TRUE,  Type   = Drainable,  UseWhileEquipped = FALSE,  UseDelta  = .3,  DisplayName  = Large can of water ,  ReplaceOnDeplete = TinCanl2,  ReplaceOnUseOn  = WaterSource-TinCanWaterl2,  Icon   = BeansOpen, } item DogfoodOpen {  HungerChange = -30,  Weight = 1,  Type = Food,  DaysTotallyRotten = 7,  UnhappyChange = 50,  DisplayName = Open Dogfood,  Icon = DogfoodOpen,  ReplaceOnUse  = TinCanl3,  DaysFresh = 5, } item TinCanl3 {  Weight   = 0.1,  CanStoreWater  = TRUE,  Type   = Normal,  DisplayName  = Empty large can,  ReplaceOnUseOn  = WaterSource-TinCanWaterl3,  Icon   = DogfoodOpen, } item TinCanWaterl3 {  IsWaterSource  = TRUE,  Weight   = 0.5,  CanStoreWater  = TRUE,  Type   = Drainable,  UseWhileEquipped = FALSE,  UseDelta  = .3,  DisplayName  = Large can of water ,  ReplaceOnDeplete = TinCanl3,  ReplaceOnUseOn  = WaterSource-TinCanWaterl3,  Icon   = DogfoodOpen, } item BadFood {  HungerChange  = -10,  UnhappyChange  = 100,  Weight   = .5,  Type   = Food,  DisplayName  = Ruined Food,  Icon   = DogfoodOpen,  DaysFresh  = ,1,  DaysTotallyRotten = 0,  IsCookable  = FALSE,  DangerousUncooked = TRUE, }}
  11. RoboMat both items I have listed are fromt he vanilla game but one is from items.txt and one is from newitems.txt. When I use a tuna can it gives me back the item I want it too but when I use a dogfood can it does not give me back the item it should. I also tryed it with an icecream and it did not give back the time I should eather. Items that i have changed in another module such as the pop can from items.txt work but not anything from newitems.txt

     

     

    Also i just renamed newitems.txt and the items worked i changed te files name back and it no longer worked.

  12. ReplaceOnDeplete

    Tryed it did not work but thanks.

     

     item TunaTinOpen

     {

      HungerChange  = -20,

      Weight   = 0.3,

      Type   = Food,

      DaysTotallyRotten = 4,

      DisplayName  = Open Tin of Tuna,

      Icon   = TunaOpen,

      ReplaceOnUse  = TinCanS,

      DaysFresh  = 2,

     }

    This works just fine

  13. I have been trying to edit items from newitems.txt but the only way am able to do so is to change the orginal file also puting eveything from newitems.txt into items.txt works as well. I was able to do it with Vanilla By Kinyoshi as well. I am unable to figure out why I can not change the items normaly. Has anyone else had this problem or know what causes it?

     

    item DogfoodOpen
     {
      HungerChange = -30,
      Weight = 1,
      Type = Food,
      DaysTotallyRotten = 7,
      UnhappyChange = 50,
      DisplayName = Open Dogfood,
      Icon = DogfoodOpen,
      DaysFresh = 5,
      ReplaceOnUse  = TinCanl3,
     }

     That is all I was trying to change I tryed it with icecream as well and nothing there eather.

  14. but there's already a can opener D: this is more of a mod for you but really im sorry but i don't really have a reason to use it is it special in anyway?

    Yes there is already a can opener in the game. But the reason to use this one is its size; it was made to go on dogtags. It could easily go around your neck on a leather thong, shoe laces, a bit of string, or you can carry around the large clunky normal can opener. I did make  it for myself but wanted to make it available for everyone.

×
×
  • Create New...