Hello scouser! I found that the randomization when using multiple fancards is not efficient.
The game repeats the same "random" choice whenever you repeat the same game in the career.
I solved partially by adding these lines to fancards.lua
(rev.mod 1.0), a stratagem that you have already used in other contexts
function GetRMFancards(idx,ven)
local ban = ""
seed = 123456
seed = (seed + db.fancards[idx].homeTeamID + db.fancards[idx].awayTeamID)%1000000
if (idx == 0) then
local temp = math.random(1,1000000)
math.randomseed(seed + temp)
math.random()
math.random()
math.random()
end
local team = db.fancards[idx].homeTeamID
local opp = db.fancards[idx].awayTeamID
local var = math.random(0,3)
(...)
The final solution should be
local x = os.time()
math.randomseed(x)
but I do not understand why it does not work!!
Thank you so much again.
your work has changed completely
the approach to editing!
The game repeats the same "random" choice whenever you repeat the same game in the career.
I solved partially by adding these lines to fancards.lua
(rev.mod 1.0), a stratagem that you have already used in other contexts
function GetRMFancards(idx,ven)
local ban = ""
seed = 123456
seed = (seed + db.fancards[idx].homeTeamID + db.fancards[idx].awayTeamID)%1000000
if (idx == 0) then
local temp = math.random(1,1000000)
math.randomseed(seed + temp)
math.random()
math.random()
math.random()
end
local team = db.fancards[idx].homeTeamID
local opp = db.fancards[idx].awayTeamID
local var = math.random(0,3)
(...)
The final solution should be
local x = os.time()
math.randomseed(x)
but I do not understand why it does not work!!
Thank you so much again.
your work has changed completely
the approach to editing!