PB 5.10 Final - Text3D issue since last beta

Just starting out? Need help? Post your questions and find answers here.
gavindi
User
User
Posts: 41
Joined: Mon Jan 21, 2013 12:57 am

PB 5.10 Final - Text3D issue since last beta

Post 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!
Last edited by gavindi on Thu Feb 14, 2013 9:22 pm, edited 1 time in total.
Using Ubuntu 14.04 x64, Intel4700HD Graphics, 16GB RAM
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

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

Post 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))
Please correct my english
http://purebasic.developpez.com/
gavindi
User
User
Posts: 41
Joined: Mon Jan 21, 2013 12:57 am

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

Post 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.
Using Ubuntu 14.04 x64, Intel4700HD Graphics, 16GB RAM
gavindi
User
User
Posts: 41
Joined: Mon Jan 21, 2013 12:57 am

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

Post by gavindi »

Fred may have a different approach here but I've changed the title to include [Invalid] since it's not a bug.
Using Ubuntu 14.04 x64, Intel4700HD Graphics, 16GB RAM
Post Reply