Vertical maps bug

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Vertical maps bug

Postby ozonex » 28 Dec 2012, 11:02

after a few games on the map "Harbours", that I think is was buged, I have decided that I will do my map with similar proportions 10x20, vertical map. When i started it i saw something like this:
http://ozonex.pl/galeria/coulata%20mapa%20ozona.jpg

"world borders" ignore height, and only fit to maps width. I tested other 10 vertical maps from vault and all have this problem.

Any ideas how to fix it? I think the only way is to make map from the begining with horizontal proportions :/
FAF Map Editor Alpha v0.605 > Get it now!
User avatar
ozonex
Priest
 
Posts: 358
Joined: 16 Feb 2012, 20:11
Location: Poland
Has liked: 197 times
Been liked: 263 times
FAF User Name: ozonex

Re: Vertical maps bug

Postby Ze_PilOt » 28 Dec 2012, 11:38

There is a map in a vault that is square, but it's resized when you spawn to be a vertical band.
It's one of the ladder map.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Vertical maps bug

Postby Plasma_Wolf » 28 Dec 2012, 12:47

1. Make a square map
2. Do everything you want to do
3. Go to the areas menu in the layers screen
  • click "new" in the Areas screen, you'll see "AREA_1" appear with four times the value "0" behind it.
  • Click somewhere in the values part of AREA_1, then change the 0 values into what you want.
  • The first value is the x-coordinate where the area begins, the second is the y-coordinate where the area begins, the third is the x-coordinate where the area ends, the last is the y-coordinate where the area ends. While changing the values, you'll see a white rectangle appear and change sizes. The coordinates go up to the value of the size of your map (so if you want a 512x1024 map, you'll probably set your values to 256,0,768,1024)
4. Add the following to the script file (yourmap_script.lua):
Code: Select all
function OnStart(self)
   ScenarioFramework.SetPlayableArea('AREA_1' )
end
User avatar
Plasma_Wolf
Supreme Commander
 
Posts: 1335
Joined: 20 Oct 2011, 11:28
Has liked: 23 times
Been liked: 91 times
FAF User Name: Plasma_Wolf

Re: Vertical maps bug

Postby ozonex » 28 Dec 2012, 15:23

thx, good to know this, but your script didint work for me, i used:
Code: Select all
local ScenarioUtils = import('/lua/sim/ScenarioUtilities.lua')
local ScenarioFramework = import('/lua/ScenarioFramework.lua')

function OnPopulate()
    ScenarioUtils.InitializeArmies()
    ScenarioFramework.SetPlayableArea('AREA_1' , false)
end
FAF Map Editor Alpha v0.605 > Get it now!
User avatar
ozonex
Priest
 
Posts: 358
Joined: 16 Feb 2012, 20:11
Location: Poland
Has liked: 197 times
Been liked: 263 times
FAF User Name: ozonex

Re: Vertical maps bug

Postby Plasma_Wolf » 29 Dec 2012, 12:47

It should I just copied the addtions for playable areas from the Dry Canyon (currently in the rankes map pool) script. That should work with the standard stuff that would already have to be in the script.

Anyway, I just looked it up in the map editor tutorial and what you have there should also work. Does it?
User avatar
Plasma_Wolf
Supreme Commander
 
Posts: 1335
Joined: 20 Oct 2011, 11:28
Has liked: 23 times
Been liked: 91 times
FAF User Name: Plasma_Wolf


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron