Sid Meier's Civilization VI

Sid Meier's Civilization VI

View Stats:
reavver Oct 21, 2016 @ 8:00am
How to keep camera rotated - solution
This should solve the issue of camera rotating back to origin when you stop dragging while holding ALT key.

Note: you can make all changes while game is running and it will pick up changes immediately - no need to restart it.

1. Right click on game in Steam, go to Properties->Local Files and click on "Browse Local Files...".
2. Find file WorldInput.lua in Base\Assets\UI folder and make backup of the file (save as WorldInput.lua.bak, for example).
3. Open WorldInput.lua with text editor (I recommend Notepad++ - https://notepad-plus-plus.org/download/v7.1.html).
4. After line 127 (it should contain value m_kTutorialUnitMoveRestrictions) add two following lines:
local m_spinStartX :number = 0; local m_spinStartY :number = 0;
5. Search for function UpdateDragMap() - after step 4 it should be around line 397.
6. Below look for this block (should start around line 414):
if m_isALTDown then UI.SpinMap( m_dragStartX - x, m_dragStartY - y ); else
7. Replace it with:
if m_isALTDown then UI.SpinMap( m_spinStartX + dx, m_spinStartY + dy ); m_spinStartX = m_spinStartX + dx; m_spinStartY = m_spinStartY + dy; else
8. Search for function EndDragMap() - after step 7 it should be around line 429.
9. Comment out line 430 so it looks like this:
-- UI.SpinMap( 0, 0 );

Quick and dirty solution that seems to work. Needs more testing and for sure can be improved :)
< >
Showing 1-14 of 14 comments
BigPlaya Oct 21, 2016 @ 1:24pm 
man this is a must bookmark, for keeping when i finally buy civ 6......
Owll Oct 24, 2016 @ 4:03pm 
wow thanks...
HelisiumBR Oct 24, 2016 @ 7:22pm 
This is fantastic, you should put this in guide form so more people can easily find it.
Echo-Zero [NL] Oct 27, 2016 @ 11:43pm 
Wow! Thank you so much for this guide. Works flawless.
Zervo Oct 27, 2016 @ 11:55pm 
awesome.. thanks.
it's hard to screenshot while rotating the camera (lol)

can you add another button/function to reset the camera?
ohboii9000 Nov 11, 2017 @ 5:22pm 
Just tried to do it but it seems like they changed the position of the lines and it didn't work.
Does anyone know if it's still possible?
guthwolf Nov 11, 2017 @ 5:36pm 
I found a mod for this earlier tonight. was on steam
ohboii9000 Nov 11, 2017 @ 5:50pm 
Originally posted by guthwolf:
I found a mod for this earlier tonight. was on steam
http://steamcommunity.com/sharedfiles/filedetails/?id=1197355854
was it that one?
MadManCam Nov 11, 2017 @ 7:07pm 
Originally posted by WraithLivesMatter:
Originally posted by guthwolf:
I found a mod for this earlier tonight. was on steam
http://steamcommunity.com/sharedfiles/filedetails/?id=1197355854
was it that one?

Yes, that one. It uses the same instructions from this guide, but it adds a reset button and some other stuff.
guthwolf Nov 12, 2017 @ 9:41am 
Originally posted by MadManCam:
Originally posted by WraithLivesMatter:
http://steamcommunity.com/sharedfiles/filedetails/?id=1197355854
was it that one?

Yes, that one. It uses the same instructions from this guide, but it adds a reset button and some other stuff.

Yeah like he said it's that one. Hit h key to reset and it really is a nice addition to the game if you ask me.
ohboii9000 Nov 12, 2017 @ 11:00am 
Originally posted by MadManCam:
Originally posted by WraithLivesMatter:
http://steamcommunity.com/sharedfiles/filedetails/?id=1197355854
was it that one?

Yes, that one. It uses the same instructions from this guide, but it adds a reset button and some other stuff.
Sadly doesn't work for me.
Might there be any other mod conflicting with yours?
MadManCam Nov 12, 2017 @ 12:48pm 
Originally posted by WraithLivesMatter:
Sadly doesn't work for me.
Might there be any other mod conflicting with yours?

I've only tested it on windows. If you have mods like cqui that edit WorldInput.lua, it won't work with it unless Free Rotation is loaded after cqui. Try pressing F9 to reload, that worked for someone who commented on the mod.
Last edited by MadManCam; Nov 12, 2017 @ 12:49pm
ohboii9000 Nov 12, 2017 @ 1:04pm 
Hmm I tried it again in a new game, this time it worked. Maybe it didn't work before cause I started my original game before I downloaded the mod.
Well as long as it works :steamhappy:
MadManCam Nov 12, 2017 @ 4:43pm 
Originally posted by WraithLivesMatter:
Hmm I tried it again in a new game, this time it worked. Maybe it didn't work before cause I started my original game before I downloaded the mod.
Well as long as it works :steamhappy:

Glad you got it to work! I just updated the mod so that it should load after other mods. This should fix any issues with it not working with other mods that replace WorldInput.lua (keep in mind that it still replaces the WorldInput.lua from the other mod). So now you should be able to use it with your saved game.
Last edited by MadManCam; Nov 12, 2017 @ 4:51pm
< >
Showing 1-14 of 14 comments
Per page: 15 30 50

Date Posted: Oct 21, 2016 @ 8:00am
Posts: 14