Malnaur Posted January 10, 2024 Report Posted January 10, 2024 Although I am an experienced developer, I'm still at the 'use other mods as starting points' stage with VS. How would I access ephemeris data to detect if it's dawn yet? Is there a day/night flag somewhere or a sun position value I can access through the API? Since the day/night cycle varies with latitude, I assume this would be a local value to my current position. TIA
Malnaur Posted January 11, 2024 Author Report Posted January 11, 2024 1 hour ago, idiomcritter said: discord any better on response? Haven't tried there. I'm beginning to think these forums are ignored by the 'serious people'. Game forums often are.
Malnaur Posted January 12, 2024 Author Report Posted January 12, 2024 (edited) 22 hours ago, idiomcritter said: discord any better on response? Discord came through! I now have a prototype mod to wake at dawn. A bit hacky but it seems to work for single player. Need multiplayer on servers too though.. Edited January 12, 2024 by Malnaur 1
Ritzga Posted January 14, 2024 Report Posted January 14, 2024 Hello, maybe this class can help you https://github.com/anegostudios/vsapi/blob/9bf26b71970ff2168d6f8534cf6ee4a914087511/Common/API/IGameCalendar.cs#L49 and where its implemented and used here https://github.com/anegostudios/vsapi/blob/9bf26b71970ff2168d6f8534cf6ee4a914087511/Client/API/IClientWorldAccessor.cs#L79 so you load it like here: IClientWorldAccessor clientWorld = (IClientWorldAccessor)Api.World; Good luck!
Recommended Posts