Product Chat / Customisation of controls

Author
Message
Lord Fluffypants
7
Years of Service
User Offline
Joined: 23rd Oct 2017
Location:
Posted: 24th Oct 2017 12:44
Hey all, new to Game Guru, been wanting to make games for fun and have found GameGuru to work for me.

My question? I want to change the in game movement controls. I have a friend with one arm, so pressing buttons ain't happening. Both of us are Veterans.

I know I can re-assign the letter used (eg keyUp=17)

What I am seeking to do is have the following configuration.

LMB = Fire

Scroll Wheel = Weapon Select

Right Mouse = Scope/Aim

Scroll Wheel Button = keyUp

I was able to get this set up for FarCry for him and he loves it. Thanks in advance
PM
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 24th Oct 2017 15:54 Edited at: 24th Oct 2017 15:54
Hey there!

There now is a LUA script for the player which you can locate in scriptbank.Its called "gameplayercontrol.lua". Just remember to make a backup of it before modifying it. Also make a backup of your modified version somewhere as whenever Game Guru updates it may replace the "gameplayercontrol.lua" file.

In that script handles all the controls for the player and its where you can assign what the keys and mouse do.
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
Lord Fluffypants
7
Years of Service
User Offline
Joined: 23rd Oct 2017
Location:
Posted: 25th Oct 2017 12:27
OK, cheers. So, it wouldn't work manually within the setup (config file created with the Standalone game. I expected a simply change of values would solve it without having to advance to scripts too soon?

Perhaps I am grasping at straws, but below is the contents of said file:

[GAMERUN]
vsync=0
superflatterrain=0
riftmode=0
smoothcamerakeys=0
occlusionmode=1
occlusionsize=0
hidelowfpswarning=0
hardwareinfomode=1
fullscreen=0
aspectratio=1
dividetexturesize=1
producelogfiles=1
invmouse=0
disablerightmousehold=0
profileinstandalone=0
allowfragmentation=1
disabledynamicres=0

[GAMEMENUOPTIONS]
graphicslowterrain=lowest
graphicslowentity=lowest
graphicslowgrass=lowest
graphicsmediumterrain=medium
graphicsmediumentity=medium
graphicsmediumgrass=high
graphicshighterrain=high
graphicshighentity=highest
graphicshighgrass=highest

[CUSTOMIZATIONS]
switchtoalt=47
melee key=56
zoomholdbreath=16
keyUP=17
keyDOWN=31
keyLEFT=30
keyRIGHT=32
keyJUMP=57
keyCROUCH=46
keyENTER=28
keyRELOAD=19
keyPEEKLEFT=16
keyPEEKRIGHT=18
keyRUN=42

Going back as far as BASIC, yes I am that old. Surely a change of the value is all that would be required? So I am seeking the values for all input key/mouse really.

Thoughts?
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 25th Oct 2017 12:54
Yes you can modify all of those in your standalone ..
However not the mouse ... Not yet anyway
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 25th Oct 2017 14:58
Hi,

The number values in the setup.ini for the mappable player keys refer to the scancode values of keys.
So as an example - If you wanted to remap WASD to IJKL then the setup.ini references would be.

keyUP = 23
keyDOWN = 37
keyLEFT = 36
keyRIGHT = 38

Note: make sure GameGuru is not running when you edit the setup.ini file.

I have attached a script with that returns the input events, look for the "Scancode = " to find the scancode value of the key you need.

But going by what you said here
Quote: "LMB = Fire
Scroll Wheel = Weapon Select
Right Mouse = Scope/Aim
Scroll Wheel Button = keyUp"


That is the default for GameGuru anyway, except the Scroll Wheel Button, which is not mappable yet.

Desktop: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 CPUs), ~3.6GHz, Windows 10, 64-bit, 16 GB Ram, NVIDIA GeForce GTX 750 Ti, Display Memory: 4018 MB. Resolution 1360x768, Passmark 3528.
Operating System: Windows 10 Home 64-bit (10.0, Build 15063) (15063.rs2_release.170317-1834)
Laptop: Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)

Attachments

Login to view attachments
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 25th Oct 2017 15:29 Edited at: 25th Oct 2017 15:29

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.

Attachments

Login to view attachments
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 26th Oct 2017 20:53 Edited at: 26th Oct 2017 20:55
i would just use a program like xpadder for now - likely a free program out there.
edit; quick search came up with antimicro
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-11-24 09:33:24
Your offset time is: 2024-11-24 09:33:24