Page 1 of 1

CameraLocate and EntityLocate in 5.10b1

Posted: Sat Dec 22, 2012 11:05 pm
by aonyn
Hi All,

This may be for the bug forum, but I am thinking perhaps I am missing something that was already explained since it affects at least two similar commands.

CameraLocate and EntityLocate both fail to compile, as the compiler complains they are not declared.
I tried the same code back in 5.00, and it worked fine there.
If I use CameraMove instead of Locate, it works fine in the beta, but of course that is relative, and I am looking for global placement.
I did check that I was using the new dll with the beta, and the old dll with 5.00.

Is there a new way to do this, or is this indeed a bug in the new beta that these commands are unknown to the compiler?

BTW, I did not check for other XXXXXLocate commands, so this may affect others as well.

Thanks,
Dave

Re: CameraLocate and EntityLocate in 5.10b1

Posted: Sat Dec 22, 2012 11:09 pm
by Fred
They have been removed. You need to use the MoveXXX() command, with the #PB_Absolute flag.

Re: CameraLocate and EntityLocate in 5.10b1

Posted: Sat Dec 22, 2012 11:39 pm
by aonyn
Thanks Fred

Re: CameraLocate and EntityLocate in 5.10b1

Posted: Sun Dec 23, 2012 1:04 pm
by STARGĂ…TE
i have a problem, if i replace all my ObjectLocate() to MoveObject(, #PB_Absolute) my Game don't work.
Both commands are really identical?
Some Entitys stays on 0,0,0 and other objects move relative and fly away.

I can not reproduce the problem in a small code, but i think it is a problem with Bones, if the object is attach on a bone.
ObjectLocate() worked relative to the Bone coordinates, MoveObject(, #PB_Absolute) worked in world coordinates?


Edit: Sry, I still had the Engine3D.dll of version PB5.0 in my game folder.
With the right DLL of PB 5.10 it works!