Joined: 02 Dec 2011, 22:31 Location: North Dakota, US
o cool, though I should probably also mention that it happens with or without the map option selected. Maybe I should just try getting rid of it completely for now?
if (Spring.GetMapOptions().inv == "0" or Spring.GetMapOptions().inv == nil) then return end
--if (Spring.GetMapOptions().inv == true) then --if mapinfo.smf.minheight and mapinfo.smf.maxheight then local min,max = mapinfo.smf.minheight, mapinfo.smf.maxheight mapinfo.smf.minheight = max - 600 mapinfo.smf.maxheight = min - 600 --end --end
if (not Spring.GetMapOptions().inv) then return end
if mapinfo.smf.minheight and mapinfo.smf.maxheight then local min,max = mapinfo.smf.minheight, mapinfo.smf.maxheight mapinfo.smf.minheight = max mapinfo.smf.maxheight = min else Spring.Echo("Error mapinfo.lua: InvertedHeightmap selected but smf.minheight and/or smf.maxheight are unset!") end
if (Spring.GetMapOptions().inv == "0" or Spring.GetMapOptions().inv == nil) then return end
if mapinfo.smf.minheight and mapinfo.smf.maxheight then local min,max = mapinfo.smf.minheight, mapinfo.smf.maxheight mapinfo.smf.minheight = max mapinfo.smf.maxheight = min else Spring.Echo("Error mapinfo.lua: InvertedHeightmap selected but smf.minheight and/or smf.maxheight are unset!") end
Thanks , I ended up with that but it works flawlessly.
I'm guessing you had that lighting so your preshaded maps wouldn't be borked?
Joined: 02 Dec 2011, 22:31 Location: North Dakota, US
No I've been lazy I meant to talk with jk about it, but haven't. For now though you can just replace the inverted height code with the code a couple posts up. I've also been messing with the blueprint a bunch so if you want an updated one (I plan on updating jk's if hes alright with it) just download my Small Supreme Battlefield revisited v0 map and take what you need/delete what you don't.
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum