#Time: The final frontier.
1 messages · Page 1 of 1 (latest)
e ive been making my own changes specifically not to bother nak with it
i asked in the stormfox2 discord and it seemed pretty dead so i figured the api is either on hold or not a priority
Oof right in the heart.
You did ask about the weather stuff while I was at work. To answer your question; There are no api for time-skipping back and forth. Since SF2 works on a "lerp" system.
uuh sorry? i did ask if the dev channel is still active ;-;
Teleporting back or forward will stop the lerp function working correctly and may result in glitches.
There is a timeset and weatherset function
it's hard to explain but i worked around all of that by basically updating weather and temperature manually upon time skip
i added this whole function to calculate where the lerp would be if time progressed normally so i can get the accurate temperature
atleast i think it's accurate, i dont actually know what i'm doing
It should network the changes correctly. Do note that jumping back may cause issues
jumping back works perfectly fine actually so long as i stay within the day
i don't know what happens if i go to the previous day, but i imagine i'll have to save the previous weather ot else it'll generate a random one
It will discard the prev day-data once the day is over if I recall
I think there is a fallback if the day-data is null
yeh, previously i saved the last day's weather by having the tardis save it upon time hopping
and then use it when going backwards
SF2 does support overriding the weather-gen. I would recommend using the time-data as a random seed for the weather-data
That way you don't need to save the data
i wanted to integrate it into natural weather gen because that way you can use the forecast to predict where you can jump for a specific weather
Fair. Btw been working on SF3 that doesn't have the lerp issues than SF2 have. It should be much more stable.
If you got any API requests for SF3, feel free to post in #Dev in SF discord or DM me. I'm just focused on work atm, but do work on it in my spare time.
Also as a headsup. SF2 use unix-time for the date-system. So setting the time outside that range might cause issues
i haven't touched the date system because from what i found it never shows up in game, i cant find any hud or menu for it
Ah, good.
i cant quite remember what my biggest difficulty was.. i think it was trying to find the temperature for a given time of the day since it's all done through lerp
that and finding the end temperature of the previous day so i could lerp it manually
thinking about it, this sounds like a really good way to enable backwards time travel because then you'd simply generate the same seed for a previous weather again
i dont think i could implement something like that at this stage, most of the code is galaxies out of my league
I'm glad I was right to @ Nak
amazing detail the blur the 'me' text
It turns out it's a lot of fun to make bespoke shitposts
Whoop forgot to erase part of a layer
Thanks AI