Page 1 of 1

LuaGL binary for PS2

Posted: Wed Jan 26, 2005 2:09 pm
by rinco
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

Posted: Fri Jan 28, 2005 1:03 am
by MrHTFord
Hey, that's really very cool indeed!

Posted: Mon Jan 31, 2005 8:35 am
by NeoCloud
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.

Posted: Mon Jan 31, 2005 11:10 pm
by rinco
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.

ps2exec

Posted: Sun Feb 06, 2005 8:38 am
by LionX
sorry ps2exec does not accept arguments.

Posted: Thu Feb 10, 2005 12:58 pm
by rinco
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: Select all

dofile("host:asteroids/main.lua")
Oh and the new URL is http://ps2dev.org/kb.x?T=1138

Posted: Thu Feb 10, 2005 4:16 pm
by ooPo
Want a client that does arguments?

( http://www.oopo.net/consoledev/files/ps2client.exe )

Posted: Thu Feb 10, 2005 6:05 pm
by Shazz
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