Jump to content


  1. News & Announcements

    1. News

      Blog posts, interesting news, and forum announcements.

  2. Project Zomboid

    1. PZ Updates

      Patch notes and announcement threads for PZ builds.

    2. General Discussions

      Just the general place to natter about zombie apocal-em-upse, Project Zomboid.

    3. Bug Reports

      Bugs go here. Please save us the time to translate all the posts in different languages and post them in English instead.

    4. PZ Support

      For any problems about purchasing, the actual running of the game, crash reports, etc.
      Bug reports go here (click).

    5. 22.3k
    6. 8.3k
    7. PZ Suggestions

      Got things you want to see in PZ? Post here! Tip: search to see if there's already an existing thread.

  3. PZ Modding

    1. Tutorials & Resources

      The place to learn and gather everything you could need for modding PZ!

    2. Mods

      Anything that alters gameplay mechanics or the UI and doesn't fit into the other categories.

    3. Items

      Weapons, food, recipes, clothes. All the items you need (or not) for survival.

    4. Mapping

      Visit exotic places.

    5. Mod Ideas and Requests

      For the creative minds and everyone else.

  4. General Games Development

    1. Indie Scene

      Talk about the Indie scene, promote your work, and get feedback about all aspects of game development!

  5. Other Discussions

    1. General Discussion

      Talk about anything you like!

    2. Forum Games & Activities

      Relax with some good ol' fashioned forum tomfoolery and creative fun!

  • New Topics

  • 2314 The Ultimate Question!

    1. 1. Which is better: pancakes or waffles?

      • PANCAKES
      • WAFFLES

  • Posts

    • 1. So, i tried making my own first script and made the following:   local function AddCrowbar() local inventory = getPlayer():getInventory(); inventory:AddItem("Base.Crowbar"); end Events.EveryOneMinute.Add(AddCrowbar);   Sure, works fine, but where should i put logic like this: Is there a difference between the\lua\client\ and \lua\server\ folders? Where should i place what logic? Especially if i want to create mods that work both for SP and MP?   (And yes, I understand that client is for clientside code and server is for serverside - duh).   2. Also, i tried using code that others wrote (code taken from other peoples mods - the below code is NOT mine), that added items like:   player:getInventory():AddItem("Base.Crowbar"); self.character:getInventory():AddItem("Base.Crowbar");   But neither worked. Only after i added the local inventory variable in the code above i could use call the additem() method on it. Why didn't it work?   3. Also, is there a dev environment i can use to test out PZ luascript? Preferably with some mock objects for like ISOPlayer, ISOZombie and stuff like that. Starting PZ to test out a script feels like it takes forever..   TIA.  
    • Yeah, I'm not sure either. It's just an idea. I guess the developers would have a better idea.   It came from my other idea of starting the game in scenarios that make more sense. Just a more advanced version.
    • Thank you for the report. This one has already been patched up on our side for the next build.  
    • So I wasplaying with my friends when they closed the garage door, this happend.... (See picture) How can I fix this problame, It is like if its open.
    • Isso pode acontecer se outra zona em seu objects.lua for criada incorretamente. Quando o jogo carrega seu object.lua, se encontrar uma zona em seu object.lua que foi feita incorretamente, ele irá parar de carregar mais. Você pode testar isso removendo o object.lua do seu mod, fazendo uma cópia dele e removendo todas as outras zonas, exceto as vagas de estacionamento, e então colocar essa cópia de volta no seu mod. faça um novo jogo e, se eles funcionarem agora, continue adicionando algumas zonas de cada vez do seu object.lua original até que parem de funcionar novamente, isso deve ajudá-lo a encontrar a zona que está causando o problema.
  • Create New...