Sid Meier's Civilization VI

Sid Meier's Civilization VI

View Stats:
This topic has been locked
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-15 of 15 comments
DMN 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...
PRPE7UAL Oct 24, 2016 @ 7:22pm 
This is fantastic, you should put this in guide form so more people can easily find it.
Dymacos 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?
Dogmeat 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?
Ron Nov 11, 2017 @ 5:36pm 
I found a mod for this earlier tonight. was on steam
Dogmeat 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?
Kyl 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.
Ron 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.
Dogmeat 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?
Kyl 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 Kyl; Nov 12, 2017 @ 12:49pm
Dogmeat 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:
Kyl 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 Kyl; Nov 12, 2017 @ 4:51pm
Penguin Feb 23, 2024 @ 12:08pm 
So after reading this and experimenting a bit I seem to have found a way to do this that seems easier. Or at least it worked for me on my computer.

1 Like the opening post said go to steam and right click on civilization 6. Select properties Then select installed files. Then browse. Select the base folder. Then the assets folder. Next open the UI folder. Open the WorldInput.lua file.

2 Once you have that open find this part in the file.

https://steamuserimages-a.akamaihd.net/ugc/5940881324877875839/3B6C4626099D0DD095B6AA4CB8BD35677F31DB54/?imw=5000&imh=5000&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=false

3 I just deleted the highlighted part and problem solved. The down side is it seems the only way to move the map after that is to move the mouse to the end of the screen. Or move it by dragging it on the mini map.
Last edited by Penguin; Feb 23, 2024 @ 12:35pm
< >
Showing 1-15 of 15 comments
Per page: 1530 50

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