Project Zomboid

Project Zomboid

280 个评价
Party System
11
9
5
2
3
4
3
2
3
2
2
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
572.454 KB
2024 年 12 月 30 日 上午 1:23
10 月 4 日 下午 12:41
28 项改动说明 ( 查看 )

订阅以下载
Party System

描述
About
Not having friends that play PZ? Need to check on your chicken coop before it gets dark while doing a long loot trip? Need a getaway driver?

This mod allows you to play up to 8 characters by yourself. By open the radial menu (default to TAB, and is rebindable), you can choose to add new members to your party, to switch to their perspective and play as them!

This comes with these constraints:
- New member will be spawned next to your leader (the character you created in the main menu) and you can only add new member when controlling the leader
- When a member dies, they cannot be revived and is removed from the party
- When the leader dies, you can create a new character as the leader, and your party would be kept the same
- When someone in the party sleeps, their fatigue status will be set for all other party members when they wake up, since sleeping in this game is weird and also UI based, not all player based

Vehicle constraints
Due to vehicle registering and rendering differently than player, I have to enforce this so no one can crash their game. If there's at least one out of all local members (members within the currently rendered cell, about 300x300 from the selected member) inside a vehicle, you have to make sure they exit the vehicle before being able to switch to members that are outside of the currently rendered cell. If you , however, walk away from members inside a vehicle until they are outside of render range, open the party radial menu will force kick them out of the vehicle.

tl;dr: if you wanna switch to a far away member, make sure all the closeby members (usually the one that you can select) are not in a vehicle.

Simple AI (Experimental)
When unfocused member are close, they will:
  • Attempt to drink / eat when thirsty / hungry, only when drink (only select few liquid container for now) / food is in inventory
  • Read existing books, newspaper and magazine when bored. Note that for B42, the reading system is reworked. The AI may reread an already read book and yield no benefit, other than immersion

Command (Experimental)
  • You can ask a member to follow you by right click on top of them and choose the "Ask ... to follow" option
  • You can ask a member to stop follow you by right click on top of them and choose the "Ask ... to stop follow" option

Random event (Experimental)
When switching to a member that is far away, there's a 10% a random event is trigger on that member. Random events currently available are:
  • Eat when hungry, even if no food is in the inventory prior to switching
  • Drink when thirsty, even if no drink is in the inventory prior to switching

More events will be added in the future!

Controller
You can access the party radial menu by selecting the new "Party" option in your "Select" radial menu. Once the menu pops up, use right thumbstick to highlight slice and confirm the slice with "Right Bumper"

Note that the character creation does not work with controller yet, it's currently still cooking!

Known bugs
- On Build 42, the characters that isn't the currently controlled one have their model disappeared. This is due to the new lighting change and for some reason IndieStone specifically told the renderer not to render another player object (FBORenderCell @ line 3527). Thanks Naneek for the FBO cell rendering discovery! There is now a temporary fix for this, but you need to patch your game by overwriting some game files, instruction is provided here.

Frequently asked questions
Why is the limit 8?
- I ran out of distinguishable color.

Are non-leader members their separate entities, with their own moodles and stats?
- Yep. Every character has their own moodles and stats, just like in multiplayer. The only thing that they share right now is level of exhaustion, since there's the limit in the base game where each player can only sleep once every certain amount of time. It's a pain in the neck to get them all to sleep though, I wouldn't think anyone would like to tuck them all to sleep at the same time, so it works out this way.

Does this work with B41 / B42?
- Yes, the mod works with both B41 and B42

Is this multiplayer compatible?
- I haven't tested it, but I would say no, since a lot of things are hardcoded for 1 player. Try it if you want, but you have been warned.

What mods are compatible?
- Mods that modifies character such as traits, stats, etc. are most likely not compatible (unless they have a module for integration). You can always try and let me know which one is and which one isn't. If you found it incompatible, why not just ask if they can integrate? It's easy, I promise! Just send them this thread

Why are some members disabled on the radial menu? Why can't I select them?
- Check the Vehicle constraints section above!

Mod integration
You can learn more on how to integrate your mod into this system thru this thread

Credits
Massive thanks to:
- nolanritchie for his work on Superb Survivor, a lot of discoveries helped making this mod
- Naneek for the FBO cell rendering discovery
- Jianghao for CN translation
- JimmyCC for KO translation

And all early subscribers for testing out and reporting issues!

Like the mod? Buy me a coffee if you can :)
[buymeacoffee.com]

Workshop ID: 3395761583
Mod ID: RiskyPartySystem
热门讨论 查看全部(9)
102
9 月 8 日 上午 10:06
置顶: Bug & Error report
leScepter
28
10 月 4 日 上午 12:37
置顶: [B42 Unstable] Guide To Fix Character Model Not Rendering
leScepter
10
2 月 12 日 下午 8:27
置顶: A Guide For Contributing To Translation
leScepter
345 条留言
MotoSpider 10 月 19 日 上午 8:37 
when i made a character i couldn't see them as the leader
and when i was the character i couldnt see the leader
gloompy7 10 月 15 日 下午 6:01 
you can allready do this without mods when u go on load games u can switch between characters in ur world and create new ones
badatthis 10 月 11 日 下午 4:11 
Oh, it in fact doesn't work in multiplayer and is causing problems there. Is there a way to delete the characters? I can't find one. I've lost control of my character for some reason. I can click on things but not move him at all and the Party Members show up invisible. Like I can see the faintest outline around them and can right click on them to trade, check their medical etc but they don't move and barely exist lol.
Shenpai 10 月 7 日 上午 8:55 
Can't seem to add new characters with the Tab key. Not sure what is going on as the character creation process works, but once I click next to finish the creation, its just stuck on the menu and does not proceed to spawn.

Any ideas on how to fix this or what the problem might be?
leScepter  [作者] 10 月 5 日 上午 9:35 
That's def an interesting way to solve the problem haha. You can just teleport them to Rosewood jail and pretend they are immates. Again, what is saved is the stats of those chars, and those char are recreated using those stats when you join, so if you join multiple times, it would keep creating the same char using those stats.

I did try to remove the character programmatically btw, it just wasn't possible, unless I kill them then clean up their corpse immediately. I wish TIS would give us more useful API on this area, cause it's very limited and lacking rn.
badatthis 10 月 5 日 上午 9:24 
Thanks for the reply! I know my idea isn't like.... the intended use of it... just the closest thing I've found to a kind of annoying problem for folks running storylines in PZ MP. If I have all my admin powers with each character I think I might be able to make it work the way I want.

If they don't remove themselves when I leave than it's just a matter of teleporting them to an admin only area and leaving them locked up there till we need them again. Can have a little jail of NPCs lol. It'll probably be a couple months before the server is in a state to test this (I have so many things to test first) but I'll pop back in and let folks know here how it went in case others are curious.
leScepter  [作者] 10 月 5 日 上午 9:18 
@Sophia I can't say that is what I've seen thru my testing and playthru. It could be mod collision, since switching character is basically telling the game to switch Player 1 cursor to diff world character. It is 100% safe to delete, as the cursor is set to focus your main char on quit.

@badatthis I mean you could try. I havent put in any code to remove Player characters when you leave, because that isn't a concern for SP. For MP, there might be a chance that the player characters you created might get stuck there as uncontrollable characters until you restart the server. When you rejoin, it might spawn another set of characters from your created pool. The point of this mod is to support SP players with the benefits of playing MP, especially with B42 where you have lifestocks and such, it's kinda tying the player down from exploration if they want progression on those mechanics.
badatthis 10 月 5 日 上午 7:05 
So if I understand this correctly I could use this as an Admin on a server to play different NPCs? Like can I be in admin mode and use each character? Right now my only options is to change clothes and hairstyle through a different mod or to drink bleach and make a new character. With this could I make some NPC's as part of my party and park them someplace out of sight of my players and then easily swap them out as needed?

Or am I not understanding what I can do with this mod correctly?
leScepter  [作者] 10 月 4 日 下午 12:41 
Patched :spiffo:
Soultergeist 10 月 4 日 上午 12:38 
Hi, thanks for your mod! Recent hotfix/patch broke the fix to see your other characters (black screen, tiles not rendering, infinite errors, etc.).