Code: Select all
$sector = [SECTOR] $support = $sector-> get local variable: name='mayhem_secStatsSupport' *do if [THIS] -> call script 'Mayhem.IsPerkUnlocked': perk='Extra factory support' *$support = $support + 4 $allStations.size = [NULL]-> call script 'Mayhem.GetNbPCFactories' : sector=$sector $people = [THIS]-> get local variable: name='mayhem_people'
The same call is made in several places, without problem. This call in this code is NOT made upon game start.
I've tried to create another script with a different name and the same code, as I already had problem with X-Studio or another obscure reason. But that doesn't work either.
Funny thing is when the freeze occurs at game loading, the game still take 25% of my proc and keeps filling the RAM.