Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here: https://t.co/4A50m6IKen

2 years ago

Advertisement
July 16, 2019, 04:11:49 pm

Author Topic: JC2MP Key ReMapper  (Read 2493 times)

Dev_34

  • Full Member
  • ***
  • Posts: 158
    • View Profile
JC2MP Key ReMapper
« on: January 22, 2016, 05:09:00 am »
I've heard a lot of complaints from players with AZERTY keyboards that certain in-game scripted features in servers become hard to use or even unusable given that most jc-mp coders work with a QWERTY keyboard in mind.

While making key-binds in servers configurable would be the best option by far, this more than likely involves GUI code(eww) and tends to be viewed as fairly low-priority.

I decided to put together a simple AHK script today for all my AZERTY homies in JC2MP who might find it useful.
It works by launching the executable as Administrator on the Windows operating system, and inputting the key(or key combination) on the right side that you want to see when the key on the left side is pressed.
Then the window can be minimized with the Minimize button; using Alt-Tab or something similar may override a key field.

The script will only modify keystrokes when JC-MP is the current window you're looking at, meaning you can have it active and use other processes without interference. Note that leaving some fields blank may cause the script to throw errors.
For holding down keys, I had to adjust the script to DirectX's input polling, meaning it might be a bit choppier than usual. It should also be noted that the script will interfere with chatting via JC-MP, however there are two buttons to enable and disable the remapping.

You can remap up to 6 keys with one instance of the script.
This isn't a Lua script, and should be run independently of JC-MP on a Windows OS.

I'm not sure what the etiquette is surrounding the sharing of executable files, so feel free to do a virus scan first  ;)

Download Link: https://github.com/dev3434/Key-ReMap/archive/master.zip


« Last Edit: January 22, 2016, 05:55:46 am by Dev_34 »

THREEOHSIX

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: JC2MP Key ReMapper
« Reply #1 on: January 23, 2016, 01:44:28 am »
This is great and usefull ! thank you for saving the AZERTY homies <3

Starsky

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: JC2MP Key ReMapper
« Reply #2 on: January 12, 2017, 07:29:38 pm »
wow great thank you for that, we love your team ! never give up :))