I've tried the suggestion for the map size thing... no luck unfortunately :<
Here is my test code:
function LevelSetup()
SetBackdropColour(0,0,0)
Globals.Agents.MaxSpeed=900
Globals.Agents.MinSpeed=500
Globals.Flowers.MinSpeed=500
Globals.Flowers.MaxSpeed=900
Globals.Asteroids.MaxTrees=3
Globals.Asteroids.MinRadius=125
Globals.Asteroids.MaxRadius=725
Globals.Asteroids.RadiusPowerRule=1.5
Globals.Asteroids.MinCoreHealth=400
Globals.Asteroids.MaxCoreHealth=1000
Globals.Asteroids.CoreHealthPower=3.5
Globals.Asteroids.MinSendDistance=3500
Globals.Asteroids.MaxSendDistance=6000
Globals.Asteroids.SendPowerRule=1.4
Globals.Asteroids.SpawnCap=150
Globals.Asteroids.SeedlingCap=500
Globals.G.Asteroids=(0)
-- trying to fix mapsize bug
Globals.G.MaxAsteroidNeighbourDist=(50000)
Globals.G.MinAsteroidSeparation=(50000)
Globals.G.EnemyFactionsMin=(0)
Globals.G.EnemyFactionsMax=(0)
Globals.G.GreysProbability=0
Globals.Structures.FlowerProbability=(0.3)
-- Spacer Asteroid 1
sa1 = AddAsteroidWithAttribs(15000,15000,0.5,0.5,0.5)
-- the above line causes the map to not load!!
sa1.Owner = 2
sa1.TreeCap = 0
sa1:SetRadius(1)
sa1:Hide(1)
-- Spacer Asteroid 2
sa2 = AddAsteroidWithAttribs(-15000,-1500,0.5,0.5,0.5)
sa2.Owner = 2
sa2.TreeCap = 0
sa2:SetRadius(1)
sa2:Hide(1)
-- Spacer Asteroid 3
sa3 = AddAsteroidWithAttribs(-15000,1500,0.5,0.5,0.5)
sa3.Owner = 2
sa3.TreeCap = 0
sa3:SetRadius(1)
sa3:Hide(1)
-- Spacer Asteroid 4
sa4 = AddAsteroidWithAttribs(15000,-1500,0.5,0.5,0.5)
sa4.Owner = 2
sa4.TreeCap = 0
sa4:SetRadius(1)
sa4:Hide(1)
-- Asteroid 0 - The Sun
-- Creation
sun = AddAsteroidWithAttribs(0,0,0.5,0.5,0.5)
sun.Owner = 1
sun.TreeCap = 3
sun:SetRadius(600)
sun:Reveal(1)
sun.Moveable = false
sun:AddSeedlings(50)
end
function LevelLogic()
end
I can increase the horizontal dimensions up to 15,000, but I can't seem to vertical dimensions to 15,000 at the same time. Nothing I tried could get an asteroid with coordinates like (100000,0).
Can you post the code you used to get your large map? :>
Hi, i've had a quick look at your code and i found the following...
Globals.Asteroids.MinSendDistance=3500
Globals.Asteroids.MaxSendDistance=6000
Both these figures are far too low. Remember when the game sets up the map it needs to make all the planets connect up to at least one other planet. If you have a planet at (-100000,0) and the closest planet to it is (0,0) then obviously, the game cannot connect the two up with a max send distance of 6000, so hence the map will not load. If you wish to use lower SendDistances on your planets than setup will allow you to use, then you must specify them in LevelLogic and not Setup.
Just a note about memory issues... a 100'000x100'000 map doesn't use up a lot of memory (With the map in the spoiler, eufloria uses 180mb, which is only 40mb more than all the other custom maps i had a look at). But the larger you get, it seems to exponentially use up more memory. Also, if you make a planet at (-100'000,0), then it automatically scales the map upto +100'000, so your map will actually by 200'000x200'000. (A 200'000x200'000 map uses 330mb memory)
I just wrote the following piece of code to show you that larger maps are indeed possible.
function LevelSetup()
-- Set Global Values
Globals.G.MinAsteroidSeparation=(500)
Globals.G.MaxAsteroidNeighbourDist=(100000)
Globals.Asteroids.MinSendDistance=(100000)
Globals.Asteroids.MaxSendDistance=(100000)
Globals.G.GreysProbability=(0)
a=AddAsteroidWithAttribs(50000,0,1,1,1)
a.Owner = 1
a:AddSeedlings(20)
b=AddAsteroidWithAttribs(-50000,0,1,1,1)
end
function LevelLogic()
end