Cities: Skylines
261 оценки
Moon Phases
   
Награда
Добавяне към любими
В любими
Премахване от любими
Mod
Размер на файла
Публикуван на
Обновен на
3.495 MB
25 авг. 2016 в 10:46
26 авг. 2016 в 10:32
3 бележки за промени ( преглед )

Абониране, за да се свали
Moon Phases

Описание
A customizable moon cycle implementation

Use dynamic moon cycle, or pick your favorite moon texture and settings.

What does this mod do?

This mod is my attempt to add another layer of realism to Cities:Skylines by implementing a basic moon cycle(purely visual for now) into the game.

Current features:
  • 24 different moon phase textures.
  • Moon size slider.
  • Custom HD 4096px outer space cubemap based on HYG 3.0: Hipparcos, Yale Bright Star, and Gliese star data catalogs.
  • Automatic moon phase changes based on game date-time.
  • Automatic moonlight and outer space/stars brightness change depending on current phase. ie. dim stars and bright moonlight during full moon; bright stars and dim moonlight during new moon that progressively increase/decrease during cycle.
  • Option to set Static mode, which lets you pick your preferred moon, moonlight and outer space/stars brightness and have it stay that way indefinitely.
  • Option to have dynamically changing moon phase, but static moonlight and outer space/stars brightness.
  • Slick In-Game Option GUI that remembers its position on screen across sessions.
  • GUI Toggle button in Toolbar (Next to temperature panel).
  • Save your settings or reset them to mod default with the click of a button.
  • More to come! Stay tuned!

How does it work?

The mod loads its assets into memory right after you click the load button when starting/loading a city. It will add about 5 seconds to your loading times.

When the city finishes loading, the mod sets its custom cubemap, horizon color, brightness settings, etc, then checks the day of the year against its list of moon phase change dates, and sets the current moon phase accordingly. If you've previously set the mode to Static, this doesn't happen and instead your saved settings get loaded.

During game play on Dynamic mode, the mod detects when a phase change date has been reached, and updates the moon phase accordingly.

If you disable day-night cycle or it is currently day time in the game, the mod does nothing, so it shouldn't be taxing on resources at all. In fact I didn't notice any performance hit whatsoever even during night time with dynamic mode on.

Phase changes occur every ~15 game days, which means several times per "night".
What? Yes, the day/night cycle is independent of actual game days, as you might have noticed.

This is currently not customizable. If you think its too quick, please leave feedback and just use static mode for now.


Incompatibility

It is incompatible with any mod that change the moon textures, outerspace cubemap textures, moonlight brightness, stars intensity, night horizon color, or moon coronas.

The only mod I know of which does any of that is:

This mod changes the night sky cubemap and as such it will conflict.
Please disable or unsubscribe from Skyscapes 1 if you are using it before using Moon Phases.

This mod is compatible with every other mod, including Map Themes which will simply have their moon textures and night colors settings overwritten by Moon Phases.

Mods that complement Moon Phases

Ultimate Eyecandy

Use Ultimate Eyecandy to help you achieve your desired look/feel for your screenshots! It's a great mod, and I took a lot of my inspiration from it, as well as using it as a base to build my UI from. Thanks Judazzz!

Acknowledgements
I'd like to thank in no particular order: OWL for his valuable feedback about the GUI and its look. bloodypenguin for all the help he has provided to help me learn C#. boformer for providing a skeleton for my Terrain Themes mod from which I learned a great deal. Judazzz for his Ultimate Eyecandy mod from which I learned how to make a decent User Interface. SamSamTS for writing the original UI code from which Judazzz derived. AcidFire for writing the code which helped SamSamTS. (Yay for nested thank yous!) Colossal Order and Paradox Interactive for this great game.

Planned Features
  • Improve the moon textures(Help needed with this, if you're an animator or an artist and you're interested, contact me in the comments below) I'd love to have more phases and achieve a smooth animation effect, where the moon slowly waxes/wanes over time instead of the current "steps" it takes into the next phase.
  • Improve the outer space cubemap.
  • Add more cubemap options so you can pick your favorite sky.
  • Add alternative moon textures so you can pick yellowish/blueish moons, etc.
  • Ability to customize phase change frequency through options GUI or in xml file. Currently if you try to do anything like that through xml file you will break the mod: Don't do it.
  • Ability to change the night horizon color.
  • Ability to change the game stars brightness(currently game stars are disabled entirely, the ones you see are from outer space cubemap)
  • Have the moon phase influence the game in real ways; for example, tides and crime rate fluctuations.
  • Figure out how to make the moon render brighter.

Known Issues

Sometimes for some obscure reason this happens:



To fix it just increase the moon size until the white lines disappear, then save settings. Will try to find a definitive solution.

Disclaimer

FIRST:

This is mod is entirely useless. Yes, you heard me right, it doesn't really *DO* anything, its only for eye candy, just visuals, for taking screenshots and such.

I am looking at the possibility of adding some meaningful aspects to it for future versions but as of now, its a pretty much useless exercise in modding and UI building. I did it because I was tired of always having a full moon and because I enjoy a challenge. If you don't like it, I totally understand you, feel free to not use it :)

SECOND:

I am not a professional programmer, as such, I cannot guarantee my code is optimal. I did my best with what I've learned so far to make the mod as lightweight as possible. If you do notice any performance issues, please let me know in the comments below and I will do my best to address them.

Finally:

If you have any ideas to improve this mod, please let me know in the comments below, or feel free to start an Ideas discussion.

If you have bugs to report please use pastebin and post a link. DON'T paste your output log to a comment.

If you want your sky to look like in the Screenshot, you need Ultimate Eyecandy and disable LUT color correction.
Otherwise its not as black.


This mod is licensed under a MIT License (MIT)[opensource.org]

Enjoy! (rate+fav if you like it : )

If you're feeling generous and would like to buy me the morning paper or a drink, you can donate using the link below.

All donations are extremely appreciated. They are a great incentive for me to continue working on Mods in the future.

Thank you!

[www.paypal.com]
77 коментара
zin 28 май 2023 в 6:04 
I’d love an updated version.
LyssaPearl 17 март 2023 в 18:28 
Is this compatible with Theme Mixer?
Player 27 ноем. 2021 в 13:30 
Wish somebody would make A double moon mod.
saintkhawnan 10 май 2020 в 17:46 
@dig74-- Dude, you are just going to have to live with that... Sadly, that flicker has been with this mod since its debut. Other than that, this mod is working just FINE!
DigFS 30 март 2020 в 11:29 
Hi. Great Mod.
It would be great to see an update adding, for example, the passing of a comet.
The mod works fine, but I have a little problem with the Moon. As you move across the sky, in the center of the Moon, there is a small flickering black square. It only appears with the game running. If I pause or take a screenshot, it doesn't appear. What can happen ?. a greeting
Minnie 6 септ. 2019 в 3:48 
@mongul just reinstalled the game after years and its working fine here (no dlc)
monguinassassin 21 авг. 2019 в 20:15 
tobilike1 Mar 24 @ 5:33am
I would like to know if the mod still works correctly with the new version. I noticed that the mod produces error messages when I load a scenario.

Thanks

Excellent tip. Also, I had complete blackouts in my "summers." I just unsubscribed to this for a smooth gameplay.
=SAVERS=#1 19 юни 2019 в 0:05 
pls reduce the darkness too much the land or soil is completely black !!
tobilike1 24 март 2019 в 5:33 
I would like to know if the mod still works correctly with the new version. I noticed that the mod produces error messages when I load a scenario.

Thanks
T​​​P​​​B  [автор] 10 ноем. 2018 в 23:20 
Can you tell me what map/map theme you are using?
Also, which mods you are using that can change the light, for example:
Are you using relight, are you using ultimate eyecandy, etc?