Ceres Posted September 14, 2021 Report Share Posted September 14, 2021 AFAIK, max. zoom is higher ("infinite") in Atlas editor than in 0ad. Can it be increased for the latter? Where would I find code for this? I'm never able during gameplay to look her into her beautiful eyes. 2 Quote Link to comment Share on other sites More sharing options...
Yekaterina Posted September 14, 2021 Report Share Posted September 14, 2021 Yes you can. You can create a local.cfg in your config folder. Then type in zoom.max = 500; Or max.zoom = 500; (Sorry I can't remember which one exactly, just try both and see if one works) 1 Quote Link to comment Share on other sites More sharing options...
Ceres Posted September 14, 2021 Author Report Share Posted September 14, 2021 (edited) Thank you! According to \binaries\data\config\default.cfg [view] ; Camera control settings zoom.min = 50.0 zoom.max = 200.0 zoom.default = 120.0 However, when I put zoom.max = 1000.0 into \0ad\config\local.cfg, I don't get closer than this: Is I also put gui.scale = 1.5 there and see its effect in the GUI scale, the file seems to be in the right place. But the max. zoom factor does not seem to have any effect. Shouldn't local.cfg override default.cfg? Edit: When starting 0 A.D. (SVN) with this parameter, where is the local.cfg file stored? -writableRoot store runtime game data in root data directory (only use if you have write permissions on that directory) Besides, see there about the GUI scale and there: https://code.wildfiregames.com/D3037 Edited September 14, 2021 by Ceres Quote Link to comment Share on other sites More sharing options...
Yekaterina Posted September 14, 2021 Report Share Posted September 14, 2021 (edited) 38 minutes ago, Ceres said: When starting 0 A.D. (SVN) with this parameter, where is the local.cfg file stored? I believe for linux, it is at: ~/.config/0ad/config/ For windows, Appdata/local/0ad/config or Appdata/roaming/0ad/config (Again, I haven't used windows in a long time so I don't know for sure, but if I remember correctly they were in appdata) You need to create the file by yourself. It is not included by default. Edited September 14, 2021 by Yekaterina 1 Quote Link to comment Share on other sites More sharing options...
Ceres Posted September 14, 2021 Author Report Share Posted September 14, 2021 (edited) I created the file: Quote However, when I put zoom.max = 1000.0 into \0ad\config\local.cfg, I don't get closer than this: Is I also put gui.scale = 1.5 there and see its effect in the GUI scale, the file seems to be in the right place. But the max. zoom factor does not seem to have any effect. Shouldn't local.cfg override default.cfg? The GUI scale change works, but the max. zoom change has no effect. PS: When I enable the dev overlay (alt+d) and untick "Restrict camera", the zoom works ("endlessly"). Edited September 14, 2021 by Ceres Quote Link to comment Share on other sites More sharing options...
Ceres Posted September 14, 2021 Author Report Share Posted September 14, 2021 When using the "-writableRoot" parameter on Debian, the file ~/.config/0ad/config/local.cfg does not have any effect, but it does without that parameter. However, only the GUI scale (switch between 1.0 and e.g. 1.2) shows an effect. The max. zoom settings does not show any effect when zooming. Here is my local.cfg: gui.scale = 1.2 zoom.max = 500.0 Any further ideas? Thank you! Quote Link to comment Share on other sites More sharing options...
Yekaterina Posted September 14, 2021 Report Share Posted September 14, 2021 Just now, Ceres said: When using the "-writableRoot" parameter on Debian, the file ~/.config/0ad/config/local.cfg does not have any effect, but it does without that parameter. However, only the GUI scale (switch between 1.0 and e.g. 1.2) shows an effect. The max. zoom settings does not show any effect when zooming. Here is my local.cfg: gui.scale = 1.2 zoom.max = 500.0 Any further ideas? Thank you! I think you need the semi-colon sign at the end of each line. If it still doesn't work, maybe insert the local.cfg at where you found default.cfg (0ad/binaries/config) 1 Quote Link to comment Share on other sites More sharing options...
Stan` Posted September 14, 2021 Report Share Posted September 14, 2021 zoom.min = 50.0 Is what you are interested in. Zoom max is dezooming not zooming in. https://github.com/0ad/0ad/blob/master/binaries/data/config/default.cfg#L565 1 Quote Link to comment Share on other sites More sharing options...
Ceres Posted September 14, 2021 Author Report Share Posted September 14, 2021 Oh my bad! Thanks! Quote Link to comment Share on other sites More sharing options...
Ceres Posted September 15, 2021 Author Report Share Posted September 15, 2021 @Stan` When zooming in, it's keeping the screen centre in focus. However, if one is interested to zoom in to a unit or just an area not in the centre, after zooming in, one has to move there (or vice versa). Would it make sense to have a toggleable zoom function, so a selected unit or area is kept in the centre of the screen, even if not originally in the screen centre? (e.g. Alt + scroll wheel) Quote Link to comment Share on other sites More sharing options...
maroder Posted September 15, 2021 Report Share Posted September 15, 2021 @Ceres select a unit an then press F to follow it with the camera. Then you can zoom in as much as you want. 1 Quote Link to comment Share on other sites More sharing options...
Ceres Posted October 27, 2022 Author Report Share Posted October 27, 2022 Knowing that this is more than a year ago, I paste below my current test setting (also for other interested players), which seems to work nicely for me: C:\Users\Ceres\AppData\Roaming\0ad\config\local.cfg [view] ; Camera control settings zoom.speed = 256.0 zoom.speed.wheel = 16.0 zoom.min = 0.0 zoom.max = 300.0 zoom.default = 80.0 zoom.speed.modifier = 1.5 ; Multiplier for changing zoom speed 3 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted October 28, 2022 Report Share Posted October 28, 2022 6 hours ago, Ceres said: Knowing that this is more than a year ago, I paste below my current test setting (also for other interested players), which seems to work nicely for me: C:\Users\Ceres\AppData\Roaming\0ad\config\local.cfg [view] ; Camera control settings zoom.speed = 256.0 zoom.speed.wheel = 16.0 zoom.min = 0.0 zoom.max = 300.0 zoom.default = 80.0 zoom.speed.modifier = 1.5 ; Multiplier for changing zoom speed I think the game could have 3 presets, like how AOE3 did. Close, Normal, Far. 2 Quote Link to comment Share on other sites More sharing options...
Pepre Posted October 28, 2022 Report Share Posted October 28, 2022 Install boonGUI mod and change zoom out distance in Option -> boonGUI to 400 - Further 1 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted October 28, 2022 Report Share Posted October 28, 2022 4 hours ago, wowgetoffyourcellphone said: I think the game could have 3 presets, like how AOE3 did. Close, Normal, Far. This. Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted October 28, 2022 Report Share Posted October 28, 2022 3 hours ago, Pepre said: Install boonGUI mod and change zoom out distance in Option -> boonGUI to 400 - Further I think the point of discussing it on the technical forum is to not have to install a mod and add it to the main game. 3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.