It works like this:
- it ask you where you live and it needs the exact position of that.
- You have to enter your timezone
- You choose the map you want to play
- It calculates the position of the sun
- an option is to enter the direction of YOU, sitting behind your computer. Then it adjust the sun position in comparison with your direction. So, if you look to the right and see the sun, then the sun will be at the right side ingame.
- It extract the SMD file from the sd7 map file and it makes a backup of it.
- It adjust the Sun position in the SMD file and all the light settings, if it is night the map will become darker
- another idea is to grap the weither info of your location from the internet, then it can adjust the cloud density and light enviroments.
- after the game, when you're back in the lobby it will restore the backup file
I'm looking for some code to get info about the selected map in the lobby.
Then selecting the map is not needed anymore.
This is really a huge project, but i can grap some code from another program i made, a home automation project that already calculates the sun position, sunset and sunrise to automaticly turn lights on or off.
another suggestions, tell me