Page 1 of 1

synced random seed

Posted: 14 Apr 2015, 08:26
by eronoobos
I'm trying to find a way of getting a new seed for each game. (This is for a procedural map generator gadget, so that the user doesn't have to input a seed manually to get a new map.) os.time() can't be used because it's synced. Using a file to store the last seed and add one to it won't work, for the same reason. I want to use the GameID callin, but that doesn't happen until after the game is loaded, i.e., not the time to do map generation. Is there some way of getting the GameID before the callin happens, or does the ID not exist before that? Have any other ideas? I even tried Spring.GetWind(), but that appears to be all 0 until gameframes start.

Re: synced random seed

Posted: 14 Apr 2015, 08:33
by Silentwings

Re: synced random seed

Posted: 14 Apr 2015, 22:14
by eronoobos
ahh... yes, thank you. that clarifies things.