forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

LuaGL binary for PS2

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Wed Jan 26, 2005 2:09 pm    Post subject: LuaGL binary for PS2 Reply with quote

download from http://ps2dev.org/kb.x?T=1135
contact me for source
this is the readme from the zip...

What is it
~~~~
A port of the LuaGL module (version v1.01) to Playstation 2.

What does it do
~~~~
See it in action by trying the asteroids example:
cd asteroids
./asteroids.sh

What else can it do
~~~~
LuaGL.elf can execute byte compiled scripts or compile them at
runtime. I have provided a non-compiled example that may run on
other platforms.

I also patched in another module I've written, LuaPad. This allows you
to use the game pad.


Any of the basic OpenGL routines may work. Be cautious of anything not
used by the asteroids example.

Requirements
~~~~
Composite video output, gamepad and the scripts to be loaded from host:

It doesn't work!
~~~~
I use a PAL PS2 running ps2link, and I upload via ps2client from a
unix environment. Let me know if it works in a different environment.

If you suspect these conditions are not at fault, I'd suggest trying
these things:

- check the gamepad
- use ps2link with ps2client
- private message me with all of the details.
- remember, all of the details

Limitations
~~~~
Lua scripts compiled on platforms other than PS2 are unlikely to
execute on PS2.

Doing all the OpenGL calls and collision detection in Lua is slow.

Future
~~~~
Open Dynamics Engine for complicated shapes and faster collision detection.

Who am I
~~~
rinco

When did this happen
~~~~
Started project on 14th of Dec 2004.
Completed milestone "Asteroids" on 13th of Jan 2005.
Packaged binary and published on 26th of Jan 2005.

Apologies
~~~~
Sorry about the printf()s.

Thanks
~~~~
The Lua team - Lua and LuaGL
Pixel - for porting Lua
Dreamtime - DreamGL
#ps2dev - Help
Yindo.com - Asteroids example
Back to top
View user's profile Send private message
MrHTFord



Joined: 10 Feb 2004
Posts: 35
Location: England

PostPosted: Fri Jan 28, 2005 1:03 am    Post subject: Reply with quote

Hey, that's really very cool indeed!
Back to top
View user's profile Send private message Send e-mail
NeoCloud



Joined: 22 May 2004
Posts: 6

PostPosted: Mon Jan 31, 2005 8:35 am    Post subject: Reply with quote

I am trying to run the asteroids example.
I have tried to upload using ps2exec on a windows environment to an NTSC PS2 running ps2link. I tried....

ps2exec -p2 luagl.elf main.lua

and it seems to run luagl.elf on the ps2 but nothing happens on the ps2 until I reset from ps2exec. The asteroids example doesn't run. On the pc side, I get a message...
"usage: luagl.exe luafile.lua" (well, it doesn't say luafile.lua but something.lua).

I haven't tried using ps2client yet, but I will try to use it through cygwin asap.
I am mainly curious about "luagl.exe", I have not found it in the downloads. I assume its just something overlooked from when LuaGL was ported to ps2. But I'm not sure thats why I'm posting. I am really interested in using LuaGL for PS2.
Back to top
View user's profile Send private message
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Mon Jan 31, 2005 11:10 pm    Post subject: Reply with quote

LuaGL does not automatically prefix the argument filename.
For now you can just prepend the necessary filesystem driver
name, eg:

ps2exec -p2 luagl.elf host:main.lua

This also applies to the dofile() function of Lua.
I hope to remove this shortcoming in the future.

And sorry about the misleading error message...
It should read luagl.elf not luagl.exe.
Back to top
View user's profile Send private message
LionX



Joined: 27 Dec 2004
Posts: 61

PostPosted: Sun Feb 06, 2005 8:38 am    Post subject: ps2exec Reply with quote

sorry ps2exec does not accept arguments.
Back to top
View user's profile Send private message
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Thu Feb 10, 2005 12:58 pm    Post subject: Reply with quote

I've updated the binary to load host:default.lua if no arguments
are provided.

If that's not enough... I also included a simple CLI. You must copy
usbd.irx and ps2kbd.irx into the irx/ directory for this to be useful.

Using ps2exec and you want to play asteroids? Just type this into the CLI:

Code:
dofile("host:asteroids/main.lua")


Oh and the new URL is http://ps2dev.org/kb.x?T=1138
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Feb 10, 2005 4:16 pm    Post subject: Reply with quote

Want a client that does arguments?

( http://www.oopo.net/consoledev/files/ps2client.exe )
Back to top
View user's profile Send private message Visit poster's website
Shazz



Joined: 31 Aug 2004
Posts: 244
Location: Somewhere over the rainbow

PostPosted: Thu Feb 10, 2005 6:05 pm    Post subject: Reply with quote

While speaking of a nice client that accepts args... what about the next version of my fav' Xlink ??? Raizor !!!!! :D

Raizor, Rai3or, Ra|30r... :D
_________________
- TiTAN Art Division -
http://www.titandemo.org
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group