LuaPlayer for Dreamcast

This is a forum for discussing the feasibility of getting emulators, games, or other applications that have had their source released ported to the Dreamcast. Please read the Porting FAQ before starting a topic in this forum!
Post Reply
User avatar
BB Hood
DC Developer
DC Developer
Posts: 189
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Fri Mar 30, 2007 12:09 am
Has thanked: 41 times
Been thanked: 10 times

LuaPlayer for Dreamcast

Post by BB Hood »

Would anybody be interested in a port of LuaPlayer to Dreamcast?

I could try and port it. Is there anything I should be aware off that would make it unportable to the Dreamcast so I don't waste my time in trying?
Stryfe
Psychotic DCEmu
Psychotic DCEmu
Posts: 577
Joined: Mon Aug 11, 2008 9:34 am
Location: Nowhere U.S.A.
Has thanked: 0
Been thanked: 0

Re: LuaPlayer for Dreamcast

Post by Stryfe »

What exactly is LuaPlayer? Any relation to the LUA based Dcplaya?
ImageImageImageImage
BlackAura
DC Developer
DC Developer
Posts: 9951
Joined: Sun Dec 30, 2001 9:02 am
Has thanked: 0
Been thanked: 1 time

Re: LuaPlayer for Dreamcast

Post by BlackAura »

Stryfe wrote:What exactly is LuaPlayer? Any relation to the LUA based Dcplaya?
Aside from using the same scripting language (Lua), no. No relation.

http://www.luaplayer.org/
http://en.wikipedia.org/wiki/Lua_Player

Basically, it's a Lua interpreter for the PSP, with built-in wrappers around some of the PSP's hardware functionality.
BB Hood wrote:Is there anything I should be aware off that would make it unportable to the Dreamcast so I don't waste my time in trying?
Nothing inherently non-portable, as far as I know. However, some of the functionality LuaPlayer provides isn't likely to work on a Dreamcast. The wireless networking functionality obviously won't work. The VMU doesn't work anything at all like the PSP's memory stick, so saving won't work. LuaPlayer's 3D API is just a thin wrapper around the native 3D API, so that obviously won't work either.

Your best bet it to just disable or remove all that stuff, or replace it with a stub that does nothing.

However... 2D video ought to work, along with sound, and controller input. That should be enough to get many LuaPlayer games working at least.
User avatar
SWAT
Insane DCEmu
Insane DCEmu
Posts: 191
Joined: Sat Jan 31, 2004 2:34 pm
Location: Russia/Novosibirsk
Has thanked: 1 time
Been thanked: 0
Contact:

Re: LuaPlayer for Dreamcast

Post by SWAT »

If you want to write programs in Lua for DC, you should look in the direction DreamShell 4.0. All applications for it are written in lua, and the GUI is constructed from the layout XML.
DreamShell 4.0 supports many functions in lua (DS, SDL, GUI, STD, KOS), a full list of which can be viewed here: http://www.dc-swat.net.ru/ds/doc/
Functional DreamShell and lua can expand and improve with the help of the modules (SDK included).
Image
Stryfe
Psychotic DCEmu
Psychotic DCEmu
Posts: 577
Joined: Mon Aug 11, 2008 9:34 am
Location: Nowhere U.S.A.
Has thanked: 0
Been thanked: 0

Re: LuaPlayer for Dreamcast

Post by Stryfe »

Doesn't DreamShell take up a considerable amount of the DC's RAM?

Not to mention that if it'd require the SD loader, it wouldn't be practical for your average Dreamcast homebrew user.
ImageImageImageImage
User avatar
SWAT
Insane DCEmu
Insane DCEmu
Posts: 191
Joined: Sat Jan 31, 2004 2:34 pm
Location: Russia/Novosibirsk
Has thanked: 1 time
Been thanked: 0
Contact:

Re: LuaPlayer for Dreamcast

Post by SWAT »

Memory can be freed without having to load modules and do not use GUI desktop.
1ST_READ.BIN takes only ~1.4 Mb.
Module luaDS (it includes API DS, SDL, GUI and Console binded to lua) takes about ~400 kb.
Other modules with lua binding takes only about ~50-70 kb.
You do not have to use the file system support SD cards, as well the module sdiso.
Image
Stryfe
Psychotic DCEmu
Psychotic DCEmu
Posts: 577
Joined: Mon Aug 11, 2008 9:34 am
Location: Nowhere U.S.A.
Has thanked: 0
Been thanked: 0

Re: LuaPlayer for Dreamcast

Post by Stryfe »

BB Hood wrote:I could try and port it. Is there anything I should be aware off that would make it unportable to the Dreamcast so I don't waste my time in trying?
Did you ever consider anything more on this?

:?:
ImageImageImageImage
User avatar
BB Hood
DC Developer
DC Developer
Posts: 189
Joined: Fri Mar 30, 2007 12:09 am
Has thanked: 41 times
Been thanked: 10 times

Re: LuaPlayer for Dreamcast

Post by BB Hood »

Sorry, I haven't gotten to it. I will try and port it this summer if I have nothing else to do.
Post Reply