Object Limit [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
Oceans14
Command Sergeant Major
Command Sergeant Major
Posts: 296
Joined: Mon Apr 27, 2015 7:09 pm
Projects :: Athenova Campaign
Games I'm Playing :: SWBF2
Location: Planet 4546b

Object Limit [Solved]

Post by Oceans14 »

I'm curious what the maximum number of objects in a map is. After searching the site I found lots of references to the object limit but no mention of what that limit actually is. I mainly ask because I need to use a pretty decent amount of yav trees in a map, which also happens to be 256x256... so it's a lot of trees plus the addon leaves. Having placed about a third of what I need, the map is crashing either on spawn or seconds later with no severity 3 errors.

Additionally, does foliage count towards the object limit? I assume not, since that would drastically decrease the possible number of other props and such, but on the other hand foliage is a mesh too.

As far as the crashing is concerned, I'm using the stock sides. Only changes thus far are to the map, so my best guess is I've maxed out the objects.

Thanks for any help GT
Last edited by Oceans14 on Sat Mar 19, 2016 9:15 pm, edited 1 time in total.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Object Limit

Post by thelegend »

I think there is no real Object limit like the limit of avaiable CP's. Maybe it all matters how much needs to be rendered. I am not sure about that. You can fill your entire terrain with foliage, but the visibility range of each foliage group must be minimized down. Same for Objects. I often hit a limit of possible maximum objects, but on some maps I reached this limit earlier. Then sometimes I never hit a limit. I think adjusting the Far and Near Scene Range and other LOD settings and you should be able to have as many objects as possible. Or not. I never tried it.
I know trees are similair to foliages due to their 2D textures. Lowering the visibily range should fix the problem.
User avatar
Oceans14
Command Sergeant Major
Command Sergeant Major
Posts: 296
Joined: Mon Apr 27, 2015 7:09 pm
Projects :: Athenova Campaign
Games I'm Playing :: SWBF2
Location: Planet 4546b

Re: Object Limit

Post by Oceans14 »

thelegend wrote:I think adjusting the Far and Near Scene Range and other LOD settings and you should be able to have as many objects as possible... Lowering the visibily range should fix the problem.
Ah okay. So to be clear, I would open the sky file and change the far scene range here from 5000 to, say, 2500 and then continue decreasing as needed?

Code: Select all

NearSceneRange(30.0, 160.0, 40.0, 200.0);
		FarSceneRange(5000.0, 5000.0);

		FarSceneRange(5000.0);
		FogRange(-100.0, 600.0);
I'll fool around with it and report my results in a few.

Edit:

Yeah, it's definitely the trees. I really don't have that many though:
Hidden/Spoiler:
Image
The problem is when you're in sight of one, you're in sight of too many.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Object Limit

Post by thelegend »

Also the nearscenerange is very important. I remember there are still some myths about the first numbers. I played around with it and came up with the following: The second and fourth = minimum and maximum Terrain View. Example: There is a transition if you have a discance of 100 at least between both (200-300).
The First one probably defines the Soldier Visibility Level. If you have high poly characters only then lowering this number should be helpful. Object distance is probably the third one. But I am not sure.
User avatar
Oceans14
Command Sergeant Major
Command Sergeant Major
Posts: 296
Joined: Mon Apr 27, 2015 7:09 pm
Projects :: Athenova Campaign
Games I'm Playing :: SWBF2
Location: Planet 4546b

Re: Object Limit

Post by Oceans14 »

I stand corrected. After removing all the trees, the game still crashed, so I cleared the map of foliage and then added the trees back. Game runs fine now. I guess I'll just have to drop the foliage render distance wayyyy down (it was already at 35).
Also the nearscenerange is very important. I remember there are still some myths about the first numbers. I played around with it and came up with the following: The second and fourth = minimum and maximum Terrain View. Example: There is a transition if you have a discance of 100 at least between both (200-300).
The First one probably defines the Soldier Visibility Level. If you have high poly characters only then lowering this number should be helpful. Object distance is probably the third one. But I am not sure.
Interesting. I'm definitely going to tweak these, as well as continue to adjust the near/far range in the sky file.

Edit: I've found that adding any foliage crashes the map, so I'm just abstaining for now. I need to inspect the prp file more carefully at some point. As for the object limit, that has been answered. Thanks thelegend!
Post Reply