[LuaPlayer 0.20] - 3D issue?

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
canalaiz
Posts: 2
Joined: Mon Aug 22, 2005 5:30 pm

[LuaPlayer 0.20] - 3D issue?

Post by canalaiz »

Hi everybody,

while testing some old code with the newest version of luaplayer, something strange happens.

Actually this line:

Code: Select all

Gum.drawArray(Gu.TRIANGLES, Gu.TEXTURE_32BITF|Gu.COLOR_8888|Gu.VERTEX_32BITF|Gu.TRANSFORM_3D, plane)
returns the error ')' expected near '|'
The same error applies to the 3d cube sample application.
Any info?
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Re: [LuaPlayer 0.20] - 3D issue?

Post by Shine »

See the release note: "it's pure Lua 5.1: no binary operators". Use "+" instead of "|", like in my cube example shipped with the 0.20 release of Lua Player.
canalaiz
Posts: 2
Joined: Mon Aug 22, 2005 5:30 pm

Post by canalaiz »

Sorry Shine, i feel kinda dumb :P
Thanks again for the ready support :)
Post Reply