1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. Photobucket has changed its policy concerning hotlinking images and now requires an account with a $399.00 annual fee to allow hotlink. More information is available at: this link.
    Dismiss Notice
  3. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  4. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  5. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  6. Dismiss Notice
  7. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

Free Camera 19 Jan 2018

Unhindered Camera tilt/rotation, ultra zoom, scrollable time of day, and simple controls.

  1. MadManCam

    MadManCam Chieftain

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

    Free Camera - Unhindered Camera tilt/rotation, ultra zoom, scrollable time of day, and simple controls.

    Read more about this resource...
     
    Clubber Lang and Gedemon like this.
  2. MadManCam

    MadManCam Chieftain

    Joined:
    May 5, 2017
    Messages:
    50
    Location:
    Minnesota, United States
    How to Change the Mod Settings
    Here's how to change some of the settings for this mod. 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.

    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.

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

    3. The settings are at the very top. They look like this:
    Code:
    -- FREE CAM SETTINGS
    local FreeCam_useAutoCam :boolean= true; -- Set to false to disable automatic camera adjustment help when tilting the camera.
    -- Set to the below variable to true to enable automatic camera adjustment help when tilting the camera with Shift+Left click drag.
    local FreeCam_useAutoCam_forLeftClickDrag :boolean= false;
    local FreeCam_useQE_keys :boolean= true; -- Set to false to disable Q and E key rotation.
    local FreeCam_useWASD_keys :boolean= true; -- Set to false to disable WASD map panning.
    
    local defaultTiltAngle :number = 30; -- The default tilt angle when in Fixed Tilt Mode, used for the Shift + T reset/toggle key.
    local defaultTOD :number = 1.0; -- The default Time of Day (24 hour based) used for the Shift + R reset/toggle key.
    
    local SpinResetKey = Keys.R; -- Cycles between default spin and your last rotation.
    -- Pressing Shift + SpinResetKey cycles between the default Time of Day and last used Time of Day.
    local TiltModeKey = Keys.T; -- Cycle between Dynamic Mode (normal game) and Fixed Tilt Mode where you can change the tilt.
    -- Pressing Shift + TiltModeKey cycles between the default tilt angle and your last tilt angle.
    
    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 FreeCam_UpKey = Keys.W;
    local FreeCam_LeftKey = Keys.A;
    local FreeCam_DownKey = Keys.S;
    local FreeCam_RightKey = Keys.D;
    -- These keys will rotate the map if useQE_keys is set to true.
    local FreeCam_SpinLeftKey = Keys.Q;
    local FreeCam_SpinRightKey = Keys.E;
    
    -- Zoom reset/toggle button settings.
    local defaultZoom    :number = 0.15; -- The default zoom percentage (between 0 and 1) used for the Shift + Z reset/toggle key.
    local ZoomResetKey        = Keys.Z; -- Press Shift + this key to cycle between default zoom level and last used zoom level.[/SIZE]
    
    4. Changing stuff:
    - You can disable automatic camera adjustment when tilting altogether by setting useAutoCam to false.
    - You can enable using automatic adjustment for Shift+Left click drag camera tilt by setting useAutoCam_forLeftClickDrag to true.


    - You can disable using the Q and E keys to rotate the map by setting useQE_keys to false instead of true.
    - You can disable WASD map panning (overrides CQUI settings) by setting useWASD_keys to false instead of true.


    - You can change the default Camera Tilt angle when in Fixed Tilt Mode (for when you use the reset key).
    - You can change the default Ambient Time of Day (for when you use the reset key).


    - You can change the Camera Rotation/Time of Day Toggle/Reset key.
    - You can change the Map Zoom toggle/reset key and default zoom level.
    - You can change the Toggle/Reset Tilt and Toggle Fixed Tilt Mode key.
    - You can change the key that cycles between cities units (default is X).
    - You can change the WASDQ and E keybinds.
    - When changing keys, make sure the letter is uppercase. For example, you can change the value to Keys.J or something.




    5. After you have made your desired changes, save the file. Remeber that if you are in a game, make changes to the file, and save it, stuff will be reset.

    If anything went wrong and the mod stopped working, copy and paste the above code over the settings to get back the defaults.




    How to Change the Mouse Wheel Zoom Speed
    I reduced the mouse wheel zoom speed to allow for more fine tuned zoom adjustments when zoomed in close. If you want to change the speed, the value to change is MOUSE_SCALAR at or around line 61 in the file WorldInput.lua. The default value is 6.0, I reduced it 6x to 1.0






    How to Change the Maximum Camera Zoom
    Find the maximum zoom annoying? Does your game lag or look weird when it zooms out when moving to another spot on the map due to Firaxis' yellow tile graphic glitch? Here's how to lower to maximum camera zoom if you never want to zoom out that far.

    This change must be done with the game closed, it cannot be done with the game open like the other stuff above. Remember you need to change the files again after you update the mod.

    1. Go to the \ArtDefs\ folder for the mod

    2. Open Camera.artdef file with any text editor

    3. Press Ctrl + F or Command + F on Mac

    4. Type in 8000 and do a search, there is another 8000 value later in the file, but the value to change is the first 8000 that shows up in the file.

    5. Change the value of 8000 to something lower like 1000 or 2000.

    6. Save the file and close it. Now start the game.
     
    Last edited: Jan 20, 2018 at 12:43 AM
    Clubber Lang likes this.
  3. Clubber Lang

    Clubber Lang Chieftain

    Joined:
    Oct 20, 2016
    Messages:
    48
    Gender:
    Male
    Brilliant.
     
  4. MadManCam

    MadManCam Chieftain

    Joined:
    May 5, 2017
    Messages:
    50
    Location:
    Minnesota, United States
    MadManCam updated Free Camera with a new update entry:

    QOL update

    Read the rest of this update entry...
     
    Clubber Lang likes this.
  5. Jyet

    Jyet Chieftain

    Joined:
    Sep 19, 2015
    Messages:
    17
    This looks absolutely brilliant, I want it.
    I'm running the iOS iPad version of the game, neither the newest or the older version work for me :(
    If there is anything I can do to help troubleshoot for iOS let me know, I'm very interested.
     
  6. MadManCam

    MadManCam Chieftain

    Joined:
    May 5, 2017
    Messages:
    50
    Location:
    Minnesota, United States
    Thanks for letting me know that it doesn't work. To be honest, I have no idea if the iOS iPad version of the game even supports mods. Have you found other mods that work for it? Does the zoom work at least, or is there still default zoom?

    What I would need to get it working is a file called Lua.log. On Mac it should be in the folder Users/<user name>/Library/Application Support/Sid Meier's Civilization VI/Logs/. The .log file can be opened with any text editor, and then you need to go to www.pastebin.com, paste all of the contents there. Make sure it is set to public then click make new paste. Now you can copy and share the unique web url that was generated for your paste for anyone to view and post it here for me. If you would somehow be able to do this all on an iPad, I would be very impressed and grateful.
     
  7. Jyet

    Jyet Chieftain

    Joined:
    Sep 19, 2015
    Messages:
    17
    I'll work on getting you logs. There are options on the iPad versions appOptions.txt to enable logging so maybe I can.

    It actually crashes the game to the iOS desktop.

    I have moar units working and an older version of JFD's Rule with Faith working. The guy that showed me that some mods can work had a screenshot of a mod that let you rotate the camera working, so my guess is possible.

    Let me see what I can do about those logs.
     
  8. Jyet

    Jyet Chieftain

    Joined:
    Sep 19, 2015
    Messages:
    17
    Ok I'm using the newest version of your mod for these logs. It's crashing right when the picture of the chosen civ is loading and the announcer starts talking but before the blue button to jump into the game loads. (EDIT: all other mods were disabled for this)

    EDIT: Also I think from reading other conversations that the iPad version doesn't run the latest patch. Which is why the older version 8 of Rule With Faith actually works. Hope that helps, your work and ideas look awesome!!!

    https://pastebin.com/2REGhy6V
     
  9. MadManCam

    MadManCam Chieftain

    Joined:
    May 5, 2017
    Messages:
    50
    Location:
    Minnesota, United States
    Thanks for posting that log file! I'm not seeing any errors in the Lua.log that you posted, so the issue could be happening with something else. If a lua file actually crashes the game it might also not print any errors either though.

    Right now I suspect the crashing issue is related to the modified Camera.artdef rather than the lua file. Can you try using the light version: Free Rotation, to see if that works for you? That version does not replace the Camera.artdef file.
     
  10. Jyet

    Jyet Chieftain

    Joined:
    Sep 19, 2015
    Messages:
    17
    Yes that version "Free Rotation" is working Q and E worked - (WASD) didn't do anything and it breaks the games touch input ability 1 finger drag to pan (two fingers to zoom still works), key rebinding of the defaults or by editing the script doesn't fix.
     
    Last edited: Jan 7, 2018
  11. MadManCam

    MadManCam Chieftain

    Joined:
    May 5, 2017
    Messages:
    50
    Location:
    Minnesota, United States
    Interesting, they must have re-written some of that file for the iOS iPad version of the game. It sounds like they re-wrote how panning works, which is probably why this mod's WorldInput.lua breaks all of the panning on iPad. Is it possible for you to access the UI files for the iPad version at all? If you could link a paste bin with the WorldInput.lua file from the iPad version, I could examine it and see how they did panning, and then try to make a separate mod for iPad. It would be cool to get the camera mod going for iPad!
     
  12. Jyet

    Jyet Chieftain

    Joined:
    Sep 19, 2015
    Messages:
    17
    Honestly the biggest feature I want is to be able to be allowed to zoom out further than the default, I don't even need rotation of any kind or extra hotkeys or anything fancier than that, that would (I suspect) be a huge mod for most iPad Civ Players. I sent ya a PM about helping and I am happy to if those files ever become available (right now I don't think it's possible unless someone has an iOS 11 up to 11.1.2 and not newer and is willing to root access it/jailbreak to take a look) -I'm happy to test anything you make if you have new stuff or care to take any shots in the dark!

    Anyways, I'll keep an eye out for situation changes and for your mods and messages. Cheers MadManCam!!
     
    Last edited: Jan 7, 2018
  13. MadManCam

    MadManCam Chieftain

    Joined:
    May 5, 2017
    Messages:
    50
    Location:
    Minnesota, United States
    I've attached a file with a mod that only replaces the game's Camera.artdef file. You can mess around with stuff in the Camera.artdef file if you are interested. The minimum and maximum zoom are defined by the values of "5" and "2000" early on in the file (It is nested in with stuff that will say "HeightCurve", the maximum zoom will be near a value of "100" and the minimum zoom is near a value of "0"). You have to restart Civ 6 for changes made to the file to have an effect. If only this Camera.artdef replacement mod crashes your game, try changing the minimum zoom to its default value of 120 and the maximum zoom to its default value of 600. If that still crashes your game, there is probably an incompatibility with how the camera has been coded for the iPad version.
     

    Attached Files:

    Last edited: Jan 7, 2018
  14. Jyet

    Jyet Chieftain

    Joined:
    Sep 19, 2015
    Messages:
    17
    Crashes. I changed the numbers as you said, still crashes.

    MadManCam thank you so much for trying to fix this up for us, it's very much appreciated, was fun to try too. Hopefully someone will be able to get the info we need to move further, until then -cheers!!!!!!
     
  15. MadManCam

    MadManCam Chieftain

    Joined:
    May 5, 2017
    Messages:
    50
    Location:
    Minnesota, United States
    MadManCam updated Free Camera with a new update entry:

    More Zoom Control + Bug fix

    Read the rest of this update entry...
     
    Clubber Lang likes this.

Share This Page