Map Editor Not Respecting Playable Area?

Interesting mapping tools and mapping help.

Moderator: Morax

Map Editor Not Respecting Playable Area?

Postby KD7BCH » 06 Dec 2015, 18:43

Here is my script....


local ScenarioUtils = import('/lua/sim/ScenarioUtilities.lua')

function OnPopulate()
ScenarioUtils.InitializeArmies()
ScenarioFramework.SetPlayableArea('AREA_1' , true)
end

function OnStart(self)
end


I have tried both true and false. The area where area_1 is, has been outlined and is shown on the editor but when the map loads it does not respect this boundary and it loads 20x20. Any ideas as to what the deal is?
The Gun Down
https://www.youtube.com/watch?v=PPmuSnJiV0o
KD7BCH
Priest
 
Posts: 424
Joined: 25 Feb 2015, 18:06
Has liked: 29 times
Been liked: 12 times
FAF User Name: KD7BCH

Re: Map Editor Not Respecting Playable Area?

Postby speed2 » 06 Dec 2015, 18:55

Post your map, I ll look at it
User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Re: Map Editor Not Respecting Playable Area?

Postby KD7BCH » 06 Dec 2015, 19:32

Thanks Speed,

Map is Duel Gap,

It is in vault, version 6, I am WIP on it, and have it setup to be about 20x12, but the whole 20x20 map loads so no idea why. Checked scripts and checked editor, map area is set, scripts both true and false tried so not sure what issue is.

Thanks again.
The Gun Down
https://www.youtube.com/watch?v=PPmuSnJiV0o
KD7BCH
Priest
 
Posts: 424
Joined: 25 Feb 2015, 18:06
Has liked: 29 times
Been liked: 12 times
FAF User Name: KD7BCH

Re: Map Editor Not Respecting Playable Area?

Postby speed2 » 06 Dec 2015, 20:09

you forgot this line at the beginning of the script
Code: Select all
local ScenarioFramework = import('/lua/ScenarioFramework.lua')
User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Re: Map Editor Not Respecting Playable Area?

Postby KD7BCH » 06 Dec 2015, 20:34

Awesome that fixed it!

Thanks Speed :)
The Gun Down
https://www.youtube.com/watch?v=PPmuSnJiV0o
KD7BCH
Priest
 
Posts: 424
Joined: 25 Feb 2015, 18:06
Has liked: 29 times
Been liked: 12 times
FAF User Name: KD7BCH


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest