DCEmulation

dreamcast development • homebrew software • hardware hacking • indie games • emulators • and more!
Back to main site
It is currently Thu Oct 02, 2014 1:25 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: LuaPlayer for Dreamcast
PostPosted: Sun Jan 03, 2010 3:15 pm 
Offline
Insane DCEmu
Insane DCEmu

Joined: Thu Mar 29, 2007 10:09 pm
Posts: 152
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?


Top
 Profile  
 
PostPosted: Sat Jan 09, 2010 11:01 am 
Offline
Psychotic DCEmu
Psychotic DCEmu

Joined: Mon Aug 11, 2008 7:34 am
Posts: 577
Location: Nowhere U.S.A.
What exactly is LuaPlayer? Any relation to the LUA based Dcplaya?

_________________
ImageImageImageImage


Top
 Profile  
 
PostPosted: Sun Jan 10, 2010 8:09 am 
Offline
DC Developer
DC Developer

Joined: Sun Dec 30, 2001 8:02 am
Posts: 9951
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.


Top
 Profile  
 
PostPosted: Sun Jan 10, 2010 9:48 pm 
Offline
Insane DCEmu
Insane DCEmu
User avatar

Joined: Sat Jan 31, 2004 1:34 pm
Posts: 172
Location: Russia/Novosibirsk
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


Top
 Profile  
 
PostPosted: Mon Jan 11, 2010 5:33 pm 
Offline
Psychotic DCEmu
Psychotic DCEmu

Joined: Mon Aug 11, 2008 7:34 am
Posts: 577
Location: Nowhere U.S.A.
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


Top
 Profile  
 
PostPosted: Mon Jan 11, 2010 10:22 pm 
Offline
Insane DCEmu
Insane DCEmu
User avatar

Joined: Sat Jan 31, 2004 1:34 pm
Posts: 172
Location: Russia/Novosibirsk
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


Top
 Profile  
 
PostPosted: Sat Mar 20, 2010 12:18 pm 
Offline
Psychotic DCEmu
Psychotic DCEmu

Joined: Mon Aug 11, 2008 7:34 am
Posts: 577
Location: Nowhere U.S.A.
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


Top
 Profile  
 
PostPosted: Sun Mar 21, 2010 9:53 am 
Offline
Insane DCEmu
Insane DCEmu

Joined: Thu Mar 29, 2007 10:09 pm
Posts: 152
Sorry, I haven't gotten to it. I will try and port it this summer if I have nothing else to do.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group