Lua Script to capture date/time

Started by Kit Cosby

Kit Cosby Lv 1

It would be of use to be able to read system time in our lua scripts, this will give us a fully dynamic (more random) seed for our randomization algorithms.

Time seed randomization might even favor early starters, which could add a fun twist to the game (and reward those of us who spend a lot of time in these puzzles).

Since we all tend to use very similar scripts a better randomization seed would produce a wider variety of saved structures.

Likewise, it will help organize our log files of our recipe outputs. (Once you let us have log files)

Tlaloc Lv 1

Done…lua scripting allows the lua OS library calls. However, we will introduce a better function to seed the random number generator in the near future. Seeding from time has issues in lua.

Tlaloc Lv 1

Scripting has access to the OS library (I think it's still in beta…but will move to main shortly). We will also provide a function to give a good seed, since the seeding from time in Lua provides a bad set of random numbers.