PDA

View Full Version : LUA on Dreamcast Tutorial



Christuserloeser
November 29th, 2007, 15:10
showka wrote a tutorial on how to use the programming language LUA on Dreamcast:

http://border-town.com/code/DcSimpleLua5.1/


- Maybe we will now see some LUA based PSP hombrew on Dreamcast ? :)


Source: DCEmulation Forums (http://dcemulation.com/phpBB/viewtopic.php?p=979886#p979886)

quzar
November 29th, 2007, 17:09
All the LUA homebrew (or like...99% of it) uses a thing called LUAplayer which adds a lot to the normal lua stuff. LUA has been on the DC for as long as I've used KOS, it's just not all that useful unless you need a good light scripting engine.

Christuserloeser
November 29th, 2007, 17:16
Would it be possible to port this LUAplayer thing to DC ?

zaero
November 29th, 2007, 21:17
Dreamshell compile lua script!
http://dc-swat.net.ru/ds/

PS sorry my english...

showka
December 11th, 2007, 06:31
Oh wow, I didn't realize anybody was viewing that thing!

In light of this discovery, I've appended it with a note on Black Aura's fix to keep incorrect Lua scripts from crashing the program. Basically, you just change the line "#if defined(__cplusplus)" found in luaconf.h to something undefined and it seems to work.

Using Lua is pretty fun once you set up your glue functions, since you can change scripts without recompiling, or screw things up royally and Lua will politely catch the error and tell you about it (usually even giving you a line number in the process).

wraggster
January 5th, 2008, 17:53
a standalone Lua Player for Dreamcast would be awesome

esp if it were easy to convert the hundreds of PSP to the Dreamcast

pity a script couldnt be written to change things if they need changing ?

Elven6
January 5th, 2008, 21:23
Wow I hope someones up for it, 2008 could be the return of Dreamcast homebrew.

_SWAT_
June 16th, 2009, 03:59
For DreamShell you can write applications using lua scripts and xml markup.

http://www.dc-swat.net.ru/news/12/

I have a forum you can find some information about creating applications.

http://www.dc-swat.net.ru/forum/index.php?showforum=33

DreamShell 4.0 - XML Doc (full)
DreamShell 4.0 - App dev (very simple)
DreamShell 4.0 - API Doc (very simple)

You can use the google translator, but sure to read the code in its original form (translator makes it an error).

Translate it (http://translate.google.com/translate?js=n&prev=_t&hl=ru&ie=UTF-8&u=http%3A%2F%2Fwww.dc-swat.net.ru%2Fforum%2Findex.php%3Fshowforum%3D33&sl=ru&tl=en&history_state0=ru|en|%25D0%25A3%2520%25D0%25BC%25D 0%25B5%25D0%25BD%25D1%258F%2520%25D0%25BD%25D0%25B 0%2520%25D1%2584%25D0%25BE%25D1%2580%25D1%2583%25D 0%25BC%25D0%25B5%2520%25D0%25BC%25D0%25BE%25D0%25B 6%25D0%25BD%25D0%25BE%2520%25D0%25BD%25D0%25B0%25D 0%25B9%25D1%2582%25D0%25B8%2520%25D0%25BD%25D0%25B 5%25D0%25BC%25D0%25BD%25D0%25BE%25D0%25B3%25D0%25B E%2520%25D0%25B8%25D0%25BD%25D1%2584%25D0%25BE%25D 1%2580%25D0%25BC%25D0%25B0%25D1%2586%25D0%25B8%25D 0%25B8%2520%25D0%25BE%2520%25D1%2581%25D0%25BE%25D 0%25B7%25D0%25B4%25D0%25B0%25D0%25BD%25D0%25B8%25D 0%25B8%2520%25D0%25BF%25D1%2580%25D0%25B8%25D0%25B B%25D0%25BE%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B 8%25D0%25B9)

_gear2
June 24th, 2009, 08:43
being a kid im still learning programming ive experimented with some minor things with lua (with lua player) on the psp (mainly following tutorials and expanding from there) nothing to serious.

swat

what would i need to do to get my.. 'programs' to run on dreamshell?

_SWAT_
June 26th, 2009, 04:20
Use tutorials and example application from DreamShell.
Write your application and put him to /cd/apps/appname
When you start DreamShell, your application will appear on your desktop

Basile
September 1st, 2011, 13:48
The link inthe first msg isnt working anymore, any chances to get it fixed ?