Sid Meier's Civilization VI

Sid Meier's Civilization VI

Cheat Menu Panel (R&F - GS)
PeakFire 1 Jun, 2024 @ 4:08pm
bind Add +5 Movement to Selected Unit to any key not work
how to solve?
< >
Showing 1-8 of 8 comments
LittleJerk 7 Jun, 2024 @ 8:35pm 
I also have this problem, and it's the ONLY thing I use the panel for!!!
Litcube 30 Jun, 2024 @ 10:42am 
+1
pehadzick 27 Aug, 2024 @ 8:17am 
Same here
STuRoK 30 Aug, 2024 @ 9:54pm 
I finally fixed the errors I kept getting from this mod:
ERROR: Invalid Reference on InputActionDefaultGestures.ActionId - "Toggle5movement"
and the ones about Localisations.sql.

First, I deleted the other languages besides English in the Localisation.sql, putting a semicolon at the end.

Then, to fix the "Toggle5movement", go into ' Input_Config.xml '
The very bottom line:
<Row ActionId="Toggle5movement" Index="0" GestureType="KBMouse" GestureData="NONE"/>

Change the "m" after 5 to a capital "M". so it matches the one above in InputActions.
<Row ActionId="Toggle5Movement" Index="0" GestureType="KBMouse" GestureData="NONE"/>

This will fix the keybind not working too
Originally posted by STuRoK:
I finally fixed the errors I kept getting from this mod:
ERROR: Invalid Reference on InputActionDefaultGestures.ActionId - "Toggle5movement"
and the ones about Localisations.sql.

First, I deleted the other languages besides English in the Localisation.sql, putting a semicolon at the end.

Then, to fix the "Toggle5movement", go into ' Input_Config.xml '
The very bottom line:
<Row ActionId="Toggle5movement" Index="0" GestureType="KBMouse" GestureData="NONE"/>

Change the "m" after 5 to a capital "M". so it matches the one above in InputActions.
<Row ActionId="Toggle5Movement" Index="0" GestureType="KBMouse" GestureData="NONE"/>

This will fix the keybind not working too
Sorry, can you explain this to me like I'm stupid? Where am I finding these .xml files?
Originally posted by LittleJerk:
Sorry, can you explain this to me like I'm stupid? Where am I finding these .xml files?
Go to Steam's mod directory. If you installed in the default location, it should be
C:\Program Files (x86)\Steam\steamapps\workshop\content\289070\1528155583\Base\UI\Text
(numbers are game's and mod's ids).
I changed the ActionId in the XML file, as well as truncated the localisations in the sql script, but hotkey still doesn't work. And "restore unit movement" action doesn't do anything useful...
I got it working.

Cause:
Entry for UnitAddMovement() was missing from the OnInputActionTriggered() function.

Solution:
1. Go to C:\Program Files (x86)\Steam\steamapps\workshop\content\289070\1528155583\Base\UI\Panels
2. Edit Cheat_Menu_Panel_Functions.lua file
3. Go into the
function OnInputActionTriggered( actionId )
(line 243 and below)
4. Add
if ( actionId == Input.GetActionId("Toggle5Movement") ) then UnitAddMovement(); end
before the last end in the last line - keep in mind the indentation level (just mirror the other entries)
5. Profit

Must have also applied the KeyBindings bugfix from post #4
Originally posted by springdancer:
I got it working.

Cause:
Entry for UnitAddMovement() was missing from the OnInputActionTriggered() function.

Solution:
1. Go to C:\Program Files (x86)\Steam\steamapps\workshop\content\289070\1528155583\Base\UI\Panels
2. Edit Cheat_Menu_Panel_Functions.lua file
3. Go into the
function OnInputActionTriggered( actionId )
(line 243 and below)
4. Add
if ( actionId == Input.GetActionId("Toggle5Movement") ) then UnitAddMovement(); end
before the last end in the last line - keep in mind the indentation level (just mirror the other entries)
5. Profit

Must have also applied the KeyBindings bugfix from post #4
Do you code?! Did you use chatGPT? YOU ARE SO SEXY. This fixed it!!!
< >
Showing 1-8 of 8 comments
Per page: 1530 50