Project Zomboid

Project Zomboid

232 个评价
Item Stories [b42] (All in One)
2
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
233.760 KB
9 月 16 日 上午 9:17
1 项改动说明 ( 查看 )

订阅以下载
Item Stories [b42] (All in One)

描述
A simple b42 port of my "Item Stories" b41 mod.

I've bundles all item stories into an All-In-One package, as requested.




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.




Since this mod will spawn extra items, it is recommended you play with LOWER loot than usually would.
I'd say it's pretty balanced so far, but I'm open to feedback.




Start and Peak sandbox settings : 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 via submods, to spawn specific items in specific rooms and/or on specific furniture sprites for example.




List of Item Stories included :
  • "Room Loot": Spawns an item picked from the loot table of the room the item will spawn in. Kitchen items in kitchens, bedroom items in bedrooms, etc. Chance are low and customizable through sandbox settings, and it can trigger in ALL rooms and on ALL furniture sprites.
  • Propane Tanks in Garages :Triggers in garages, basements, and sheds, spawns propane tanks
  • ZuperCart's Supermarket Carts in Stores: Triggers in a variety of stores. Spawns Zupercart's supermarket carts. (Requires Zupercart mod, this story isn't used if you don't enable Zupercart)
  • ZuperCart's Trolleys in Warehouses & Factories : Triggers in a variety of factories & storage areas. (Requires Zupercart mod, this story isn't used if you don't enable Zupercart)
  • Pool cues and balls on billiard tables : self explatnatory
  • Pallet crates in warehouses : Triggers in a variety of factories & storage areas. (Requires Forklift mod, this story isn't used if you don't enable Forklift)

  • (New for this version) Rideable stories : Spawns a bicycle/skateboard/kick scooter sometimes in garages, basements, and some other rooms. (Requires Bicycle or Skateboard or Kick Scooter mod, this story isn't used if you don't enable one of them)

I've removed the "Tire Racks in Mechanics and Garages" story , it was too much of a pain in the ass to deal with.




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 (or basement). '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. One example would be the strongbox tiles, the 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 fine though, it's not like these tiles break anything.

2D items :

Some items in vanilla (like the ValuTech television, or the candy) don't have a 3D model.
Also, some mods don't make proper 3D models for their items, too.
In such cases, the item will be displayed in 2D on the ground. So don't be surprised if you find some !




Can it spawn modded items?
Yep!
Specifically, the 'Room Loot' story (the most common one) can spawn them, since it picks items directly from the same loot tables as containers.
And then there's also Zupercarts carts & trolleys, and Forlift's pallet crates, 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.




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: 3569303590
Mod ID: ItemStoriesB42
热门讨论 查看全部(2)
14
10 月 19 日 上午 1:21
置顶: Bug reports
Champy
0
9 月 24 日 上午 11:01
TRANSLATIONS
SIMBAproduz
38 条留言
Thebrokenbucket 10 月 17 日 下午 7:32 
Does this amazing mod still work??? surprised this isnt base
Aurus 10 月 16 日 上午 4:42 
is still working in last patch?
Toto 10 月 4 日 下午 3:57 
:( to many errors . damit that patch ruin alot of mods :(((((((
I NEED THIS MOD . i love the playstyle less items in furniture and more on the ground or tabel that brings that boring look alive. well i hope you will find soon time , i love this mod alot
Champy  [作者] 10 月 4 日 上午 5:25 
Hey guys, I'm sorry I have little to no time to look into things. Last time I checked in the 42.12 patch preview, things seemed to work fine with only Item Stories enabled. Some mods have broken loot tables that will cause errors with this mod. I'd say it's more up to them to fix their loot tables than it is up to me to implement a fix specifically for them. It's also possible modded custom tiles don't play nice.
I have sadly little time for modding to check for sure if everything runs smoothly. I'll try to make some time eventually but no promises.
Sqwerm 10 月 2 日 下午 8:34 
"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"

I suspect that maybe the most recent hotfix broke this when they "Disabled most aspects of the visual system that blacked out unseen rooms"?
Островський 10 月 1 日 下午 7:53 
Can confirm, it *works* on the surface but causes script errors when generating new tiles.
NEP IS LIFE 9 月 29 日 下午 7:46 
Got some constant error spawning right after character spawn, reported.
SIMBAproduz 9 月 27 日 下午 8:15 
i report some erros after b42.12 on a discussion topic, ok? I dont know if this do any difference but, i playing a new save game on a modded map
Champy  [作者] 9 月 26 日 上午 9:25 
@Inverspe no
@masterst @Mi1kyPudd1e Seems to work fine on 42.12 for me
@SIMBAproduz thanks, will add them next time I update the mod
Inverspe 9 月 26 日 上午 5:42 
does this spawn extra items inside containers? shelves? etc?