CameraLocate and EntityLocate in 5.10b1

Everything else that doesn't fall into one of the other PB categories.
aonyn
User
User
Posts: 43
Joined: Tue May 05, 2009 5:20 am

CameraLocate and EntityLocate in 5.10b1

Post 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
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: CameraLocate and EntityLocate in 5.10b1

Post by Fred »

They have been removed. You need to use the MoveXXX() command, with the #PB_Absolute flag.
aonyn
User
User
Posts: 43
Joined: Tue May 05, 2009 5:20 am

Re: CameraLocate and EntityLocate in 5.10b1

Post by aonyn »

Thanks Fred
User avatar
STARGÅTE
Addict
Addict
Posts: 2226
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: CameraLocate and EntityLocate in 5.10b1

Post 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!
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Post Reply