Project Zomboid

Project Zomboid

67 个评价
Spring Cleaning - See remaining zombies on map [B41/B42]
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.888 MB
2 月 22 日 上午 3:10
8 月 11 日 上午 6:13
10 项改动说明 ( 查看 )

订阅以下载
Spring Cleaning - See remaining zombies on map [B41/B42]

描述
SPRING CLEANING [B41/B42]

Ever dreamt of wiping Knox County from those pesky inhabitants that have swarmed it?
Ever been unsure if those scoundrels truly left, or were waiting in a dark corner of a forest, plotting their revenge?

Well, fret no more! Now introducing SPRING CLEANING

HOW TO USE
  • IMPORTANT (Build 41/Build 42.10 previous players only): Set map to "Aerial" instead of 'Isometric" in order to properly render this mod
  • From Build 42.11 onwards, thanks to new APIs, the symbols get automatically adapted in the default Isometric view
  • Zombies around players get automatically fetched every ~5 seconds

FEATURES
  • Fetch zombies surrounding players
  • Show zombie count on map, divided in 100x100 cells
  • Show zombie density on map with colors
  • Toggle the count and density On/Off with a button on the bottom right of the map
  • Data is saved to file and then restored on world load
  • Multiplayer compatible

COMPATIBILITY
  • B41/B42 compatible
  • Can be added mid-save to any world
  • Can be removed mid-save (toggle density off before otherwise you will have to clean the map by hand)
  • Should be compatible with any mod

Workshop ID: 3432061209
Mod ID: springCleaning
73 条留言
Jiopaba 11 月 7 日 上午 2:13 
Honestly, if I could make a suggestion for a possible workaround, would it be possible to make larger zombie counts a bit "stickier"? Like, when updating the cache of zombie counts, don't update to a lower number unless it's lower for two checks in a row. When walking around this might make it seem slightly less responsive, but it would mean that the count won't erroneously update from "80" to "4" because it tried to run a check while you were driving away from a tile at 40 miles per hour while it was unloading and happened to get unlucky with the timing.

Instead of going "80 -> 2" it would go "80 -> 2 (Don't Update Yet) -> Not Loaded" while when you're right next to a tile and drawing zombies with gunfire or whatever it could still go "80 -> 2 (Don't Update Yet) -> 2 (Update)."
SilverBeam  [作者] 11 月 7 日 上午 1:01 
I might include a slider to set the zombie update speed in a further update, but be warned that computing the cell each zombie belongs to and updating them on the map, even if i am already updating only the changed cells, is a quite heavy process
SilverBeam  [作者] 11 月 7 日 上午 12:58 
@Jiopaba The game works by spawning zombies in a radius around the player, and i cannot mess with that/pre-render zombies. Due to performance concerns, my mod checks the zombies surrounding the player each 5 seconds and updates the grid cells where the zombies fall into.

If you go too fast with a vehicle you'll probably see the wrong amount of zombies in the grid, but keeping track of zombies faster/per each spawned zombie is way too taxing on the game engine and would cause stutters
Jiopaba 10 月 27 日 下午 5:42 
I feel like there's something going on in my game. If I ride through town, it'll correctly render the areas around me as red showing dozens or even hundreds of zombies. But as I drive away from an area, it'll suddenly update to say there's like 1-10 zombies left. It's like it's measuring further out that the zombies are being loaded, and so as I leave an area it takes a snapshot of a mostly empty cell with unloaded zombies.

The end result is that when I look at the map of the town I'm at, totalling up all of the cells (which are orange) suggests there's maybe 150 zombies in town. In fact, I know that's an unederstimate by a factor of ten.

Is there a setting I can change to make the game load zombies further away that might help with this? I can't think of any particular mod I would have that might be causing any sort of issues like this.
FlufyFox 10 月 19 日 下午 8:21 
oh hey sup, yeah i can try, i have updated my game to 42 now, but if my friends come back to play i will try to use the mod again :3
SilverBeam  [作者] 10 月 18 日 上午 9:50 
@Schierke
It seems you found the first true incompatibility. Sadly, i cannot do much about it. I read that mod's code: they hijack the map for themselves, and then save and "swap" symbols when their mod "map layer" is toggled. I cannot do much about this behaviour as i cannot realistically know their map state. I would advise you to enable my symbols only when you are on the Vanilla map, and then disable them before switching to their "Faction map layer".

@FlufyFox
I added you for a PM. I was not able to reproduce your error. Please send me a screenshot/pastebin of the console error

Thanks everyone for your patience and sorry for my late reply :)
FlufyFox 9 月 21 日 上午 1:52 
i having the map overlap problem too, seems its starts making the notes infinitly, for me happens only in MP
Schierke 9 月 14 日 上午 1:57 
@SilverBeam it seems that there's compatibility issues with the Shared Faction/Coop Map Symbols mod (https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2877685881)

With only these two mods turned on, issue persists both in singleplayer and multiplayer (both the vanilla map layer and mod one).

Due to an unknown issue, notes from your mod transform into the notes on the map and then overlap on each other, which is not supposed to happen.

Unfortunately, as I do not have modmaking experience, I'm not sure what exactly causes this issue, but I would like to assist you if that is required.

Your mod is great, keep up the good work!
Schierke 8 月 21 日 上午 10:27 
Is there any way to get rid of the notes? While the zones are toggle-able, the notes stay on the map at all times.
SilverBeam  [作者] 8 月 12 日 上午 5:13 
@Ryan
Performance impact is negligible. The map is updated once every 5 seconds, and only the cells surrounding the player are updated. If you want max performance, you can just keep the map overlay disabled and enable it only when needed. Data collection still happens in the background, and the only taxing part of the mod is map drawing.