Increasing Terrain size up to 2048x2048 [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
edge123455
Private Second Class
Posts: 73
Joined: Wed May 18, 2011 7:07 pm
Projects :: Hoth Battlefield
xbox live or psn: No gamertag set

Increasing Terrain size up to 2048x2048 [Solved]

Post by edge123455 »

So I want to start a new map that will include flyers. The image backgrounds in the sky dome, like mountains, start to move in very unrealistic ways when flying with a star fighter. So the only solution is to extend the the terrian and add mountains to give it a more realistic perspective when moving through the map.

So my question is, adding this much terrian, will my map be more likely to crash because of the resources being used? is there any memorypools that I should use in the LUA to provide stability?

*Note: I will also increase the 'farscenerage' in the sky file to very large values in order to render the visibility of the full terrian.
Last edited by edge123455 on Fri May 11, 2012 12:23 am, edited 1 time in total.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Increasing Terrain size up to 2048x2048

Post by AceMastermind »

Size perspective:
  • 2048 represents the number of grid squares on your terrain in one direction
    Each grid square is 8x8 meters
    2048 x 8 = 16384 meters (53753.280839895015 feet) or 16.384 kilometers (10.1805 miles)
Your map will be huge. :)
I've never created a map with terrain that large so I can't provide input on stability, i'd say go for it and report back to us the problems you encounter along the way. When you choose to do extreme things with this game you can always expect to hit limits of some kind.
User avatar
edge123455
Private Second Class
Posts: 73
Joined: Wed May 18, 2011 7:07 pm
Projects :: Hoth Battlefield
xbox live or psn: No gamertag set

Re: Increasing Terrian size up to 2048x2048

Post by edge123455 »

Well, sadly it did not work. First of all, in ZE, when I started changing the height of the map, beyond the 1024x1024 limit, the change in height would clone on the opposite side. So when I raised the height on the right side of the map, it would automatically raise on the left side also.

Another thing is after the 1024x1024 limit, there would be a pattern patches of textureless terrian. When I tried to munge my map it said that there was a missing bracket in the TER file. And when I ran the map in game, I was not able to spawn. So I adjusted back to 1024x1024 and it worked back to normal. So Another BF2 limit is that maps cannot be bigger than 1024x1024.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Increasing Terrian size up to 2048x2048

Post by kinetosimpetus »

1024 should be plenty. I started a map with about the same idea, and 1024 seems to be enough space for a fighter to fly around without constantly turning.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Increasing Terrian size up to 2048x2048

Post by Teancum »

For comparison stock SWBF1/2 maps are on a 256x256 "plate" of terrain, but typically only take up about 1/3, directly in the center.
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: Increasing Terrian size up to 2048x2048

Post by Eggman »

DomeModel()
{
Geometry("kas2_mountains");
Offset(80.0);
MovementScale(1.0);
Reflect();
}
If the root of your problem is the movement of the sky dome, try adjusting the highlighted line above. I think the original value in my example was 0.95 - I had the same problem as you, so I changed the value to 1.0 and the sky dome no longer moves around.
User avatar
edge123455
Private Second Class
Posts: 73
Joined: Wed May 18, 2011 7:07 pm
Projects :: Hoth Battlefield
xbox live or psn: No gamertag set

Re: Increasing Terrian size up to 2048x2048

Post by edge123455 »

Eggman wrote:
DomeModel()
{
Geometry("kas2_mountains");
Offset(80.0);
MovementScale(1.0);
Reflect();
}
If the root of your problem is the movement of the sky dome, try adjusting the highlighted line above. I think the original value in my example was 0.95 - I had the same problem as you, so I changed the value to 1.0 and the sky dome no longer moves around.
Yeah that seemed to work thanks eggman and the other guys who responded, much appreciated. :D
Post Reply