Project Zomboid

Project Zomboid

Subpar Survivors
Ashiel Aug 10, 2021 @ 1:34pm
Controller Issue? Can't interact with NPCs.
Hey there! I play Project Zomboid with an Xbox controller. For some reason whenever I press the button to bring up the menu for interacting with nearby things (X default), I see the survivor menu options, but cannot actually interact with other survivors.

Would it be possible to make it scan for survivors within maybe half a sight range so we can call and/or talk to them? Grabbing the mouse to interact with other survivors is kinda awkward, especially when you're playing from the bed or couch or something. ♥
< >
Showing 1-8 of 8 comments
SlightlyMadman  [developer] Aug 10, 2021 @ 2:12pm 
I've never played with the controller, is there a way to map buttons to keyboard commands? You can link a number of actions to keyboard commands in the settings.
Ashiel Aug 11, 2021 @ 1:56pm 
Originally posted by SlightlyMadman:
I've never played with the controller, is there a way to map buttons to keyboard commands? You can link a number of actions to keyboard commands in the settings.
Not that I am aware of (at least not within PZ itself), though I doubt that remapping would be helpful anyway, since pretty much all the buttons are more or less accounted for. The problem isn't that I don't have a button to access the menus, it's that I can't click on the NPCs.

Basically the way it works on the controller is, you press X and it opens the usual interaction menu, and adds additional options to the menu based on things nearby. For example, if I am near a stove and press X, it will include a "Turn on" option on the menu for every stove, light switch, etc. If I am next to a window and have things like sheets or boards, I can get options such as "Add Sheet" or "Barricade", and so on.

When playing with Subpar/Super survivors installed, pressing X shows me the menus for the mod (such as assigning bases, giving general commands such as whether the group should use melee or ranged weapons, or whether they should be hostile or friendly to others). It will even offer to allow me to medically examine someone if they are nearby (presumably vanilla behavior since the NPCs are AI-controller PCs).

However, you can't actually *click on* any NPCs you come across in the world (normally you open the menu via your mouse by clicking on the NPC and it adds the NPC's name to the menu, and then you select their name to get options like "Invite to group" or "give food" and stuff like that), so you can't actually interact with them and the game doesn't know to scan for them nearby.

Now it's just a guess but I suspect you could probably just copy/paste/edit some existing code from the game to make it scan for nearby survivors (similar to the way that the game will already add the option to perform a medical check if you are near a survivor in vanilla), and then it should just add their names to the list when in range (though if this is possible, greatly extending the range compared to the medical exam would probably be a good idea).

If it can't be fixed for controllers, I appreciate the effort you've put in already. Folks like me that play on controller will just have to wait until the PZ dev team adds NPCs into the game (circa 2099 or so :P).
Ashiel Aug 11, 2021 @ 2:09pm 
Here's some screenshots that will hopefully be worth a thousand words a piece.
Pressing X to open menu[i.gyazo.com] shows the options for the mod. ♥

However, when I came across "Hannah" and "Marie", pressing X to interact with them looks like this: No NPC names[i.gyazo.com].

Yet, if I right click on them (or close to them apparently since it selected bot of them when I right clicked them) with the mouse, the menu changes to look like this: NPC names added[i.gyazo.com], allowing me to interact with them.
Ashiel Aug 11, 2021 @ 2:14pm 
Something interesting and a little bizarre I noticed while testing for the screenshots is that the game seems to *try* to find them. For a split moment, Hannah displayed in the controller menu but only when she was very far away (like across a street far) and I couldn't replicate it thereafter, so maybe it just needs help aiming? lol
stoicdunlap Aug 14, 2021 @ 9:42pm 
i wonder if it has anything to do with how the cursor performs when using a controller
Ashiel Aug 16, 2021 @ 6:19pm 
No clue. I can still use the cursor when using a controller, or the keyboard, such as if I decide I want to rename a bag or something (I have to type the new name with the keyboard). The two seem mostly interchangeable.

Pretty sure it just isn't recognizing that the NPC is near enough to interact. If they're near enough for the medical exam option to pop up with the controller, the should probably be near enough to speak to (truly, double or triple that range should likely be true :P).
reubenstevens1 Aug 15, 2022 @ 10:11pm 
I found out that if you keep the cursor on your character you can go up to an NPC and press X and then their name will show up in the list. I guess it's just kind of annoying that you have to keep the cursor on your character the whole time you are playing the game. Maybe you can keep it off you a little bit away and it will still work. It is just easier to keep it on you so you don't have to try and navigate it to talk to an NPC with the controller or keep switching back to the mouse to select the NPC.
Last edited by reubenstevens1; Aug 15, 2022 @ 10:32pm
Ashiel Aug 21, 2022 @ 3:34pm 
Originally posted by reubenstevens1:
I found out that if you keep the cursor on your character you can go up to an NPC and press X and then their name will show up in the list. I guess it's just kind of annoying that you have to keep the cursor on your character the whole time you are playing the game. Maybe you can keep it off you a little bit away and it will still work. It is just easier to keep it on you so you don't have to try and navigate it to talk to an NPC with the controller or keep switching back to the mouse to select the NPC.
Thank you. I might actually have to give this mod an honest try with this. :v
< >
Showing 1-8 of 8 comments
Per page: 1530 50