Laggy PRBF2 Object Editor - loading Huey's

If you find a bug within PR:BF2 (including PRSP), please report it here.
Post Reply
Jabil_One
Posts: 135
Joined: 2017-03-11 18:01

Laggy PRBF2 Object Editor - loading Huey's

Post by Jabil_One »

Hi folks,

lasttime i spent many time to get more familiar with the BF2 Editor.
I played around with new weaponmounts like adding the MK19 to the Abrams tank.
Works like a charm and looks good :-D Editor works smooth, no lags

I tried the same with a M240D_huey - adding a MK19 as doorgunner.
I cloned the M240D_huey and created a new weaponmount for the MK19 and added it also.
No problem only animations and/or ITKopplung (<right spelled???) looks totally shitty.
The Editor always laggged like hell (like 0000.1frames).

In the Output window i noticed an error, who repeatedly loads, that the cf_the_uhn_sp missing the collision meshes for the main/ and tail rotor.

Tweakfiles from the cf_the_uh1n_sp mainrotor & tailrotor

Code: Select all

rem *** Generated with Bf2Editor.exe [created: 2005/2/2 9:17]
GeometryTemplate.setSubGeometryLodDistance 0 0 25
GeometryTemplate.setSubGeometryLodDistance 1 0 15
GeometryTemplate.compressVertexData 1
GeometryTemplate.maxTextureRepeat 16
ObjectTemplate.activeSafe Rotor cf_the_uh1n_sp_mainrotor
ObjectTemplate.creator MHE-1:mhe
ObjectTemplate.modifiedByUser K4on
ObjectTemplate.setNetworkableInfo BasicInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.cullRadiusScale 999999999999999999999999999999999999999
ObjectTemplate.geometry cf_the_uh1n_mainrotor
ObjectTemplate.setCollisionMesh us_the_uh1n_mainrotor
ObjectTemplate.mapMaterial 0 rotor 31
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate ade_heliDraft
rem -------------------------------------
ObjectTemplate.changeLodAt 0.15
ObjectTemplate.tolerance 1.49011e-009
ObjectTemplate.rotationSpeedMod -0.3
ObjectTemplate.rotationSpeedModBlur -5.05
ObjectTemplate.rotationAxle 0
ObjectTemplate.engineName cf_the_uh1n_sp_Rotor

Code: Select all

rem *** Generated with Bf2Editor.exe [created: 2005/2/2 9:17]
GeometryTemplate.compressVertexData 1
GeometryTemplate.maxTextureRepeat 16
ObjectTemplate.activeSafe Rotor cf_the_uh1n_sp_tailrotor
ObjectTemplate.creator MHE-1:mhe
ObjectTemplate.modifiedByUser K4on
ObjectTemplate.setNetworkableInfo BasicInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.cullRadiusScale 999999999999999999999999999999999999999
ObjectTemplate.geometry cf_the_uh1n_tailrotor
ObjectTemplate.setCollisionMesh us_the_uh1n_tailrotor
ObjectTemplate.mapMaterial 0 rotor 31
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
ObjectTemplate.changeLodAt 0.2
ObjectTemplate.tolerance 0.000390625
ObjectTemplate.rotationSpeedMod 3.5
ObjectTemplate.rotationSpeedModBlur 0.1
ObjectTemplate.rotationAxle 1
ObjectTemplate.engineName cf_the_uh1n_sp_TailEngine
Both tweaks the cf_the_uh1n_mainrotor and tailrotor.

Code: Select all

ObjectTemplate.setCollisionMesh us_the_uh1n_mainrotor

Code: Select all

ObjectTemplate.setCollisionMesh us_the_uh1n_tailrotor
This lines causing the massive lags.

I fixed this by changing the codelines of the collisionMesh :

Code: Select all

ObjectTemplate.setCollisionMesh cf_the_uh1n_mainrotor

Code: Select all

ObjectTemplate.setCollisionMesh cf_the_uh1n_tailrotor
I also copied the collisionmeshes from the cf_the_uh1n main & tailrotor (edit: forgot to mention the collsionmeshes must be renamed to cf_the_uh1n_sp_tailrotor and cf_the_uh1n_sp_mainrotor) to the cf_the_uh1n_sp_tailrotor & cf_the_uh1n_sp_mainrotor and now the ObjectEditor runs smooth when i load my huey_mk19.
Last edited by Jabil_One on 2017-09-29 21:09, edited 1 time in total.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: Laggy PRBF2 Object Editor - loading Huey's

Post by Rhino »

only causes lag in the editor which ye, you can work around, but its most optimized ingame in its current state.
Image
Jabil_One
Posts: 135
Joined: 2017-03-11 18:01

Re: Laggy PRBF2 Object Editor - loading Huey's

Post by Jabil_One »

I wasn't sure :? :

Never played on a coop map where the cf_the_huey_sp spawns (i believe there exist no maplayer with it) so i choosed my thread name wisely. I thought first it's caused by my huey experiment but it doesn't. Maybe it help others.
Arab
PR:BF2 Developer
Posts: 2898
Joined: 2012-05-18 03:37

Re: Laggy PRBF2 Object Editor - loading Huey's

Post by Arab »

Whoops, that issue is fixed for next patch :)
Image
Post Reply

Return to “PR:BF2 Bugs”