Project Zomboid

Project Zomboid

1,521 ratings
Item Stories [beta]
6
2
5
5
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
291.810 KB
Sep 19, 2023 @ 3:10am
Oct 25, 2024 @ 2:55am
12 Change Notes ( view )

Subscribe to download
Item Stories [beta]

Description
This mod makes buildings more "lived in" by spawning items inside them. It is picking what to spawn randomly from a 'story' system.

If you've tried my "'immersive barricaded start" mod , this will spawn items in a similar way, but for every building, and at a much lower chance.

I've made it into a framework, so different item stories can easily be added.

I've tested this thoughout a 20-days-long savefile, so I'm still figuring out the balance for this, but it looks good so far. I'm open to feedback. You can tweak easily the values with the sandbox settings anyway.
Start and Peak sandbox settings use the same principle as my "Time Decreases Loot" or "Time Decreases Car Condition" mods : start settings are applied before the start day, peak settings applied after the peak day, and proportionally scaled settings are applied between start day and peak day.

Other stories can easily be added, to spawn specific items in specific rooms and/or on specific furniture sprites for example.




List of Item Story mods that I have/will release :

I will make an all-in-one mod with all item stories eventually.




Taking suggestions
If you have an idea for an item story, you want an item to have a chance to spawn in some rooms or furnitures, leave it in the comments.
Or better yet, simply make a mod yourself that uses the framework. You only need to know how set up a lua table, how building rooms are named (Click here for a list of PZ's rooms[pzwiki.net]), and how to check furniture sprite names using the Brush Tool of PZ's debug mode.
Though keep in mind that stories can only spawn inside a building. 'Forest' stories aren't possible, for example.




Limitations

Randomized Houses:
Item stories are only generated in rooms that have not generated a vanilla randomized house story event. So if you absolutely want Item Stories to trigger on every room, you'll need set the Sandbox Setting "Meta" -> "Randomized House Chance" to "Never".

Tilesets with no surface offsets :
Some mods use tilesets that haven't properly mapped their tiles' furniture surface offsets, which means some of their furniture tiles will be considered as floor instead of furniture. Which generally means much lower chances of item story spawns.
Even some furniture in vanilla don't have their surface offset mapped. I can't really do anything about it. The devs have said they're going to implement a sudo-3d map for each sprite, but it'll be a while before they release it in a build.
These sprites can be recognized easily by simply trying to "Place Item" on one of these tiles to see that it's not working.

The mod will still work though, it's not like these tiles break anything.




Note : Playing with this means obviously you're going to find more loot. So I recommend either turning down the vanilla loot, or turning down the Sandbox Settings of this mod.



Recommendation:
It is recommended to use Loot Tables Fixed [41.78] alongside this mod, but it's not strictly a must-have.




Can it spawn modded items?
Yes. Specifically, the 'Room Loot' story can spawn them, since it picks items from the same loot tables as containers. And then there's also Zupercarts carts, for which I specifed the item Ids of the carts.
However, I am NOT responsible if another modder hasn't properly inserted their custom items in the loot tables.




Multiplayer : does it work ?
It worked when I tested it on my own local dedicated server with only me on the server.
The framework is basically client side only, though, so I'm expecting some things to go wrong.




What about performance?
I made sure that when the player explores, the item stories spawner triggers on one unexplored room at a time, every tick, instead of all unexplored rooms at once. Because of this, even when I teleported into the middle of Louisville's biggest buildings, I didn't notice any lag.




Workshop ID: 3037988451
Mod ID: ItemStories_RoomLoot
Mod ID: ItemStories_Framework

Workshop ID: 3037988451
Mod ID: ItemStories_RoomLoot
Mod ID: ItemStories_Framework
Popular Discussions View All (3)
46
Jun 17 @ 4:27pm
Bug reports
Champy
1
Feb 9, 2024 @ 4:34am
Suggestions - Item stories
🌴 Zunder 🌴
1
Dec 10, 2023 @ 2:26pm
That actually cool mod - Thanks!
Unamelable
185 Comments
f Jun 20 @ 10:40am 
Hello, I don't know why when I search for my own corpse or the corpse of my online teammates after my character dies, I get an error, after adding the bandit mod, it also reports an error when the bandit appears, your mod is very great, please fix these problems if you can, thank you
CocoBat Jun 9 @ 11:55am 
Does anyone know of any mods similar to this that work on B42?
Starman Mar 2 @ 8:28am 
Yeah, need update this cool mod! :steamthis:
ENERHEL Mar 1 @ 12:06pm 
Update to b42 please? :c
xW1CK3DxDANKx Feb 22 @ 1:08pm 
Your mods are fire. I gave you a lot of steam points so more people download them
Cyanide Feb 10 @ 5:26am 
@tilarum That would piss me off xd I like having loot spawned but I like to keep what I find. Insanely rare in sandbox and ridiculously rare mod makes me keep even 20 screwdrivers. Just in case.
tilarium Feb 9 @ 10:18am 
Fun fact #73: Just because you found something doesn't mean you have to take it. Just ignore the loot, or my preference to get rid of what I think is to much, take it and put it on the next zombie I kill so it'll eventually despawn when the zeds decays away.
Cyanide Feb 9 @ 8:54am 
Is there a way to make it spawn LESS loot as when I am playing on insanely rare loot this one carries me through the game too much but I really like having it. :)
Kaoeutsu Jan 5 @ 9:13am 
calm down people, the dev already said just a few comments below that it will be updated for B42, chill.
CrusaderDave Jan 4 @ 6:48pm 
Is "Room Loot" part of this mode already? I tried clicking it like the others and it wont let me. I tried searching for it and couldnt find it. Anyone else having this issue?