Discuss using and improving Lua and the Lua Player specific to the PSP.
	Moderators:  Shine , Insert_witty_name 
			
		
		
			
				
																			
								canalaiz 							 
									
		Posts:  2  		Joined:  Mon Aug 22, 2005 5:30 pm 		
		
						
						
		 
		
						
					
													
							
						
									
						Post 
					 
								by canalaiz   »  Mon Jun 05, 2006 5:31 pm 
			
			
			
			
			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 
							
						
		 
		
						
					
													
							
						
									
						Post 
					 
								by Shine   »  Mon Jun 05, 2006 5:39 pm 
			
			
			
			
			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   »  Mon Jun 05, 2006 5:46 pm 
			
			
			
			
			Sorry Shine, i feel kinda dumb :P 
Thanks again for the ready support :)