portal2
portal2 copied to clipboard
joy_remap_player_for_controller1 2 not found
I am unable to set my controller for second player use in coop. The usual command
joy_remap_player_for_controller1 2
seems not to be supported under linux.
I can confirm that the joy_remap_player_for_controller1
command does not work on Linux. When I try it in the console, I receive the "Unknown Command" error.
This is my system information:
Processor Information:
Vendor: GenuineIntel
CPU Family: 0x6
CPU Model: 0x2a
CPU Stepping: 0x7
CPU Type: 0x0
Speed: 3700 Mhz
4 logical processors
4 physical processors
HyperThreading: Unsupported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Unsupported
SSE41: Supported
SSE42: Supported
Network Information:
Network Speed:
Operating System Version:
Ubuntu 14.10 (64 bit)
Kernel Name: Linux
Kernel Version: 3.16.0-28-generic
X Server Vendor: The X.Org Foundation
X Server Release: 11600000
X Window Manager: Xfwm4
Steam Runtime Version: steam-runtime-release_2014-08-20
Video Card:
Driver: NVIDIA Corporation GeForce GT 430/PCIe/SSE2
Driver Version: 4.4.0 NVIDIA 331.113
OpenGL Version: 4.4
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 60 Hz
VendorID: 0x10de
DeviceID: 0xde1
Number of Monitors: 1
Number of Logical Video Cards: 1
Primary Display Resolution: 1920 x 1080
Desktop Resolution: 1920 x 1080
Primary Display Size: 18.78" x 10.55" (21.54" diag)
47.7cm x 26.8cm (54.7cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 1024 MB
Supported MSAA Modes: 2x 4x 8x 16x
Sound card:
Audio device: Realtek ALC892
Memory:
RAM: 7962 Mb
Miscellaneous:
UI Language: English
LANG: en_US.UTF-8
Microphone: Not set
Total Hard Disk Space Available: 934762 Mb
Largest Free Hard Disk Block: 394979 Mb
Installed software:
Recent Failure Reports:
Does anyone know a workaround?
I wanted to play splitscreen coop with a Steam Controller and a Keyboard+Mouse and couldn't find any way to do it, either. Both the controller and the keyboard and mouse control player 1 if I manually load a coop map.
I don't suppose anyone knows a way to set which player the steam controller is attached to? Is there no proper documentation or even just a list of all console commands?
I added another controller to the mix (a Wiimote, via wminput) and used it to navigate Big Picture and Portal 2's menus, hoping that would push the Steam Controller into a player 2 slot.
Well, the Steam Controller's in-game actions are still bound to P1, but if I use legacy controller bindings, those control P2. That would be a usable workaround... but the emulated right stick is completely ignored for some reason. All other emulated gamepad inputs work, including the left stick.
Oh Valve. Why must thou keep thine code away from us? I could actually be trying to fix this stuff for you instead of banging my head against a black box.
Hi guys, having just gone through this myself, if you're having problems with "joy_remap_player_for_controller1 2" for whatever reason (mine was "Unknown Command"). You can do "in_forceuser 1" Which actually does the opposite, forcing the keyboard / mouse to player 2. Enjoy, and happy gaming!
@TheSteveBorland Thanks for the helpful tip! Unfortunately, whenever I use any button on the controller other than for placing portals, the mouse & keyboard input switch back to player 1. I'm using the Steam controller and tried a couple of configurations, but none helped. Any ideas?
Hm, I use an xbox 360 controller and it works fine. I'm not sure if this has anything to do with it, but I always type in "sv_cheats 1" before doing anything. If that doesn't help, I'm afraid I'm all out of ideas.
@TheSteveBorland Yeah, I used "sv_cheats 1". Thanks anyway.
Let me know if you ever solve it. Sorry I couldn't help more!
Thanks to @TheSteveBorland's in_forceuser 1, I got something working for Steam Controller + KB&M.
First, use a pure gamepad-based Steam Controller configuration, such as the "Gamepad With Camera Controls" template.
Then, run the following commands:
exec config_default
exec joy_configuration_sc_analog
cl_mouseenable 1
sv_cheats 1
in_forceuser 1
Then change to a coop map manually.
For the beginning:
ss_map mp_coop_start
For the lobby:
ss_map mp_coop_lobby_2
The exec commands rely on files that exist in portal2/cfg, which can change with an update. We should probably use the commands from those files directly, instead of relying on them. I might do that later, but right now I don't have the time.
So far, with a couple of minutes of testing, I already found two problems:
- in-game prompts are broken.
- the portal HUD around the reticle swaps colors depending on which player's moving the camera.
I hope this mess doesn't carry over to Source 2.
I can confirm that "Gamepad With Camera Controls" setting works. Yay!
@Darktori Glad to hear it! Good work, @major-gnuisance! Enjoy the delights and frustrations of the coop missions in Portal 2!
Hi guys,
I followed the instruction on Mac OS however it didn't work :/ I can't move or shoot with player 1 with the steam controller. The KB&M part works tho. D you have any updates?
1 .Press ~
to open the Dev console. (It's under the Esc button)
2. Type
cl_mouseenable 1
sv_cheats 1
in_forceuser 1
ss_map mp_coop_start
Thanks to major-gnuisance and TheSteveBorland!
Hello,
this is a major annoyance. I'd be happy to see this fixed anytime in the future. Heck, this issue is 4.5 years old!