PDA

View Full Version : Issue with math.randomseed


Moongaze
28-10-2006, 11:35 PM
A user is having an issue with one of my mods, and it seems that the lua math library's "randomseed" method can't be called. Could there be an addon that anyone knows, or library, that might make another math object, or randomseed object and basically ruin it?

If anyone has any information, that would be great. Or maybe a fix. The apparently everyone BUT this person's computer, so I assume it's a conflict between mods...

Moongaze
30-10-2006, 10:46 AM
Found the problem. There is a mod out there, "Sweep" from Vallerius (located at: http://www.curse-gaming.com/en/wow/addons-1630-1-sweep.html) which takes the math.randomseed method and sets it to 3...

math.randomseed = 3;

when it should be something like:

math.randomseed(math.random(0,214748364)+(GetTime()*1000))

for randomizing the seed. Thus, they break the math.randomseed method. *sigh* Laaaame ... :embarassed:

Tunga
30-10-2006, 11:40 AM
There are other (better) minesweeper games around, I would suggest telling your users to switch to another until you get a response to your message on the Sweep page above :( .