LuaGL binary for PS2

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
rinco
Posts: 255
Joined: Fri Jan 21, 2005 2:12 pm
Location: Canberra, Australia

LuaGL binary for PS2

Post 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
MrHTFord
Posts: 35
Joined: Tue Feb 10, 2004 2:04 am
Location: England

Post by MrHTFord »

Hey, that's really very cool indeed!
NeoCloud
Posts: 6
Joined: Sat May 22, 2004 4:21 pm

Post 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.
rinco
Posts: 255
Joined: Fri Jan 21, 2005 2:12 pm
Location: Canberra, Australia

Post 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.
LionX
Posts: 61
Joined: Mon Dec 27, 2004 11:40 am

ps2exec

Post by LionX »

sorry ps2exec does not accept arguments.
rinco
Posts: 255
Joined: Fri Jan 21, 2005 2:12 pm
Location: Canberra, Australia

Post 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
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Want a client that does arguments?

( http://www.oopo.net/consoledev/files/ps2client.exe )
User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

Post 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
- TiTAN Art Division -
http://www.titandemo.org
Post Reply