#๐Ÿ”’ Help with Code (Controlling a Vjoy axis with Keyboard)

6 messages ยท Page 1 of 1 (latest)

opal furnace
#

Im making a Software for Controlling the x axis output of vjoy with a keyboard. since this will give a steering input into a game, i obviosuly want to add a lot of customization to make it enjoyable. I got stuck when trying to add Action keys that can limit the Steering when pressing a specific button to a specific % Value.

Im guessing that im not missing much since im not getting many errors and had some semi working versions before which had other bugs tho.

After im done with the action keys feature i also want to add fullsteer binds so you can Fullsteer instantly.

Current already Working Features: Linearity, Sensitivity, Sensitivity on Release and Countersteer Multiplier.

For the Action Keys I also want to add a Snap to action Key sensitivity multiplier that will apply when holding an action Key.

The reason im making this Sotware is because in the game im playing, there is a heavy bias towards wheel input and it can already easily be abused for controller, but there are people that cannot afford a controller or just dont have one, so i want to make this software to make it fair play for everyone.

(I have absolutely no coding knowledge and everything I got working already was done using Chatgpt aka Code Pilot)

Current Issue: Get an Error Code when trying to bind an action key that "set" is not defined, even tho it is defined before and also works on binding the normal steer buttons

Here is my Code: https://paste.pythondiscord.com/VQAA

vivid oliveBOT
#

@opal furnace

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

opal furnace
#

this is the error:

line 331, in bind_action_key
action_key["binding"].set(event.keysym)
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'set'

opal furnace
#

wow nice help

vivid oliveBOT
#

@opal furnace

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.