Null object updateworld()?

BlitzMax Forums/MiniB3D Module/Null object updateworld()?

D4NM4N(Posted 2007) [#1]
Im getting an attemted to access null object error on updateworld. What generally could be causing this?


simonh(Posted 2007) [#2]
No idea. Code sample?


D4NM4N(Posted 2007) [#3]
Here is the exact error: Unhandled Exception:Attempt to access field or method of Null object

theres way to much code to post (im converting one of my b3d programs) unfortunately im getting the problem on updateworld. It runs fine without it (except for the collisions & anim of course).

Heres the collisions:


Main loop:


Ive no idea what could be causing it.


D4NM4N(Posted 2007) [#4]
ok i narrowed it down to the collision assignments. If i comment out all the collisions that reference non existant object types it works :/

I managed to get 2 of the collision systems working but it is very slow with more than one assignment.

-player to terrain is smooth enough
-bonus to terrain as well is really slow theres mabe 10-20 bonuses all with sphere to mesh.

Does the slowdown have something to do with the fact i am using integers as handles for everything?