PS Suite Support

Post and discuss features you'd like to see in the BEPUphysics library.
Post Reply
Spykam22
Posts: 13
Joined: Fri Dec 09, 2011 9:48 pm

PS Suite Support

Post by Spykam22 » Thu May 17, 2012 2:00 am

Hello! Will you guys port BEPU over to the PS Suite?

Norbo
Site Admin
Posts: 4558
Joined: Tue Jul 04, 2006 4:45 am

Re: PS Suite Support

Post by Norbo » Thu May 17, 2012 2:54 pm

The dependency free version would be the best option right now. It should work with few modifications.

I don't plan on personally maintaining a PS Suite-specific fork for now, but if someone wanted to create and maintain a fork I would certainly appreciate it :)

Spykam22
Posts: 13
Joined: Fri Dec 09, 2011 9:48 pm

Re: PS Suite Support

Post by Spykam22 » Fri May 18, 2012 1:46 am

I turned the dependency free BEPU Physics into a PlayStation Suite Library (.dll) and when try to run my game, I get this exceptions:
_______________________

Exception 1 in TriangleMeshConvexContactManifold.cs :

System.MethodAccessException: Transparent method System.Collections.Generic.EqualityComparer`1<BEPUphysics.CollisionTests.Manifolds.TriangleMeshConvexContactManifold/Edge>:.cctor () cannot invoke private/internal method System.Collections.Generic.GenericEqualityComparer`1<BEPUphysics.CollisionTests.Manifolds.TriangleMeshConvexContactManifold/Edge>:.ctor ().
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0


on this line:

HashSet<Edge> blockedEdgeRegions = new HashSet<Edge>();

__________________________

Exception 2 in ResourcePool.cs

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: An exception was thrown by the type initializer for System.Collections.Generic.EqualityComparer`1 ---> System.Exception: Transparent method System.Collections.Generic.EqualityComparer`1<BEPUphysics.CollisionTests.Manifolds.TriangleMeshConvexContactManifold/Edge>:.cctor () cannot invoke private/internal method System.Collections.Generic.GenericEqualityComparer`1<BEPUphysics.CollisionTests.Manifolds.TriangleMeshConvexContactManifold/Edge>:.ctor ().
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)

at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

--- End of inner exception stack trace ---

at System.Collections.Generic.HashSet`1[BEPUphysics.CollisionTests.Manifolds.TriangleMeshConvexContactManifold+Edge].Init (Int32 capacity, IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0

at System.Collections.Generic.HashSet`1[BEPUphysics.CollisionTests.Manifolds.TriangleMeshConvexContactManifold+Edge]..ctor () [0x00000] in <filename unknown>:0

at BEPUphysics.CollisionTests.Manifolds.TriangleMeshConvexContactManifold..ctor () [0x00039] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\CollisionTests\Manifolds\TriangleMeshConvexContactManifold.cs:31

at BEPUphysics.CollisionTests.Manifolds.StaticMeshContactManifold..ctor () [0x0000c] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\CollisionTests\Manifolds\StaticMeshContactManifold.cs:19

at BEPUphysics.CollisionTests.Manifolds.StaticMeshConvexContactManifold..ctor () [0x0000b] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\CollisionTests\Manifolds\StaticMeshConvexContactManifold.cs:17

at BEPUphysics.NarrowPhaseSystems.Pairs.StaticMeshConvexPairHandler..ctor () [0x00000] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\NarrowPhaseSystems\Pairs\StaticMeshConvexPairHandler.cs:23

at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)

at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

--- End of inner exception stack trace ---

at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0

at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0

at System.Activator.CreateInstance (System.Type type) [0x00000] in <filename unknown>:0

at System.Activator.CreateInstance[StaticMeshConvexPairHandler] () [0x00000] in <filename unknown>:0

at BEPUphysics.ResourceManagement.ResourcePool`1[BEPUphysics.NarrowPhaseSystems.Pairs.StaticMeshConvexPairHandler].CreateNewResource () [0x00001] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\ResourceManagement\ResourcePool.cs:50

at BEPUphysics.ResourceManagement.LockingResourcePool`1[BEPUphysics.NarrowPhaseSystems.Pairs.StaticMeshConvexPairHandler].Initialize (Int32 initialResourceCount) [0x00098] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\ResourceManagement\LockingResourcePool.cs:84

at BEPUphysics.ResourceManagement.LockingResourcePool`1[BEPUphysics.NarrowPhaseSystems.Pairs.StaticMeshConvexPairHandler]..ctor (Int32 initialResourceCount, System.Action`1 initializer) [0x0001c] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\ResourceManagement\LockingResourcePool.cs:23

at BEPUphysics.ResourceManagement.LockingResourcePool`1[BEPUphysics.NarrowPhaseSystems.Pairs.StaticMeshConvexPairHandler]..ctor (Int32 initialResourceCount) [0x00000] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\ResourceManagement\LockingResourcePool.cs:30

at BEPUphysics.ResourceManagement.LockingResourcePool`1[BEPUphysics.NarrowPhaseSystems.Pairs.StaticMeshConvexPairHandler]..ctor () [0x00000] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\ResourceManagement\LockingResourcePool.cs:38

at BEPUphysics.NarrowPhaseSystems.NarrowPhasePairFactory`1[BEPUphysics.NarrowPhaseSystems.Pairs.StaticMeshConvexPairHandler]..ctor () [0x00000] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\NarrowPhaseSystems\NarrowPhasePairFactory.cs:78

at BEPUphysics.NarrowPhaseSystems.Factories..ctor () [0x0014a] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\NarrowPhaseSystems\NarrowPhaseHelper.cs:142

at BEPUphysics.NarrowPhaseSystems.NarrowPhaseHelper..cctor () [0x00001] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\NarrowPhaseSystems\NarrowPhaseHelper.cs:178


on this line:

var toReturn = new T();

___________________________

Exception 3 in Space.cs:

System.TypeInitializationException: An exception was thrown by the type initializer for BEPUphysics.NarrowPhaseSystems.NarrowPhaseHelper ---> System.Exception: Exception has been thrown by the target of an invocation. ---> System.Exception: An exception was thrown by the type initializer for System.Collections.Generic.EqualityComparer`1 ---> System.Exception: Transparent method System.Collections.Generic.EqualityComparer`1<BEPUphysics.CollisionTests.Manifolds.TriangleMeshConvexContactManifold/Edge>:.cctor () cannot invoke private/internal method System.Collections.Generic.GenericEqualityComparer`1<BEPUphysics.CollisionTests.Manifolds.TriangleMeshConvexContactManifold/Edge>:.ctor ().
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)

at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

--- End of inner exception stack trace ---

at System.Collections.Generic.HashSet`1[BEPUphysics.CollisionTests.Manifolds.TriangleMeshConvexContactManifold+Edge].Init (Int32 capacity, IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0

at System.Collections.Generic.HashSet`1[BEPUphysics.CollisionTests.Manifolds.TriangleMeshConvexContactManifold+Edge]..ctor () [0x00000] in <filename unknown>:0

at BEPUphysics.CollisionTests.Manifolds.TriangleMeshConvexContactManifold..ctor () [0x00039] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\CollisionTests\Manifolds\TriangleMeshConvexContactManifold.cs:31

at BEPUphysics.CollisionTests.Manifolds.StaticMeshContactManifold..ctor () [0x0000c] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\CollisionTests\Manifolds\StaticMeshContactManifold.cs:19

at BEPUphysics.CollisionTests.Manifolds.StaticMeshConvexContactManifold..ctor () [0x0000b] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\CollisionTests\Manifolds\StaticMeshConvexContactManifold.cs:17

at BEPUphysics.NarrowPhaseSystems.Pairs.StaticMeshConvexPairHandler..ctor () [0x00000] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\NarrowPhaseSystems\Pairs\StaticMeshConvexPairHandler.cs:23

at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)

at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

--- End of inner exception stack trace ---

at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0

at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0

at System.Activator.CreateInstance (System.Type type) [0x00000] in <filename unknown>:0

at System.Activator.CreateInstance[StaticMeshConvexPairHandler] () [0x00000] in <filename unknown>:0

at BEPUphysics.ResourceManagement.ResourcePool`1[BEPUphysics.NarrowPhaseSystems.Pairs.StaticMeshConvexPairHandler].CreateNewResource () [0x00001] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\ResourceManagement\ResourcePool.cs:50

at BEPUphysics.ResourceManagement.LockingResourcePool`1[BEPUphysics.NarrowPhaseSystems.Pairs.StaticMeshConvexPairHandler].Initialize (Int32 initialResourceCount) [0x00098] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\ResourceManagement\LockingResourcePool.cs:84

at BEPUphysics.ResourceManagement.LockingResourcePool`1[BEPUphysics.NarrowPhaseSystems.Pairs.StaticMeshConvexPairHandler]..ctor (Int32 initialResourceCount, System.Action`1 initializer) [0x0001c] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\ResourceManagement\LockingResourcePool.cs:23

at BEPUphysics.ResourceManagement.LockingResourcePool`1[BEPUphysics.NarrowPhaseSystems.Pairs.StaticMeshConvexPairHandler]..ctor (Int32 initialResourceCount) [0x00000] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\ResourceManagement\LockingResourcePool.cs:30

at BEPUphysics.ResourceManagement.LockingResourcePool`1[BEPUphysics.NarrowPhaseSystems.Pairs.StaticMeshConvexPairHandler]..ctor () [0x00000] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\ResourceManagement\LockingResourcePool.cs:38

at BEPUphysics.NarrowPhaseSystems.NarrowPhasePairFactory`1[BEPUphysics.NarrowPhaseSystems.Pairs.StaticMeshConvexPairHandler]..ctor () [0x00000] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\NarrowPhaseSystems\NarrowPhasePairFactory.cs:78

at BEPUphysics.NarrowPhaseSystems.Factories..ctor () [0x0014a] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\NarrowPhaseSystems\NarrowPhaseHelper.cs:142

at BEPUphysics.NarrowPhaseSystems.NarrowPhaseHelper..cctor () [0x00001] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\NarrowPhaseSystems\NarrowPhaseHelper.cs:178

--- End of inner exception stack trace ---

at BEPUphysics.Space..ctor () [0x00008] in c:\Users\Kammeron\Documents\Projects\BEPUPhysicsVita\BEPUPhysicsVita\Space.cs:203

at Shadows.GameLayer..ctor (Shadows.Level level) [0x00008] in c:\Users\Kammeron\Documents\Games\Files\Dropbox\Shadows\Shadows\game\main\GameLayer.cs:21

at Shadows.LoadingScreen.OnUpdate (Single elapsedTime) [0x0006e] in c:\Users\Kammeron\Documents\Games\Files\Dropbox\Shadows\Shadows\scenes\LoadingScreen.cs:64

at Sce.Pss.HighLevel.UI.Scene.Update (Single elapsedTime) [0x00000] in <filename unknown>:0

at Sce.Pss.HighLevel.UI.UISystem.UpdateFrame () [0x00000] in <filename unknown>:0

at Sce.Pss.HighLevel.UI.UISystem.UpdateSystem () [0x00000] in <filename unknown>:0

at Sce.Pss.HighLevel.UI.UISystem.Update (System.Collections.Generic.List`1 touchDataList) [0x00000] in <filename unknown>:0

at Shadows.MainGame.Update () [0x00019] in c:\Users\Kammeron\Documents\Games\Files\Dropbox\Shadows\Shadows\Main.cs:73

at Shadows.MainGame.Main (System.String[] args) [0x00010] in c:\Users\Kammeron\Documents\Games\Files\Dropbox\Shadows\Shadows\Main.cs:29


on this line:

NarrowPhaseHelper.CollisionManagers = NarrowPhaseHelper.CollisionManagers; //Forces the NarrowPhaseHelper to run the static constructor. Better to do it now instead of mid-simulation.


_______________________


ANY HELP????? :!: :!: :!: :!: :!:

Norbo
Site Admin
Posts: 4558
Joined: Tue Jul 04, 2006 4:45 am

Re: PS Suite Support

Post by Norbo » Fri May 18, 2012 1:53 am

That can be fixed by the modification alluded to in the earlier post: make that edge struct public, and those errors should go away.

When 1.2 finally gets released, the development version will be updated with this change already baked in. Let me know if you find any other PS suite specific oddities like that (or any oddities in general :)).

Spykam22
Posts: 13
Joined: Fri Dec 09, 2011 9:48 pm

Re: PS Suite Support

Post by Spykam22 » Fri May 18, 2012 2:02 am

LOL! I did that right before you made your post and it worked!!! THANKS to BEPU, MY GAME WILL HAVE AWESOME PHYSICS!!!@@!?!?!?#?!@?!?!?!?!?!?!?!??!?!? BTW, you replied super fast! THANKS!!!!!!!!!!!!!!

Spykam22
Posts: 13
Joined: Fri Dec 09, 2011 9:48 pm

Re: PS Suite Support

Post by Spykam22 » Fri May 18, 2012 2:05 am

Also, may I put this on the playstation forums for others trying to use bepu?

Norbo
Site Admin
Posts: 4558
Joined: Tue Jul 04, 2006 4:45 am

Re: PS Suite Support

Post by Norbo » Fri May 18, 2012 2:07 am

Sure :)

Post Reply

Who is online

Users browsing this forum: Baidu [Bot] and 1 guest