Jump to content


Photo

[MOD] JABIA_InputReconfig mod - previously edgescroll mod


  • Please log in to reply
90 replies to this topic

#1 shole

shole

    Little Ivan

  • Members
  • PipPipPip
  • 36 posts

Posted 15 February 2012 - 11:38 AM

Originally created as a simple edgescrolling mod, it's now a more general purpose JABIA input configuration mod
Current features include:
  • Edge scrolling
  • Middle mouse button zoom
  • Middle mouse button rotate
  • Custom rebinding of keys (by default esc is menu, keypad0-3 are stances)
  • Custom zoom distances and camera angles
all can be adjusted or disabled in JABIA_InputReconfig.ini
for example, zoom is already in the mouse scroll and it makes rotating jittery, so you can disable it if you prefer

Simply place it in your game folder and run it.
It will check if the game is running, and will run the game if not, so you can just make a shortcut to this on your desktop.

If you get memory patching errors, your antivirus software might be blocking it, so you need to add it to exceptions.
If you can't get it to work, you can disable memory patching in the .ini file.

Note that as it's based on AutoIT scripting system, some antivirus software might whine that it's a keylogger or something.. it is not.
For this reason i also give out the source code in the .au3 file below.


v0.7b - 1.11 compatible
Download mod
Download source


v0.7 - 1.11 compatible
Download mod
Download source


v0.6 - added memory patching with camera control presets
Download mod
Download source

v0.5a - added memory patching with camera control presets unstable

v0.4a - renamed to InputReconfig - added general purpose keybindings and external config file
Download mod
Download source

v0.3 - now works in a window - no longer interferes with keyboard WSAD movement
Download mod - edge scroll, middle mouse button rotate/zoom
Download source

v0.2 - added rotate/zoom to middle mouse button

v0.1 - initial release.. only edge scrolling
Download mod - edge scroll only
Download source

#2 shaamu

shaamu

    A real Bubba

  • Members
  • PipPipPipPip
  • 59 posts

Posted 15 February 2012 - 12:01 PM

hahah cheers am sure alot of poeple will find this very usefull

#3 Silveressa

Silveressa

    Little Ivan

  • Members
  • PipPipPip
  • 36 posts

Posted 15 February 2012 - 12:32 PM

Maybe i'll look into if i can turn middle mouse button to rotate/zoom next


That'd be awesome if you could do so, and thanks for the edge scrolling, much easier then wasd for those of us who use the mouse with our left hands.
Eingefügtes Bild

#4 Mikee

Mikee

    Jagged Member

  • Members
  • PipPip
  • 17 posts

Posted 15 February 2012 - 12:42 PM

That'd be awesome if you could do so, and thanks for the edge scrolling, much easier then wasd for those of us who use the mouse with our left hands.

And yet again is there community to fix devs mistakes. Thanks for this mod.

#5 packinheat81

packinheat81

    Fresh Blood

  • Members
  • Pip
  • 3 posts

Posted 15 February 2012 - 02:26 PM

Sweet. Thanks for this, much appreciated.

#6 shole

shole

    Little Ivan

  • Members
  • PipPipPip
  • 36 posts

Posted 15 February 2012 - 03:06 PM

added middle mousebutton rotate/zoom
if you alt+tab out of the game or play in a window, you might have alt or ctrl being stuck in other apps
just hit alt+ctrl to clear that

#7 goodknight

goodknight

    A real Bubba

  • Members
  • PipPipPipPip
  • 94 posts

Posted 15 February 2012 - 06:02 PM

THANK YOU!!!!!
Devs see what modding can do?
You must find a way to create mod tools!

#8 stonetoes

stonetoes

    Jagged Member

  • Members
  • PipPip
  • 25 posts
  • LocationScotland

Posted 15 February 2012 - 06:59 PM

Works well, thank you.

#9 Morlock

Morlock

    Fresh Blood

  • Members
  • Pip
  • 7 posts

Posted 15 February 2012 - 07:37 PM

This is a very useful mod, thanks for your work.

#10 luppolo

luppolo

    Reitman's Fate

  • Members
  • PipPipPipPipPip
  • 168 posts

Posted 16 February 2012 - 01:38 AM

WASD simulation doesn't work while windowed.
ALT simulation is ok while windowed.

#11 shole

shole

    Little Ivan

  • Members
  • PipPipPip
  • 36 posts

Posted 17 February 2012 - 08:25 PM

updated

v0.3 - now works in a window - no longer interferes with keyboard WSAD movement
Download mod - edge scroll, middle mouse button rotate/zoom
Download source

window location and size is detected when you select the window.. if you drag it around and you notice some scroll edge isn't working, alt+tab out and back in again and it should work

#12 luppolo

luppolo

    Reitman's Fate

  • Members
  • PipPipPipPipPip
  • 168 posts

Posted 17 February 2012 - 11:02 PM

updated

v0.3 - now works in a window - no longer interferes with keyboard WSAD movement
Download mod - edge scroll, middle mouse button rotate/zoom
Download source

window location and size is detected when you select the window.. if you drag it around and you notice some scroll edge isn't working, alt+tab out and back in again and it should work


Thanks.

#13 Bl2ck_Dog

Bl2ck_Dog

    Fresh Blood

  • Members
  • Pip
  • 2 posts

Posted 17 February 2012 - 11:28 PM

Thank you, it is working. But turning camera seems to be very slow, much slower then with ALT key, can it be fixed?

#14 shole

shole

    Little Ivan

  • Members
  • PipPipPip
  • 36 posts

Posted 18 February 2012 - 01:00 AM

try not to move your mouse vertically
the engine only allows zoom OR turn at one time
whichever direction you move the mouse more, gets done (which is also why moving mouse diagonally causes very jittery movement)
i guess i could do a version without the zoom integrated, if that would be useful (as it does exist in the mouse wheel already)

#15 Splatter

Splatter

    Unfinished Poster

  • Members
  • PipPipPipPipPipPip
  • 428 posts
  • LocationWild West Germany

Posted 18 February 2012 - 01:04 AM

try not to move your mouse vertically
the engine only allows zoom OR turn at one time
whichever direction you move the mouse more, gets done (which is also why moving mouse diagonally causes very jittery movement)
i guess i could do a version without the zoom integrated, if that would be useful (as it does exist in the mouse wheel already)


I Have a Big Request scine you allready send orders to the BIA Window, would it be possible to monitor the Keys also ?
I´m talking of a Custom Key Config, So for Example it could be an Ini File were people write set there Keyconfing and Your tool reads it out and sends the Propper Key to Game Window ?

#16 shole

shole

    Little Ivan

  • Members
  • PipPipPip
  • 36 posts

Posted 18 February 2012 - 01:23 AM

i can capture pressed keys but i can't prevent them from entering the game
like now i capture the middle mouse button, and then send a "key up" action to the game to cancel the scrolling action, making the game think i just clicked really quickly
there might be some more powerful tools for that kind of things
what kind of changes were you thinking of exactly?
keys that are unassigned in the game could of course be used

#17 Splatter

Splatter

    Unfinished Poster

  • Members
  • PipPipPipPipPipPip
  • 428 posts
  • LocationWild West Germany

Posted 18 February 2012 - 01:36 AM

i can capture pressed keys but i can't prevent them from entering the game
like now i capture the middle mouse button, and then send a "key up" action to the game to cancel the scrolling action, making the game think i just clicked really quickly
there might be some more powerful tools for that kind of things
what kind of changes were you thinking of exactly?
keys that are unassigned in the game could of course be used


I read often here in the Board that people complain about not being able to customize the Keys that are used in the Game like P for Pause as an example.
Yep I know Keys that are allready be bind to something can´t be used, but it would at lest be something like custom Key Config.
Well PauseKey would be difficult to put in an ini scine it can´t be written that easy, but maybe it´s possible to just use normal Letters and some Sort of code for Special Keys

#18 shole

shole

    Little Ivan

  • Members
  • PipPipPip
  • 36 posts

Posted 18 February 2012 - 03:23 AM

why use P when you can just press SPACE for.. pause? :)
it would be trivial to have an ini file that had entries like "p={PAUSE}" for example, where pressing P would be the same as pressing the pause key

#19 Splatter

Splatter

    Unfinished Poster

  • Members
  • PipPipPipPipPipPip
  • 428 posts
  • LocationWild West Germany

Posted 18 February 2012 - 03:47 AM

why use P when you can just press SPACE for.. pause? :)
it would be trivial to have an ini file that had entries like "p={PAUSE}" for example, where pressing P would be the same as pressing the pause key


The P Thing was just an Idea

Right now wie have = ^ T G H C V [F1] [F2] [F3] [F4] [PicUP] [PicDN] [SPACE] [BACKSPACE] H [DEL] R E F [TAB] N B L [F11] [F10] [ESC]
wich are used in the Game and I personal have to look everytime on my keybord to look where is each key to make it customize would be nice to me
So I could fo example use the Numbers on the Num Block to have Guard Mode, Single Shoot etc.
That Way I don´t need to run over the entire Keybord

#20 kaliver

kaliver

    Fresh Blood

  • Members
  • Pip
  • 2 posts

Posted 18 February 2012 - 08:52 AM

If you're open to doing a little legwork in AutoHotkey, you have such a tool available to you right now. For example, I use this tiny bit of code to make the escape key kick me out to the main menu (default binding is f10 for some reason, lol):

#IfWinActive Jagged Alliance - Back in Action
Escape::F10
#IfWinActive

Now say you wanted to make Run/Crouch/Prone work on numpad 1, 2 and 3. You would simply add them as follows:

#IfWinActive Jagged Alliance - Back in Action
Escape::F10
Numpad1::F3
Numpad2::F2
Numpad3::F1
#IfWinActive

Easy, right? You're just telling the program to make the three numpad keys perform the same action as pressing the corresponding function key.

Anyway, you can download AHK here, and you can see a full list of keys here. I typically launch AHK as admin (just in case) and then right-click on the green icon in my system tray and select "edit script" to make tweaks quickly. Once you're done with changes, right-click the icon again and reload the script and you're done. :)

I'm sure someone can come up with an easier way for most people to do this but I have found AHK to be an invaluable resource for several games, especially just after release when devs are typically focused on other fixes.


And last but definitely not least, thanks so much for this edgescrollzoom tool! Not being able to pan my camera around with middle mouse was driving me a little crazy.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users