Jump to content

Search the Community

Showing results for tags 'Loot table'.

  • 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


Interests

Found 8 results

  1. Following my old bug report I found more typos in the distributions tables : local typos ={ -- keys are what is referenced in the Distributions.lua file -- values are what they should be referencing, aka the actual key in ProceduralDistributions.lua CrateCompactDisks = "CrateCompactDiscs", BakeryDonuts = "BakeryDoughnuts", CrateSandbags = "CrateSandBags", SportsStoreSneakers = "SportStoreSneakers", PlankStashWeapon = "PlankStashGun", ElectronicStoreComputer = "ElectronicStoreComputers", ElectronicsStoreMusic = "ElectronicStoreMusic", CrateNapkins = "CratePaperNapkins", MusicStoreAcoustic = "MusicStoreGuitar", } Additionally, I found the following loot tables referenced in Distributions.lua, but without a corresponding key in ProceduralDistributions.lua : -- line 7210, 7230, 7239 , pawnshopoffice loot {name="GunStoreGuns", min=0, max=99, weightChance=100}, -- line 7964, sewingstore loot {name="BookstoreTailoring", min=1, max=2, weightChance=100},
  2. • Version 41.78.16(Steam) • Singleplayer • No mods. • Old save. • Reproduction steps: 1. Go south to the trailer park. 2. Get spotted by a zombie in the house at the attached coordinates. 3. Check the white car nearby to see if it's in good condition. 4. Go back to the house, clear the broken glass from the window she broke, and go in. 5. Fight the zombie. 6. Turn off the lights. First the one by the door, and then the one by the sink. 7. Go to the cabinets by the oven and open the loot table. The game then freezes for a few seconds before crashing to the desktop. Coordinates: 10820 x 10404 x 0 Also, I was playing in windowed mode, with the steam overlay enabled, and I think I had blender running in the background. The first one that came up when I went back to it in debug mode was the cupboard above the sink, and that just had a bread knife and a spoon in it. I found what YanaMD asked for in my last post, and uploaded the console.txt file, but that was while I was in the process of rebooting the game with debug mode disabled. The game's running fine now, no crashing. Although, the lights that I turned off earlier were on again. logs.zip console.txt
  3. • Version 41.78.16(Steam) • Singleplayer • No mods. • New save. • Reproduction steps: 1. Start game in apocalypse mode. 2. While crouched, go out the back door, turn off the porch light, and go back inside. 3. Go in the laundry closet and check the inventory of the dryer. (It might have been a washing machine. I can't remember.) 4. Game immediately crashes to desktop. Coordinates: 8208x11601x0 Failed to replicate after starting the game again. Also, loading the game again later, the washing machine/dryer was empty. I don't know if it was empty before the crash or not. I would post a screenshot and my log file, but something's going wrong with my post attachments. Telling me that I have no post attachments, that I've used up all of the space for attachments, and that the two things I've attached in the past can't be found, and therefore can't be deleted to make space.
  4. Hello, I've been fixing this for a few minutes and I'm not sure if I am correct or not. There isn't any available documentation or detailed explanation on the percentage of the loot drop because whatever I try to set is always a lot still. I'm trying to adjust the rarity of the drops in zombies as an experiment and get into modding PZ. This is what I've written so far and for a total of 20 zombies I kill I get about 5-7 items that I've set. Is the game ignoring the values I've input or is there a limit? Also I've set it to only drop on male zombies because putting the items on both male and female zombies drops a lot. Distributions = Distributions or {}; -- custom distributions table local nDistTable = { all = { inventorymale = { rolls = 1, items = { "Crisps", 0.007, "Crisps2", 0.002, "Chocolate", 0.002, "SunflowerSeeds", 0.002, "Peanuts", 0.002, "MintCandy", 0.002, "Lollipop", 0.002, } }, }, } -- insert table.insert(Distributions, 1, nDistTable); -- for mod compat: SuburbsDistributions = nDistTable; Above is the first code I've written, the second one below still drops the same amount of items. require "Items/SuburbsDistributions" local i; local nDistTable = { "Crisps", 0.007, "Crisps2", 0.002, "Chocolate", 0.002, "SunflowerSeeds", 0.002, "Peanuts", 0.002, "MintCandy", 0.002, "Lollipop", 0.002, } for i = 1, #nDistTable, 2 do table.insert(SuburbsDistributions["all"]["inventorymale"].items, nDistTable[i]); table.insert(SuburbsDistributions["all"]["inventorymale"].items, nDistTable[i+1]); end myDistTable = nil; Any feedback or suggestions is appreciated and I'd like to improve it more.
  5. Hello everyone! I'm little stuck with my problem: I want to insert some loot in zombie corpses, BUT I also want to apply a "modifer" to a chance, based on SandboxVars Loot Rarity (or Server Settings - Loot Rarity). Here is my test mod (text formatting may be borked, not my fault ):
  6. EDIT: This is still occuring in the newest IWBUMS version. The bug has been corroborated by other users as of October 2020 AD. I am submitting further information. Good evening. I am experiencing an odd situation on a custom Map. Now, one might say to oneself, "this is a Mod issue, take it there", but it isn't. The original author of the Map has confirmed the same bug in a game on his map without Mods. In the pictures attached, you will see the issue. In these specific classes of shelving furniture, the game is incapable of spawning anything except books. I searched in rooms marked "TOOLSTORE", "ELECTRONICSSTORE", "MEDCLINIC", "STORAGE", "GROCERYSTORAGE", "JEWELRYSTORE", and various other rare specilizations. Every single one of them spawn books. Only books. Every time. Despite this, I have seen other loot tableswork properly. In a room marked "STORAGEUNIT", I found a Baseball Bat and various tools inside both a filing cabinet and a desk. In those same kinds of places, the types of shelves pictured continue to spawn books, and only books. In the few instances where there are no books, I find empty shelves full of Plaster Powder and Concrete Powder, and five nails. I have never seen a Display Case producing anything but nails and Plaster Powder. It seems, based on what the makers of the Map I played on, that some classes of shelving are hard-coded to spawn ONLY books unless they are in one specific class of room. Some store shelves seem to spawn ONLY books UNLESS they are in an area marked as "GROCERY" or "GROCERYSTORAGE". Am I doing something wrong? Should I restart and run a custom Map, and only the Map, for testing? What governs loot spawning in shelves? Is it tied to the room, or to the shelf? I'm sick of books in my tool stores and electronic stores. Thank you for any assistance you may render. Warm regards and warm bodies, -TURTLESHROOM
  7. This is 1993 Kentucky. Am I really expected to believe all of these people died to slow and stupid zombies without having time to get their home defense firearm? I expect them to not have ammo left most of the time, but seriously, what's with the lack of personal defense weapons in the pockets and under the pillows?
  8. So I recently made a mod that simply adds almost everything to the loot table of zombies at a 0.1 rate table.insert(SuburbsDistributions["all"]["inventorymale"].items, "Base.Spiffo");table.insert(SuburbsDistributions["all"]["inventorymale"].items, 0.1); table.insert(SuburbsDistributions["all"]["inventoryfemale"].items, "Base.Spiffo");table.insert(SuburbsDistributions["all"]["inventoryfemale"].items, 0.1); etc. However because of the sheer amount of items added to the table I pretty much always get something from zombies, can I limit the amount of drops, is it as simple as lowering the drop rate some more or am I asking something that cant really be done yet?
×
×
  • Create New...