#Grow a garden stock

1 messages · Page 1 of 1 (latest)

glossy gale
#

How does Grow a Garden do it's shop system? Does it use MessageService to handle the stock?

deft wyvern
#

Just use random with a set seed

#

(unix time stamp)

ornate needle
#

but

#

if you wanna recreate

#

you should use memory store + messaging

#

Datastores are mostlikely not used

#

Due to 25mb read per minute

#

per key

#

which can be somewhere limiting for gag which had 20m ccu

#

depends on what they save

hushed gorge
#

Not sure on how they do it tho?

glossy gale
# deft wyvern Just use random with a set seed

Does that mean like every server just uses one Random.new() object with a set seed? How do they refresh at the same time though? Does the random object guarantee every server has the same stock?

deft wyvern
#

and then they all have the same seed

#

and the same outcome

#

and you can get the last xx:00 or xx:05 time with some math for new servers

deft wyvern
agile egret
#

sync to that

glossy gale
alpine zodiac
#

os.time isnt precise enough

#

sometimes it can be off by minutes

#

@agile egret @glossy gale

#

there's a way to get the time from google

#

which is always accurate and precise

glossy gale