I'm creating a map script, and it would be useful to be able to test different versions of the script with the same seed, but I haven't figured out a way to do it. There doesn't seem to be an option for it in the game setup, not even with Really Advanced Setup mod. I tried using WorldBuilder but it's not there either.
The script I'm making is a modification of Communitu79, which has this code in it:
but manually setting that seed still generates a different map every time.
Is there a way to set the seed for a map script?
The script I'm making is a modification of Communitu79, which has this code in it:
function PWRandSeed(fixedseed)
local seed
if fixedseed == nil then
seed = (Map.Rand(32767,"") * 65536) + Map.Rand(65535,"")
else
seed = fixedseed
end
math.randomseed(seed)
print("random seed for this map is " .. seed)
end
but manually setting that seed still generates a different map every time.
Is there a way to set the seed for a map script?