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
LuaGL binary for PS2
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.
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.
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.
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.
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:
Oh and the new URL is http://ps2dev.org/kb.x?T=1138
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: Select all
dofile("host:asteroids/main.lua")
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
Raizor, Rai3or, Ra|30r... :D
- TiTAN Art Division -
http://www.titandemo.org
http://www.titandemo.org