Jump to content

Search the Community

Showing results for tags 'additem'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • News
  • Project Zomboid
    • PZ Updates
    • General Discussions
    • Bug Reports
    • PZ Support
    • PZ Multiplayer
    • PZ Community & Creativity
    • PZ Suggestions
  • PZ Modding
    • Tutorials & Resources
    • Mods
    • Items
    • Mapping
    • Mod Ideas and Requests
  • General Games Development
    • Indie Scene
  • Other Discussions
    • General Discussion
    • Forum Games & Activities

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Twitter


Location


Interests

Found 2 results

  1. Hello, I would like to know more about clothings in v41, more specifically the generation of XML. media\clothing\clothing.xml - This file creates specific respawn for professions, for example, makes the zombie declared as Firefighter respawn only in fireman's clothes without mixing with policeman or any other. This file uses code that I believe is generated by some type of programming or website. Example: 56e0b193-733d-4061-9a73-167f6b253ec7 This code represents the Jacket_Fireman detailed in media\clothing\clothingItems\Jacket_Fireman.XML And with the respawn set at a 50% (0.5) chance of appearing on the fireman through line 659 of the Fireman zombie clothing.xml file. The point is that this link is very important for the creation of clothing MODS as the textures and respawns are being directed through these XML. To maintain a standardization in the MOD based on the base coding, the question remains. How are these codes generated? If they are generated randomly, how should I proceed to create new ones without repeating any code from the base of the game so as not to generate errors?
  2. Hopefully someone can provide a quick answer to keep me from tearing my hair out! I've come back to PZ after a while and suddenly find my mods (mostly made by me, but some downloaded ones too) no longer work. I'm on the private beta "iwillbackupmysaves" (I think it's called) and the game displays "Build 19". Some mods, like NecroForge, work for me. But some, mostly start spawn or item adding mods, do "nothing", even though they have ids and show up to be activated/deactivated fine in the modloader. For example, I made the following quick mod for testing: BanjoCheatersLoadout = {}BanjoCheatersLoadout.GiveCheatersLoadoutItems = function() local player = getSpecificPlayer(0); local playerData = player:getModData(); playerData.HasBanjoCheatersLoadoutItems = playerData.HasBanjoCheatersLoadoutItems or "false"; if(playerData.HasBanjoStarterItemsCheat == "false") then player:getInventory():AddItem("Base.Axe"); player:getInventory():AddItem("Base.Hammer"); player:getInventory():AddItem("Base.Saw"); player:getInventory():AddItem("Base.Screwdriver"); player:getInventory():AddItem("Base.Torch"); player:getInventory():AddItem("Base.Battery"); player:getInventory():AddItem("Base.TinOpener"); player:getInventory():AddItem("Base.Lighter"); player:getInventory():AddItem("camping.CampingTentKit"); player:getInventory():AddItem("Base.BathTowel"); player:getInventory():AddItem("Base.WaterBottleFull"); player:getInventory():AddItem("Base.WaterBottleFull"); player:getInventory():AddItem("Base.TinnedSoup"); player:getInventory():AddItem("Base.TinnedSoup"); player:getInventory():AddItem("Base.TinnedSoup"); player:getInventory():AddItem("Base.Nails"); player:getInventory():AddItem("Base.Nails"); player:getInventory():AddItem("Base.Nails"); player:getInventory():AddItem("Base.Nails"); player:getInventory():AddItem("Base.Sheet"); player:getInventory():AddItem("Base.Sheet"); player:getInventory():AddItem("Base.Sheet"); player:getInventory():AddItem("Base.ShotgunSawnoff"); player:getInventory():AddItem("Base.ShotgunShells"); player:getInventory():AddItem("Base.ShotgunShells"); player:getInventory():AddItem("Base.ShotgunShells"); player:getInventory():AddItem("Base.BigHikingBag"); player:getInventory():AddItem("Base.Duffelbag"); playerData.HasBanjoCheatersLoadoutItems = "true"; endendEvents.OnGameStart.Add(BanjoCheatersLoadout.GiveCheatersLoadoutItems);This used to load fine in the old Steam build several months ago, but now loading it with the modloader does nothing; no extra items are added to inventory on starting a new game. Likewise, my 'start spawn' mods here (the product of days of coordinate research!) no longer "do anything" either; the default start locations are used. At first, I assumed (because I hit the issue with my start spawn mods first) that the game's code had been changed, and thus I'd just have to find out how to re-code my mod to make it work (likely because of the addition of West Point as a map option). But the fact that the above item spwaner mod doesn't work either makes me wonder if something is bugged instead/as well. Can someone confirm for me if there's a problem with my code (here and in my start spawn mods) and/or if they've had trouble with the new Steam beta not loading other such mods for them, too? I don't mind reworking my mods (if someone can point the way!) but I'd hate to spend days trying to fix them only to find out it was the beta itself that was bugged!
×
×
  • Create New...