Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit 981bc3c

Browse files
committed
Set up new defaults
1 parent b025f42 commit 981bc3c

File tree

8 files changed

+224
-262
lines changed

8 files changed

+224
-262
lines changed

Gears/ScriptMenu.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ void update_menu() {
467467
menu.Subtitle("Steering wheel options");
468468

469469
if (menu.BoolOption("Enable wheel", settings.EnableWheel,
470-
{ "Enable usage of a steering wheel." })) {
470+
{ "Enable usage of a steering wheel. This needs to be enabled before configuring the axes! "
471+
"After enabling, re-initialize the mod by toggling it." })) {
471472
settings.SaveWheel(&controls);
472473
}
473474

@@ -500,7 +501,9 @@ void update_menu() {
500501
}
501502

502503
menu.MenuOption("Steering wheel axis setup", "axesmenu",
503-
{ "Configure analog controls, like throttle, steering and the like." });
504+
{ "Configure analog controls, like throttle, steering and the like.",
505+
"\"Enable wheel\" needs to be enabled before configuring the axes! "
506+
"After enabling, re-initialize the mod by toggling it."});
504507

505508
menu.MenuOption("Steering wheel button setup", "buttonsmenu",
506509
{ "Set up your buttons on your steering wheel." });
@@ -744,14 +747,15 @@ void update_menu() {
744747
menu.Subtitle("");
745748

746749
menu.BoolOption("Gear", settings.GearIndicator);
750+
menu.BoolOption("Shift Mode", settings.ShiftModeIndicator);
751+
747752
menu.FloatOption("Gear X", settings.GearXpos, 0.0f, 1.0f, 0.005f);
748753
menu.FloatOption("Gear Y", settings.GearYpos, 0.0f, 1.0f, 0.005f);
749754
menu.FloatOption("Gear Size", settings.GearSize, 0.0f, 3.0f, 0.05f);
750755
menu.IntOption("Gear Top Color Red", settings.GearTopColorR, 0, 255);
751756
menu.IntOption("Gear Top Color Green", settings.GearTopColorG, 0, 255);
752757
menu.IntOption("Gear Top Color Blue", settings.GearTopColorB, 0, 255);
753758

754-
menu.BoolOption("Shift Mode", settings.ShiftModeIndicator);
755759
menu.FloatOption("Shift Mode X", settings.ShiftModeXpos, 0.0f, 1.0f, 0.005f);
756760
menu.FloatOption("Shift Mode Y", settings.ShiftModeYpos, 0.0f, 1.0f, 0.005f);
757761
menu.FloatOption("Shift Mode Size", settings.ShiftModeSize, 0.0f, 3.0f, 0.05f);

Gears/ScriptSettings.cpp

Lines changed: 60 additions & 67 deletions
Large diffs are not rendered by default.

Gears/ScriptSettings.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ScriptSettings {
2727

2828
// settings_general.ini parts
2929
// [OPTIONS]
30-
bool EnableManual = true;
30+
bool EnableManual = false;
3131
ShiftModes ShiftMode = Sequential; // 0 Seq, 1 H, 2 Auto
3232
bool SimpleBike = false;
3333
bool EngDamage = false;
@@ -40,8 +40,8 @@ class ScriptSettings {
4040
bool ClutchShiftingS = false;
4141
bool DefaultNeutral = false;
4242

43-
float EngBrakePower;
44-
float EngBrakeThreshold;
43+
float EngBrakePower = 0.0f;
44+
float EngBrakeThreshold = 0.75f;
4545
float ClutchCatchpoint = 0.15f;
4646
float StallingThreshold = 0.75f;
4747
float RPMDamage = 1.5f;
@@ -58,21 +58,21 @@ class ScriptSettings {
5858
bool AlwaysHUD = false;
5959
int HUDFont = 0;
6060

61-
bool GearIndicator;
61+
bool GearIndicator = true;
6262
float GearXpos = 0.95f;
6363
float GearYpos = 0.95f;
6464
float GearSize = 1.0f;
6565
int GearTopColorR = 255;
6666
int GearTopColorG = 255;
6767
int GearTopColorB = 255;
6868

69-
bool ShiftModeIndicator;
69+
bool ShiftModeIndicator = true;
7070
float ShiftModeXpos = 0.925f;
7171
float ShiftModeYpos = 0.95f;
7272
float ShiftModeSize = 1.0f;
7373

7474
// can be kph, mph, or ms
75-
std::string Speedo;
75+
std::string Speedo = "kph";
7676
bool SpeedoShowUnit = false;
7777
float SpeedoSize = 1.5f;
7878
float SpeedoYpos = 0.85f;
@@ -119,7 +119,7 @@ class ScriptSettings {
119119

120120
// [DEBUG]
121121
bool DisplayInfo = false;
122-
bool DisplayGearingInfo;
122+
bool DisplayGearingInfo = false;
123123
bool DisplayWheelInfo = false;
124124

125125
std::vector<GUID> reggdGuids;

doc/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 4.3.9
44
Thanks for your bug reports!
5-
Config changes: Nope
5+
Config changes: Updated defaults. No need to replace your config: it's just a more comprehensive start for new users/setups.
66

77
Fixes:
88
* Fix brake non-responsive while engine braking
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[CONTROLLER]
2+
The following controls can be assigned:
3+
* DpadUp
4+
* DpadDown
5+
* DpadLeft
6+
* DpadRight
7+
* Start
8+
* Back
9+
* LeftThumb
10+
* RightThumb
11+
* LeftShoulder
12+
* RightShoulder
13+
* A
14+
* B
15+
* X
16+
* Y
17+
* LeftTrigger
18+
* RightTrigger
19+
* LeftThumbLeft
20+
* LeftThumbRight
21+
* RightThumbLeft
22+
* RightThumbRight
23+
* LeftThumbUp
24+
* LeftThumbDown
25+
* RightThumbUp
26+
* RightThumbDown
27+
28+
[CONTROLLER_LEGACY]
29+
Usable inputs. USE THE NUMBERS
30+
Turn off a control by putting -1 there
31+
Control name Xbox equivalent Control ID
32+
ControlFrontendDown Dpad Down 187
33+
ControlFrontendUp Dpad Up 188
34+
ControlFrontendLeft Dpad Left 189
35+
ControlFrontendRight Dpad Right 190
36+
ControlFrontendRdown ?????????? 191
37+
ControlFrontendRup ?????????? 192
38+
ControlFrontendRleft ?????????? 193
39+
ControlFrontendRright ?????????? 194
40+
ControlFrontendAxisX Left stick X 195
41+
ControlFrontendAxisY Left stick Y 196
42+
ControlFrontendRightAxisX Right stick X 197
43+
ControlFrontendRightAxisY Right stick Y 198
44+
ControlFrontendPause Start 199
45+
ControlFrontendAccept A 201
46+
ControlFrontendCancel B 202
47+
ControlFrontendX X 203
48+
ControlFrontendY Y 204
49+
ControlFrontendLb Left shoulder 205
50+
ControlFrontendRb Right shoulder 206
51+
ControlFrontendLt Left trigger 207
52+
ControlFrontendRt Right trigger 208
53+
ControlFrontendLs Left stick click 209
54+
ControlFrontendRs Right stick click 210
55+
ControlFrontendDelete ??????????? 214
56+
ControlFrontendSelect Back 217
Lines changed: 52 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
1-
[OPTIONS]
1+
; Manual Transmission for GTA V
2+
; Please refer to the readme or the in-game menu for option descriptions
3+
; It's advised to use the in-game menu to configure the mod
4+
5+
[OPTIONS]
26
Enable = true
37
ShiftMode = 0
4-
SimpleBike = true
5-
EngineDamage = true
8+
SimpleBike = false
9+
EngineDamage = false
610
EngineStalling = true
11+
EngineStallingS = false
712
EngineBraking = true
13+
EngineLocking = false
814
ClutchCatching = true
915
ClutchShiftingH = true
1016
ClutchShiftingS = false
1117
DefaultNeutral = true
12-
ClutchCatchpoint = 10.000001
18+
ClutchCatchpoint = 10.000000
1319
StallingThreshold = 85.000000
14-
RPMDamage = 14.999996
20+
RPMDamage = 15.000001
1521
MisshiftDamage = 20.000000
16-
17-
; At default GTA V applies brakes when standing still, while even
18-
; at an angle. Enabling this will give your car a little push.
19-
; Thanks to XMOD!
20-
HillBrakeWorkaround = true
22+
EngBrakePower = 1.000000
23+
EngBrakeThreshold = 0.750000
24+
HillBrakeWorkaround = false
2125
AutoGear1 = false
2226
AutoLookBack = false
2327
ThrottleStart = true
@@ -26,23 +30,26 @@ CrossScript = true
2630

2731
[HUD]
2832
EnableHUD = true
33+
AlwaysHUD = false
2934
HUDFont = 4
35+
GearIndicator = true
3036
GearXpos = 0.952500
3137
GearYpos = 0.885000
3238
GearSize = 0.700000
3339
GearTopColorR = 255
34-
GearTopColorG = 127
35-
GearTopColorB = 127
40+
GearTopColorG = 63
41+
GearTopColorB = 63
42+
ShiftModeIndicator = true
3643
ShiftModeXpos = 0.935000
3744
ShiftModeYpos = 0.885000
3845
ShiftModeSize = 0.700000
3946

40-
; kph - mph - ms - none
47+
; kph - mph - ms - off
4148
Speedo = kph
4249
SpeedoShowUnit = true
4350
SpeedoXpos = 0.860000
44-
SpeedoYpos = 0.883502
45-
SpeedoSize = 0.750000
51+
SpeedoYpos = 0.885000
52+
SpeedoSize = 0.700000
4653
EnableRPMIndicator = true
4754
RPMIndicatorXpos = 0.120001
4855
RPMIndicatorYpos = 0.765000
@@ -65,124 +72,66 @@ RPMIndicatorRevlimitR = 255
6572
RPMIndicatorRevlimitG = 0
6673
RPMIndicatorRevlimitB = 0
6774
RPMIndicatorRevlimitA = 255
75+
SteeringWheelInfo = true
76+
AlwaysSteeringWheelInfo = false
77+
SteeringWheelTextureX = 0.230000
78+
SteeringWheelTextureY = 0.890000
79+
SteeringWheelTextureSz = 0.060000
80+
PedalInfoX = 0.290000
81+
PedalInfoY = 0.890000
82+
PedalInfoH = 0.100000
83+
PedalInfoW = 0.040000
84+
PedalInfoPadX = 0.000000
85+
PedalInfoPadY = 0.000000
6886

6987

70-
[CONTROLLER]
88+
[DEBUG]
89+
DisplayInfo = false
90+
DisplayWheelInfo = false
91+
DisplayGearingInfo = false
7192

72-
; The following controls can be assigned:
73-
; DpadUp
74-
; DpadDown
75-
; DpadLeft
76-
; DpadRight
77-
; Start
78-
; Back
79-
; LeftThumb
80-
; RightThumb
81-
; LeftShoulder
82-
; RightShoulder
83-
; A
84-
; B
85-
; X
86-
; Y
87-
; LeftTrigger
88-
; RightTrigger
89-
; LeftThumbLeft
90-
; LeftThumbRight
91-
; RightThumbLeft
92-
; RightThumbRight
93-
; LeftThumbUp
94-
; LeftThumbDown
95-
; RightThumbUp
96-
; RightThumbDown
9793

98-
; Turn off a control by putting UNKNOWN there
99-
Toggle = DpadRight
100-
ToggleShift = B
94+
[CONTROLLER]
95+
ToggleEngine = false
10196
ToggleTime = 300
102-
103-
; This is how far an analog input is pressed to register it
104-
; as a button press.
105-
TriggerValue = 0.900000
106-
107-
; Controller buttons
97+
TriggerValue = 0.850000
98+
BlockCarControls = false
99+
MaxTapTime = 200
100+
ShiftUpBlocks = -1
101+
ShiftDownBlocks = -1
102+
Toggle = UNKNOWN
103+
ToggleShift = B
108104
ShiftUp = A
109105
ShiftDown = X
110106
Clutch = LeftThumbUp
111107
Engine = DpadDown
112-
113-
; Turn on/off engine /w button, or only turn on engine?
114-
ToggleEngine = false
115-
116-
; Controls for realistic reversing
117108
Throttle = RightTrigger
118109
Brake = LeftTrigger
119110

120111

121112
[CONTROLLER_LEGACY]
122-
123-
; Using something that works with GTA V but isn't an
124-
; Xbox controller nor does it use the Xinput thing? Try this!
125113
Enable = false
126-
127-
; Uses same TriggerValue and ToggleTime as [CONTROLLER]
128-
129-
; Usable inputs. USE THE NUMBERS
130-
; Turn off a control by putting -1 there
131-
; Control name Xbox equivalent Control ID
132-
; ControlFrontendDown Dpad Down 187
133-
; ControlFrontendUp Dpad Up 188
134-
; ControlFrontendLeft Dpad Left 189
135-
; ControlFrontendRight Dpad Right 190
136-
; ControlFrontendRdown ?????????? 191
137-
; ControlFrontendRup ?????????? 192
138-
; ControlFrontendRleft ?????????? 193
139-
; ControlFrontendRright ?????????? 194
140-
; ControlFrontendAxisX Left stick X 195
141-
; ControlFrontendAxisY Left stick Y 196
142-
; ControlFrontendRightAxisX Right stick X 197
143-
; ControlFrontendRightAxisY Right stick Y 198
144-
; ControlFrontendPause Start 199
145-
; ControlFrontendAccept A 201
146-
; ControlFrontendCancel B 202
147-
; ControlFrontendX X 203
148-
; ControlFrontendY Y 204
149-
; ControlFrontendLb Left shoulder 205
150-
; ControlFrontendRb Right shoulder 206
151-
; ControlFrontendLt Left trigger 207
152-
; ControlFrontendRt Right trigger 208
153-
; ControlFrontendLs Left stick click 209
154-
; ControlFrontendRs Right stick click 210
155-
; ControlFrontendDelete ??????????? 214
156-
; ControlFrontendSelect Back 217
157-
Toggle = 190
158-
ToggleShift = 202
159-
ShiftUp = 201
160-
ShiftDown = 203
114+
ShiftUpBlocks = -1
115+
ShiftDownBlocks = -1
116+
Toggle = -1
117+
ToggleShift = 194
118+
ShiftUp = 191
119+
ShiftDown = 193
161120
Clutch = 196
162121
Engine = 187
163-
164-
; Controls for realistic reversing
165122
Throttle = 208
166123
Brake = 207
167124

168125

169126
[KEYBOARD]
170-
171-
; Refer to Keyboard_Keys.txt for usable keys
172-
173-
; To disable: put UNKNOWN
174127
Toggle = VK_OEM_5
175128
ToggleH = VK_OEM_6
176129
ShiftUp = LSHIFT
177130
ShiftDown = LCTRL
178131
Clutch = Z
179132
Engine = X
180-
181-
; Controls for realistic reversing
182133
Throttle = W
183134
Brake = S
184-
185-
; Keyboard H-shifter buttons
186135
HR = NUM0
187136
H1 = NUM1
188137
H2 = NUM2
@@ -192,12 +141,3 @@ H5 = NUM5
192141
H6 = NUM6
193142
H7 = NUM7
194143
HN = NUM9
195-
196-
197-
[DEBUG]
198-
DisplayInfo = false
199-
LogCar = false
200-
201-
202-
[FILEVERSION]
203-
VERSION = 430

0 commit comments

Comments
 (0)