Free Rotation

Free Rotation 1 Apr 2018

MadManCam

Chieftain
Joined
May 5, 2017
Messages
66
Location
Minnesota, United States
MadManCam submitted a new resource:

Free Rotation - Unhindered Camera Rotation and additional Camera controls.

Steam Workshop Page

Camera rotation no longer resets after you release the mouse. Press the H key to reset the camera to its default position.

You can rotate the map in 3 ways: Shift+Left Click+Drag, Alt+Left Click+Drag, and the Q and E keys.

You can also pan the map with WASD keys.

You can change the camera reset keybind and disable Shift rotating, WASD panning, and Q and E rotating while you are playing the...

Read more about this resource...
 
How to Change the Mod Settings

Keep in mind that these settings are not permanent, and every time you update the mod your change will be overwritten. It is easy to make the change again though.

IMPORTANT: Editing game files, including those from mods, may cause de-syncs in multiplayer games. You may just have to play with default settings in multiplayer games.

You can open the file, make changes, and save the file while your game is open, and you should see the changes right away.

1. Go to the mod folder in your Civ 6/Mods/ folder.

2. Open WorldInput.lua with any text editor (Notepad or Wordpad on Windows).

3. The settings are in the first few lines. They look like this:
Code:
-- Free Rotation Settings
local FreeRotation_CameraResetKey = Keys.H;
local FreeRotation_useQE_keys :boolean = true;
local FreeRotation_useWASD_keys :boolean = true;
local FreeRotation_useShiftRotate :boolean = true;

local AlternativeShiftCycle    = Keys.X; -- City/Unit Cylce: Alternative to Shift key.

-- These keys will function like the arrow keys if useWASD_keys is set to true.
local FreeRotation_UpKey    = Keys.W;
local FreeRotation_LeftKey    = Keys.A;
local FreeRotation_DownKey    = Keys.S;
local FreeRotation_RightKey    = Keys.D;
-- These keys will rotate the map if useQE_keys is set to true.
local FreeRotation_SpinLeftKey    = Keys.Q;
local FreeRotation_SpinRightKey    = Keys.E;

4. Changing stuff:
- You can disable using the Q and E keys to rotate the map by setting useQE_keys to false.
- You can disable WASD map panning (overrides CQUI settings) by setting useWASD_keys to false.
- You can disable holding Shift+Left Click+drag to rotate the map by setting useShiftRotate to false.
- You can change the Camera Reset keybind by changing the Keys.H to another key. Make sure the letter is uppercase. For example, you can change it to Keys.J or something.
- You can also change the other keybinds.

5. After you have made your desired changes, save the file.

If anything went wrong and the mod stopped working, you can re-install the mod to get back the original file.
 
Last edited:
MadManCam updated Free Rotation with a new update entry:

The update you've been waiting for.

- Updated to be compatible with latest version of CQUI, this fixes the city border bug.
- Pressing the H key (or whatever keybind you have set in the settings) now will toggle between default and last used camera rotation.
- Added ability to change the WASD, QE keybinds in the mod settings (see discussion).
- Fixed awkwardness when pressing Shift for CQUI users. Select next unit/city moved to X key for CQUI users if Shift rotating is enabled (can change keybind in the settings).

Read the rest of this update entry...
 
Nice! Thanks for this mod. Works with latest patch, although it is marked as incompatible. Tested for a couple of minutes without issues. I'm using it together with the farther zoom 1.0 "mod" which is years old but still working. Hope these two gems of mods stand the test of time :thumbsup:
I'm only playing "flat maps" if that's important. I assume it is with the farther zoom "mod" as a wrapped small map could potentially give errors if zoomed all the way out. I'm not sure how a locked pan camera could cause issues with wrapped worlds... Possibly seeing either duplicates of yourself or weird glitches! But no big deal as I prefer small flat maps anyway.

edit: The right click path view graphic seems to be missing, though...
 
Last edited:
Back
Top Bottom