#Time: The final frontier.

1 messages · Page 1 of 1 (latest)

old silo
#

@sterile creek Sounds like someone would like you to modify your Stormfox 2 API

cold verge
#

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

sterile creek
#

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.

cold verge
sterile creek
#

Teleporting back or forward will stop the lerp function working correctly and may result in glitches.
There is a timeset and weatherset function

cold verge
#

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

sterile creek
#

It should network the changes correctly. Do note that jumping back may cause issues

cold verge
#

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

sterile creek
#

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

cold verge
#

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

sterile creek
#

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

cold verge
#

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

sterile creek
#

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

cold verge
#

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

sterile creek
#

Ah, good.

cold verge
#

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

cold verge
#

i dont think i could implement something like that at this stage, most of the code is galaxies out of my league

old silo
#

I'm glad I was right to @ Nak

cold verge
#

amazing detail the blur the 'me' text

old silo
#

It turns out it's a lot of fun to make bespoke shitposts

#

Whoop forgot to erase part of a layer

sterile creek