Compass

If you liked this item, please rate it up on Steam Workshop page.

Author: jarnys

Last revision: 17 Jun, 2023 at 13:53 UTC

File size: 29.7 KB

On Steam Workshop

Description:

Simple mod that displays the cardinal direction you’re viewing.

This is my first mod – so please be kind (but still honest)

Options

  • Rotate displayed direction by 0-270° in 90° steps or automatic detection (Default: 180°)
  • Change the display mode to show the cardinal direction as name, angle or both
  • Show/Hide the panel with a hotkey (Default is Alt + C)
  • Multiple display types: Disc and solid state (default)
  • Reset of Panel position can be done by changing the display type
  • All settings can be reset in the options panel
  • Double click on the panel rotates the camera north

Known Issues

  • Display type "disc" has some graphical glitches / alignment issues (suggestions for a fix appreciated)

About the automatic detection of the offset
This feature is still experimental but all my tests showed that it is working.
Cities:Skylines is very weird in this regard as the latitude changes everything as expected but the longitude changes the direction of the sun as well.
Also this is currently not restricted to 90° steps so if your map is not located perfectly on 0°, 90°, 180° east or west it will not align with the sides of the map! eg. if the map is for Osaka, Japan (latitude 35, longitude 135) your sun will be above one of the corners at midday and that corner will be declared as south, on the other hand if your city is between São Paulo and Rio de Janeiro (latitude -23, longitude -45) your sun will be above another corner of the map during midday and that direction will be north.

SourceCode here:
https://github.com/jarnar85/cs_compass