Kingpin

Kingpin

pokl1 Sep 10, 2019 @ 2:19pm
Mouse Support? [Windows 7 Ultimate 32Bit]
Getting into the game I'm unable to move my mouse at all, here are the following commands I've tried.

in_initjoy 0
in_initmouse 1
in_joystick 0
in_mouse 1
m_interpolate 0
m_forward 0
sensitivity 1 - 100

Adjusting polling rate and CPI haven't made a difference, same with disabling Steam Overlay.

I've also installed the unofficial patch here with no luck.
http://download.kingpin.info/index.php?dir=kingpin/patches/unofficial/mh%27s_kingpin_patch/


Any help would be appreciated!

edit #1:
I noticed that with the Steam Overlay enabled and active in-game, I am visually unable to move my cursor within the application. When tabbing out of the application the cursor can move again until tabbed back in.

Here's a visual of what's happening.
https://streamable.com/qjy82

I suspect this is the main bug preventing me from looking around in-game.
Last edited by pokl1; Sep 10, 2019 @ 7:00pm
< >
Showing 1-10 of 10 comments
in_initmouse 1
and
in_mouse 1
should be 1 for the rest i dunno:
http://www.kingpin.info/?p=console-mouse
There is no mouse function in the menu.
What kind of mouse you got and what drivers for mouse have you installed?
pokl1 Sep 10, 2019 @ 5:24pm 
Originally posted by ̲̅FREDΖ̲̅™NL:
in_initmouse 1
and
in_mouse 1
should be 1 for the rest i dunno:
http://www.kingpin.info/?p=console-mouse
There is no mouse function in the menu.
What kind of mouse you got and what drivers for mouse have you installed?


Currently I'm using the Sensei 310 by SteelSeries.
I'm using the latest mouse drivers for this device.

Should mention that freelook is also set to 1.
Last edited by pokl1; Sep 10, 2019 @ 7:02pm
mrdamage52 Sep 11, 2019 @ 5:33am 
The mouse doesn't work in the in game menu you have to use the keyboard keys.
pokl1 Sep 11, 2019 @ 5:43am 
Originally posted by mrdamage52:
The mouse doesn't work in the in game menu you have to use the keyboard keys.

Even when in-game, I'm unable to move the mouse.
https://streamable.com/ykutw
Last edited by pokl1; Sep 11, 2019 @ 5:54am
pokl1 Sep 11, 2019 @ 6:16am 
Mouse works in the QuakeWorld engine, and id-tech 3 engine. The Quake 2 engine seems to disable sensor inputs ???

When the Quake 2 engine crashes; on Quake 2 or Kingpin, I won't be able to move my cursor on desktop until a full restart of my computer.

I'm assuming this cannot be fixed with a patch?


if it's any help.
There's some differences with how input is called in the Quake 2 engine compared to QuakeWorld & id-tech 3.
https://github.com/id-Software/Quake-2/blob/372afde46e7defc9dd2d719a1732b8ace1fa096e/win32/in_win.c

QuakeWorld
https://github.com/id-Software/Quake/blob/bf4ac424ce754894ac8f1dae6a3981954bc9852d/QW/client/in_win.c

Quake 3 Arena
https://github.com/id-Software/Quake-III-Arena/blob/dbe4ddb10315479fc00086f08e25d968b4b43c49/code/win32/win_input.c
Last edited by pokl1; Sep 12, 2019 @ 4:21am
mrdamage52 Sep 11, 2019 @ 4:41pm 
One thing you can try is this-
Open your kingpin/main folder and delete the config.cfg file. This will reset all your settings back to default.
When you start Kingpin again you will have to set everything up gain but only use the in game menu don't type in any extra commands and see if that helps.
pokl1 Sep 11, 2019 @ 5:12pm 
Originally posted by mrdamage52:
One thing you can try is this-
Open your kingpin/main folder and delete the config.cfg file. This will reset all your settings back to default.
When you start Kingpin again you will have to set everything up gain but only use the in game menu don't type in any extra commands and see if that helps.

Still having the issue after doing this. I've also done a full reinstall with no difference.
Last edited by pokl1; Sep 11, 2019 @ 5:59pm
So what happens if you press 1 off these keys:
bind DEL "+lookdown"
bind PGDN "+lookup"

Originally posted by Gel:
I'm using the latest mouse drivers for this device.
Using the lasted mouse driver is not always the best it can have bugs.
Use stable drivers instead.

Youre the only one I heard with this bug. Did you do it on purpose or you know how to fix it in Quake2?

All i see in code is:
if (!mouseinitialized)
return;

Youre windows mouse driver is not active?
Or how would you fix it in code?
1. You could try to hook up a other mouse a normal mouse with just normal windows drivers.

2.
https://i.gyazo.com/5fae8dfdaedbcfc4058f3c9fbb89f3a1.png
All do i see you already have 2 mouses...
One with a weird arrow in the icon maybe it has some conflict?
The properties of the mouse seems the default windows drivers.
Also in Other devices you have not all drivers installed not sure if that got anything todo with the mouse.

3. You could try to uninstall the mouse drivers and software and see if that works.

4. You could try install a VirtualBox: https://en.wikipedia.org/wiki/VirtualBox with a new OS and 3D support and see if there you got the same problem.

5. To patch Kingpin would be pretty hard and not sure if that would work. But i can explain:
if (!GetCursorPos (&current_pos)) return;
If that is the code it gives problems. But you could try and see if you know how to compile the engine for quake2 and see if it there works. By changing the code to:

GetCursorPos (&current_pos)
If the mouse then works in Quake 2 you know that is the problem. Now the hard part by trying to fix it in kingpin with a patch.

Firstt off all you need some exe comparison tool: https://en.wikipedia.org/wiki/Comparison_of_file_comparison_tools
And some good hexeditor (Not all hex editor are good):
https://en.wikipedia.org/wiki/Comparison_of_hex_editors

The
GetCursorPos (&current_pos)
probably gives problems trying to patch so see if
if (GetCursorPos (&current_pos)) continue;
Also works by doing some testing with compiling quake2 eninge into quake2.exe (The code should not be much changed becouse it's hard to change so many bits)

You will need 2 quake2.exe files.
1| That just compiled normaly without any fixes.
2| That is compiled with fixes.

Compare the 2 exe files with a comparison tool that support hexx and see what bits are changed.

Then try to find the same location in a orginale kingpin.exe (not steam version, steam version checks if exe file is changed.)
http://download.kingpin.info/index.php?dir=kingpin/patches/official/windows/&file=kingpin_v121_patch.zip

And alter the bits are changed with a hexeditor.

For example:
if (!GetCursorPos (&current_pos))
is changed to:
if (GetCursorPos (&current_pos))
Only 1 bit should have been changed the not bit. https://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B

If there is more 1 bit changed then something went whrong or time/date are compiled in quake2.exe and try to ignore that part. Until you figure out correctly how to fix it. With a hex editor maybe try patching quake2.exe aswell and see if there works before patching the kingpin.exe



Last edited by ̲̅FREDΖ̲̅™NL; Sep 12, 2019 @ 7:29pm
mrdamage52 Sep 13, 2019 @ 4:55am 
Someone also suggested something simple. Try the game in windowed mode and see if that works.
< >
Showing 1-10 of 10 comments
Per page: 1530 50