View Full Version : I'm stumped (autoexec & ground vehicle control related)
DarkTalent
10-29-2007, 10:23 AM
G'day.
After a bit of a google and much trial and error I have nearly cobbled myself together an autoexec and a pair of extra cfgs to set up minor tweaks and vsay's as well as binds for flying with my SaitekX52. Unfortunately I have one little annoyance that I'd like to see sorted.
When I mapped my joystick for use with the Anansi and Tormentor I had a problem where if I forgot to set the trottle back to around 45-55% on exiting a flyer, my infantry player's view would pitch to the dirt or sky (depending on which end the throttle had been left pointing towards). Alternatively, if one of my kids (or the cat) bumped the control stick, my player moved forwards/backwards or strafed left/right.
I ended up resolving it by putting the following in my autoexec with my joystick settings:
bind "KP_STAR" "toggle ui_advancedFlightControls 0 1" "" "default" //Toggle advanced flight control
bind "KP_SLASH" "seta in_joy1_device 476873" "SHIFT" "default" //Activate Joystick Input
bind "KP_SLASH" "seta in_joy1_device 232429" "" "default" //Deactivate Joystick Input
Which allowed me to switch the j/s input off when not in a flyer - fine. But next time I jumped on a husky, I could not move. Same with all other vehicles other than the Icarus, Cyclops and Platypus, which work fine. I also have the turn/strafe switched in the Desecrator and it works without problems.
I've noticed in these other vehicles, the left right seems to work (steering animations occur anyway), but when I press W nothing happens.
I have read this thread (http://community.enemyterritory.com/forums/showthread.php?t=4161) and while it was discussing the topic I needed, it did not touch on my problem. This was the closest to someone else having the same problem as me that I can find (http://community.enemyterritory.com/forums/showpost.php?p=192928&postcount=109). However, I notice some threads/post refer to 'vstr' commands and displays a code form I'm not familiar with. Perhaps there is something in that method that would help me...
Any advice is appreciated - even unsolicited info that may help me refine my coding for the cfgs listed above. I'm certainly no pro at this. I had a few binds for RTCW in '02, but I've been a slave of the BF fanchise since the end of '02 and am slow in picking it up again.
Here are my files in the subsequent posts.
DarkTalent
10-29-2007, 10:23 AM
autoexec.cfg:
seta ui_name "^9Dark^=Talent" //Profile Player Name
seta g_showPlayerShadow "0" //Disable player shadow
seta ui_drivingCameraFreelook "0" //Freelook when driving turretless vehicle
seta ui_rememberCameraMode "1" //Remember camera settings
//-//CONTEXT LABLES
seta g_bind_context_anansi "chopper"
seta g_bind_context_hornet "chopper"
seta g_bind_context_desecrator "htank"
seta g_class_context_aggressor "strogg"
seta g_class_context_technician "strogg"
seta g_class_context_constructor "strogg"
seta g_class_context_oppressor "strogg"
seta g_class_context_infiltrator "strogg"
seta g_class_context_solider "global"
seta g_class_context_medic "global"
seta g_class_context_engineer "global"
seta g_class_context_fieldops "global"
seta g_class_context_covertops "global"
seta g_bind_context_badger "vehicle"
seta g_bind_context_bumblebee "vehicle"
seta g_bind_context_goliath "vehicle"
seta g_bind_context_hog "vehicle"
seta g_bind_context_husky "vehicle"
seta g_bind_context_icarus "vehicle"
seta g_bind_context_mcp "vehicle"
seta g_bind_context_platypus "vehicle"
seta g_bind_context_titan "vehicle"
seta g_bind_context_trojan "vehicle"
seta g_voteKeepVote "0" //Votes go vote cast
seta gui_voteAlpha "0.4" //Vote Text Alpha - 0 to disable
seta gui_tooltipAlpha "0" //No Tooltips
seta gui_fireTeamAlpha "0"
seta g_showFireTeamLocation "0" //Only show names and health in FT HUD
seta gui_crosshairColor "1.00 0.00 1.00 1.00" //Purple Crosshair
seta in_toggleRun "1" //toggle run/walk with _speed button - on (1) / off (0)
seta g_waypointAlphaScale "0.5" //Less annoying waypoint config
seta g_waypointDistanceMax "3084" //Min distance at which to show max icon size
seta g_waypointDistanceMin "16" //Max distance at which to show min icon size
seta g_waypointSizeMax "15" //Max world-view icon size
seta g_waypointSizeMin "10" //Min world-view icon size
seta g_playerIconAlphaScale "0.5" //Alpha of the player icons
seta g_playerArrowIconSize "7" //Makes player arrow icons smaller
seta g_playerIconSize "10" //Makes player icons smaller
//Exec Controls and Vsay List
exec controls.cfg
exec vsay.cfg
controls.cfg:
//DT's Constrol Set
bind "MOUSE4" "_activate" "" "default"
bind "MOUSE5" "_usevehicle" "" "default"
bind "KP_ENTER" "_vehicleCamera" "" "default"
bind "CAPSLOCK" "toggle g_showVehicleCockpits 0 1" "" "default" //Vehicle cockpit toggle
//-//In-Game Options and Settings
bind "BACKSPACE" "_ready" "" "global"
bind "BACKSPACE" "_ready" "" "strogg"
//New ScreenShot
bind "SCROLL" "screenshot" "" "default"
//Record Demo
bind "SCROLL" "toggleNetDemo" "SHIFT" "default"
//Open Limbo Menu
bind "ENTER" "_limbomenu" "" "default"
//Open Fireteam Menu
bind "ENTER" "_fireteam" "SHIFT" "default"
//Open Vote Menu
bind "\" "_votemenu" "" "default"
//Vote Yes
bind "=" "vote y" "" "default"
//Vote No
bind "-" "vote n" "" "default"
// Toggle Complete HUD On/Off
bind "PAUSE" "toggle g_showHud 0 1" "" "default"
//Toggle chat and kill text
bind "DOWNARROW" "toggle gui_chatAlpha 1 0; toggle gui_obitAlpha 1 0" "" "default"
//Toggle command map
bind "n" "toggle gui_commandMapAlpha 0.5 0" "SHIFT" "default"
//Cycle crosshair opacity
bind "RIGHTARROW" "cycle gui_crosshairAlpha 1 0 0.5; cycle gui_crosshairSpreadAlpha 1 0 0.5" "" "default"
// Toggle Player Gun
bind "RIGHTARROW" "toggle ui_showgun" "SHIFT" "strogg"
bind "RIGHTARROW" "toggle ui_showgun" "SHIFT" "default"
// Toggle Objectives
bind "LEFTARROW" "toggle g_showwaypoints 0 1;toggle gui_objectiveListAlpha 0 0.7; toggle gui_objectiveStatusAlpha 0 0.7" "" "default"
// Toggle Player Icons
bind "UPARROW" "toggle g_drawPlayerIcons 0 1" "" "default"
// Toggle Player Arrows
bind "UPARROW" "toggle g_showPlayerArrows 0 1" "SHIFT" "default"
//-//-//Stroyent Up/Down
bind "[" "_stroyDown" "" "strogg"
bind "]" "_stroyUp" "" "strogg"
//-//Aircraft Controls
//-//-//Setting Joystick Input
bind "KP_STAR" "toggle ui_advancedFlightControls 0 1" "" "default" //Toggle advanced flight control
bind "KP_SLASH" "seta in_joy1_device 476873" "SHIFT" "default" //Activate Joystick Input
bind "KP_SLASH" "seta in_joy1_device 232429" "" "default" //Deactivate Joystick Input
//-//-//Roll
seta in_heli_side_power "1" "" "chopper"
seta in_heli_side_offset "0" "" "chopper"
seta in_heli_side_invert "1" "" "chopper"
seta in_heli_side_speed "45" "" "chopper"
seta in_heli_side_deadZone "0" "" "chopper"
seta in_heli_side_axis "2" "" "chopper"
seta in_heli_side_joy "1" "" "chopper"
//-//-//Pitch
seta in_heli_forward_power "1" "" "chopper"
seta in_heli_forward_offset "0" "" "chopper"
seta in_heli_forward_invert "0" "" "chopper"
seta in_heli_forward_speed "30" "" "chopper"
seta in_heli_forward_deadZone "0" "" "chopper"
seta in_heli_forward_axis "1" "" "chopper"
seta in_heli_forward_joy "1" "" "chopper"
//-//-//Rudder
seta in_heli_yaw_power "1" "" "chopper"
seta in_heli_yaw_offset "0" "" "chopper"
seta in_heli_yaw_invert "0" "" "chopper"
seta in_heli_yaw_speed "80" "" "chopper"
seta in_heli_yaw_deadZone "0" "" "chopper"
seta in_heli_yaw_axis "2" "" "chopper"
seta in_heli_yaw_joy "1" "" "chopper"
//-//-//Throttle
seta in_heli_throttle_power "1" "" "chopper"
seta in_heli_throttle_offset "0" "" "chopper"
seta in_heli_throttle_invert "1" "" "chopper"
seta in_heli_throttle_speed "75" "" "chopper"
seta in_heli_throttle_deadZone "0" "" "chopper"
seta in_heli_throttle_axis "3" "" "chopper"
seta in_heli_throttle_joy "1" "" "chopper"
//-//-//Buttons
bind "joy1_1" "_attack" "" "chopper" //Fire
bind "joy1_6" "_sprint" "" "chopper" //Accelerate
bind "joy1_7" "_weapon0" "" "chopper" //Decoys
bind "joy1_5" "_weapnext" "" "chopper" //Weapon
bind "joy1_4" "_usevehicle" "" "chopper" //Eject
//-//Hovertank Controls
bind "a" "_leanleft" "" "htank"
bind "d" "_leanright" "" "htank"
bind "q" "_moveleft" "" "htank"
bind "e" "_moveright" "" "htank"
vsay.cfg
//DT's Voice Commands
bind "F1" "clientquickchat quickchat/global/hi" "" "default"
bind "F1" "clientquickchat quickchat/global/bye" "SHIFT" "global"
bind "F1" "clientquickchat quickchat/global/go" "SHIFT" "strogg"
bind "F2" "clientquickchat quickchat/global/yes" "" "default"
bind "F2" "clientquickchat quickchat/responses/acknowledged" "SHIFT" "default"
bind "F3" "clientquickchat quickchat/global/no" "" "default"
bind "F3" "clientquickchat quickchat/responses/declined" "SHIFT" "default"
bind "F4" "clientquickchat quickchat/global/cheers/greatshot" "" "default"
bind "F4" "clientquickchat quickchat/global/cheers/goodgame" "SHIFT" "default"
bind "F5" "clientquickchat quickchat/global/sorry" "SHIFT" "default"
bind "F5" "clientquickchat quickchat/responses/sorry" "" "default"
bind "F6" "clientquickchat quickchat/responses/unabletoassist" "" "default"
bind "F6" "clientquickchat quickchat/responses/dontcare" "SHIFT" "default"
bind "F7" "clientquickchat quickchat/global/youwelcome" "SHIFT" "default"
bind "F7" "clientquickchat quickchat/responses/youwelcome" "" "default"
bind "F8" "clientquickchat quickchat/global/thanks" "SHIFT" "default"
bind "F8" "clientquickchat quickchat/responses/thanks" "" "default"
bind "F9" "clientquickchat quickchat/need/engineer" "" "global"
bind "F9" "clientquickchat quickchat/need/team/engineer" "SHIFT" "global"
bind "F9" "clientquickchat quickchat/need/constructor" "" "strogg"
bind "F9" "clientquickchat quickchat/need/team/constructor" "SHIFT" "strogg"
bind "HOME" "clientquickchat quickchat/global/taunts/enemyweakened" "" "global"
bind "HOME" "clientquickchat quickchat/global/cheers/wellplayed" "SHIFT" "global"
bind "HOME" "clientquickchat quickchat/global/taunts/theycrumble" "" "strogg"
bind "HOME" "clientquickchat quickchat/global/cheers/wellplayed" "SHIFT" "strogg"
bind "F10" "clientquickchat quickchat/need/backup" "" "global"
bind "F10" "clientquickchat quickchat/vehicles/needpickup" "SHIFT" "global"
bind "F10" "clientquickchat quickchat/need/backup" "" "strogg"
bind "F10" "clientquickchat quickchat/vehicles/needpickup" "SHIFT" "strogg"
bind "END" "clientquickchat quickchat/global/taunts/killalienscum" "" "global"
bind "END" "clientquickchat quickchat/global/taunts/eatthatstrogg" "SHIFT" "global"
bind "END" "clientquickchat quickchat/global/taunts/killhumanfood" "" "strogg"
bind "END" "clientquickchat quickchat/global/taunts/eatthathuman" "SHIFT" "strogg"
bind "F12" "clientquickchat quickchat/need/medic" "" "global"
bind "F12" "clientquickchat quickchat/need/team/medic" "SHIFT" "global"
bind "F12" "clientquickchat quickchat/need/technician" "" "strogg"
bind "F12" "clientquickchat quickchat/need/team/technician" "SHIFT" "strogg"
bind "F11" "clientquickchat quickchat/need/ammo" "" "global"
bind "F11" "clientquickchat quickchat/vehicles/needrepairs" "SHIFT" "global"
bind "F11" "clientquickchat quickchat/need/stroyent" "" "strogg"
bind "F11" "clientquickchat quickchat/vehicles/needrepairs" "SHIFT" "strogg"
DarkTalent
10-30-2007, 02:27 PM
resolved - I was forgetting to turn off the handbrake (toggle run option).
I'll explain better in the morning - especially after I've had a chance to roll back to defaults and try it from scratch to ensure there was nothing else done that cause the fix.
Rockso
10-30-2007, 03:16 PM
:dance: Those sound binds are very helpful actually.
DarkTalent
10-31-2007, 01:10 PM
:dance: Those sound binds are very helpful actually.
Just remember the 'class' contexts so the one button can be both a GDF and Strogg specific message (Im Medic / Technician).
The culprit in my problem was the following:
seta in_toggleRun "1" //toggle run/walk with _speed button - on (1) / off (0)
When set to 1 and in 'walk' mode when Infantry, most vehicles had a handbrake on. Pressing the button assigned to '_speed' is like having an 'Ignition' key :)
DarkTalent
10-31-2007, 02:06 PM
Oh yeah. Here is my 'finished' config set. While I'm still tweaking button assignments, the commands are all tested and working.
Fully annotated (where it's worth explaining).
While all of it works once exec'd - only the autoexec is now working when in the sdnet\[profile]\base folder. I have had to place the other three in the Enemy Territory - QUAKE Wars\base folder and run 'controls.cfg' via the console - the chain then worked calling the other two in turn.
I'll have to keep working on it.
pukem0n
10-31-2007, 04:09 PM
good work :P