Destructible Buildings

Making or wanting help making your own asset? Check in here
Post Reply
User avatar
Catmouse
Posts: 94
Joined: 2023-05-10 13:39
Location: H8kp1

Destructible Buildings

Post by Catmouse »

Hi,

I remember that there were multiple maps with destructible builds e.g. Kashan, but also others. There are also forum threads on that topic [1].

What is the status on that kind of game asset? Is there some empirical data how much a 100 player server can take before crashing?



[1] PR Forum URI
Last edited by Catmouse on 2023-05-30 13:27, edited 1 time in total.
User avatar
ALADE3N
PR:BF2 Developer
Posts: 577
Joined: 2016-02-13 17:34
Location: Philippines

Re: Destructible Buildings

Post by ALADE3N »

iirc a map only has definite number of destructible networkable info and a mapper who puts more than that limit might crash the map. So maybe some of the then destructible buildings and other objects in pr are now set to not get destroyed to save the servers the trouble of lagging and crashing. Maybe it is a preventive measure to evade that problem
Image
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7643
Joined: 2010-08-06 18:06

Re: Destructible Buildings

Post by Mats391 »

The destroyable buildings got mainly removed due to performance issues. We found out that every destroyable building gets checked every frame on the server. Even if no players are close to it. This puts a big constant stress on the server that we decided is not worth it.
As Alade3n said there is also a maximum limit before things start crashing. Overall you should not plan anything around destroyable buildings and look more into using it in special places. For example Shahadah uses destructible objects to block windows that can be opened by player and this way transform the battlefield.
Image

Mineral: TIL that Wire-guided missiles actually use wire
Rabbit
Posts: 7818
Joined: 2006-12-17 15:14

Re: Destructible Buildings

Post by Rabbit »

Mats391 wrote: For example Shahadah uses destructible objects to block windows that can be opened by player and this way transform the battlefield.
Perfect example how that mapper was a fucking piece of shit.
Image

AfSoccer "I just don't see the natural talent."
Image
User avatar
Catmouse
Posts: 94
Joined: 2023-05-10 13:39
Location: H8kp1

Re: Destructible Buildings

Post by Catmouse »

Mats391 wrote:The destroyable buildings got mainly removed due to performance issues. We found out that every destroyable building gets checked every frame on the server. Even if no players are close to it. This puts a big constant stress on the server that we decided is not worth it.
Hello Mats391,

thank you for the answer and explanation. That makes total sense to me.

Out of curiosity: How close are we operating to the server limit on the more sophisticated PR maps?

Quite sad that there is no source code for BF2 availible. This is probably be a big spot for optimization.
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7643
Joined: 2010-08-06 18:06

Re: Destructible Buildings

Post by Mats391 »

Catmouse wrote:Hello Mats391,

thank you for the answer and explanation. That makes total sense to me.

Out of curiosity: How close are we operating to the server limit on the more sophisticated PR maps?

Quite sad that there is no source code for BF2 availible. This is probably be a big spot for optimization.
Server limit is fine for most maps. From our experience some older maps are actually worse than new ones. For client we are pretty close to limit on some maps. I guess you all know the Ascheberg crashes, but things might change here soon too ;)
Image

Mineral: TIL that Wire-guided missiles actually use wire
Post Reply

Return to “PR:BF2 Community Modding”