Page 1 of 1

PB 5.10 Final - Text3D issue since last beta

Posted: Thu Feb 14, 2013 8:15 pm
by gavindi
I've upgraded from beta 8 to final and my code (which hasn't changed overnight) will not work. I've double-checked my include file to ensure that my constants are correct.

Upon running my code, I recieve the following error:

Code: Select all

[05:08:28] Waiting for executable to start...
[05:08:28] Executable type: Linux - x64  (64bit, Thread)
[05:08:28] Executable started.
[05:08:29] [ERROR] Main.pb (Line: 96)
[05:08:29] [ERROR] The specified #Text3D is not initialised.
[05:09:04] The Program was killed.
The line in question is:

Code: Select all

96  AttachEntityObject(#E_TextCube1,"",Text3DID(#E_TextLine1))
I've double-checked by compiling in Beta 8 and my code runs fine. Ouchies!

BTW, thanks to the whole team for getting 5.10 out. Awesome stuff guys!

Re: [PB 5.10 Final] - Text3D issue since last beta

Posted: Thu Feb 14, 2013 9:06 pm
by Comtois
can you show how you write CreateText3D() ?

now there are no more concatenation between 'font' and 'height' (which is a scale).
If you dont use font by default syntax should be :

Code: Select all

CreateText3D(0, "Hello world", "BlueHighway-16", 1.0, RGBA(255, 255, 255,127))

Re: [PB 5.10 Final] - Text3D issue since last beta

Posted: Thu Feb 14, 2013 9:22 pm
by gavindi
Hi Comtois,

You are bang on with your answer. Ive changed my code as per your comments and it's working great.
Thanks for you help, much appreciated.

Cheers,
G.

Re: [Invalid] [PB 5.10 Final] - Text3D issue since last beta

Posted: Thu Feb 14, 2013 9:23 pm
by gavindi
Fred may have a different approach here but I've changed the title to include [Invalid] since it's not a bug.