I'm making a level, but when I try to test it, I get an error saying "Object reference not set to an instance of an object."
Here's the code.
function LevelSetup()
SetBackdropColour(255,255,255)
Globals.Agents.MaxSpeed=(800)
Globals.Agents.MinSpeed=(310)
Globals.Asteroids.MinSendDistance=(9500)
Globals.Asteroids.MaxSendDistance=(10000)
Globals.Asteroids.MinRadius=(700)
Globals.Asteroids.MaxRadius=(1200)
-- I included the AI variables to save time with
-- anyone who wanted to change the difficulty.
--But instead of modifying the difficulty of each level
--one by one, you can always modify Default.xml
--Globals.AI.MinScoutTime=
--Globals.AI.MaxScoutTime=
--Globals.AI.MinScoutableArmy=
--Globals.AI.MinBattleAnalysisTime=
--Globals.AI.MaxBattleAnalysisTime=
--Globals.AI.Cowardice=
--Globals.AI.BattleSavvy=
--Globals.AI.RecognisableThreatProportion=
--Globals.AI.ReinforcementGreed=
--Globals.AI.AidEnthusiasm=
--Globals.AI.MinExpansionTime=
--Globals.AI.MaxExpansionTime=
--Globals.AI.MinExpansionForce=
--Globals.AI.ExpandToValuableAsteroidChance=
--Globals.AI.Globals.AI.=
--Globals.AI.ExpandBlind=
--Globals.AI.MinAttackTime=
--Globals.AI.MaxAttackTime=
--Globals.AI.MinPlantTime=
--Globals.AI.MaxPlantTime=
--Globals.AI.MinFlowerTime=
--Globals.AI.MaxFlowerTime=
--Globals.AI.MinGatherTime=
--Globals.AI.MaxGatherTime=
--Globals.AI.MinTotalSeedlings=
--Globals.AI.MinTotalAddPerAsteroid=
Globals.G.EnemyFactionsMin=(5)
Globals.G.EnemyFactionsMax=(7)
Globals.G.MinAsteroidSeparation=(9000)
Globals.G.MaxAsteroidNeighbourDist=(9500)
Globals.G.StartingSeedlings=(75)
Globals.G.GreysProbability=(50)
Globals.G.GreysMin=(20)
Globals.G.GreysMax=(30)
Globals.G.BeltRadius=(6000)
Globals.G.BeltWidth=(8000)
Globals.G.Asteroids=(30)
end
function LevelLogic()
end
Can someone tell me what went wrong?