gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Announcements And Comments > DSLua - a Lua runtime for Nintendo DS

#73351 - waruwaru - Sat Feb 25, 2006 12:28 am

You don't know C/C++, but you want to write some programs for your DS? Well, learn Lua and write scripts to run using DSLua! Here is version 0.1 (preview build) for you to play with. Version 0.1 supports some basic text functions, and functions to read dpads/stylus input. Currently it will only work with devices support by Chishm's FAT driver (devices like GBA Movie Player and M3 CF) though. Enjoy!

Download version 0.1 preview here.

[Images not permitted - Click here to view it]

Edit: Got it working in the DesMuMe. ;)


Last edited by waruwaru on Mon Feb 27, 2006 8:45 am; edited 1 time in total

#73363 - sajiimori - Sat Feb 25, 2006 2:11 am

Neat. I like this idea better than making another BASIC variant. Lua is arguably just as easy, it's portable, it's standardized by virtue of the fact that there's a reference implementation, and it has very modern features (like closures and coroutines) so advanced programmers won't feel limited.

#73389 - waruwaru - Sat Feb 25, 2006 6:22 am

sajiimori wrote:
Neat. I like this idea better than making another BASIC variant. Lua is arguably just as easy, it's portable, it's standardized by virtue of the fact that there's a reference implementation, and it has very modern features (like closures and coroutines) so advanced programmers won't feel limited.


Thanks! I am a Lua novice, but from what I have seen, it sure is very easy and very powerful. :) What people are doing on PSP's Lua Player sure look like fun.

#73507 - Wraggster - Sun Feb 26, 2006 3:57 am

awesome news, lets hope the DS can have releases like the masses of Lua Releases for the PSP,

good luck with the player :)
_________________
Webmaster of Nintendo DS Emulation News

http://nintendo-ds.dcemu.co.uk

#73516 - waruwaru - Sun Feb 26, 2006 5:58 am

Wraggster wrote:
awesome news, lets hope the DS can have releases like the masses of Lua Releases for the PSP,

good luck with the player :)


Thanks! I hope people will find it fun and useful too. :)
_________________
DSLua - a scripting language for your DS!

#73541 - tepples - Sun Feb 26, 2006 2:36 pm

Will there be a version supporting program entry through an on-screen keyboard? That's one way TI graphing calculators became popular: kids could program games on them during downtime in class.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#73564 - modrobert - Sun Feb 26, 2006 6:19 pm

Wraggster wrote:
awesome news, lets hope the DS can have releases like the masses of Lua Releases for the PSP,

good luck with the player :)


I hope that was ironic.

#73605 - sajiimori - Sun Feb 26, 2006 9:45 pm

Why should it be ironic? Removing the technical restrictions to making games is a good thing.

The on-screen keyboard idea sounds fun. You'd probably want to make a crash-proof version of the DS IO library so it could stop and print an error message instead of locking up. Wouldn't want to lose all your code every time you make a mistake. :)

#73613 - keldon - Sun Feb 26, 2006 10:59 pm

sajiimori wrote:
Why should it be ironic? Removing the technical restrictions to making games is a good thing.

The on-screen keyboard idea sounds fun. You'd probably want to make a crash-proof version of the DS IO library so it could stop and print an error message instead of locking up. Wouldn't want to lose all your code every time you make a mistake. :)


Sounds to me like he was mocking those PSP demos.

#73614 - waruwaru - Sun Feb 26, 2006 11:08 pm

tepples wrote:
Will there be a version supporting program entry through an on-screen keyboard? That's one way TI graphing calculators became popular: kids could program games on them during downtime in class.


Hmmm, that sounds like a great idea! I will put that on my to do list. I was thinking once I implement the file read/write functionality, a simple editor written in Lua would be a quick solution. :)

sajiimori wrote:
You'd probably want to make a crash-proof version of the DS IO library so it could stop and print an error message instead of locking up. Wouldn't want to lose all your code every time you make a mistake. :)


Good point. :)
_________________
DSLua - a scripting language for your DS!

#73647 - modrobert - Mon Feb 27, 2006 5:14 am

sajiimori wrote:
Why should it be ironic? Removing the technical restrictions to making games is a good thing.


I agree about removing technical restrictions, and the problem is not LUA or the homebrew created, but rather the sites making it big head lines, eg."Screen Test v0.1" etc. Besides, LUA reminds me of Visual Basic for the windows platform. If that is a good thing, I rest my case.

#73650 - sajiimori - Mon Feb 27, 2006 5:43 am

If Lua reminds you of VB, that shows how little you understand Lua. It's more closely related to the likes of Lisp or Smalltalk.

#73653 - modrobert - Mon Feb 27, 2006 5:55 am

Was thinking about the results now, not programming logic.

#73666 - sajiimori - Mon Feb 27, 2006 7:56 am

The results being what?

#73674 - keldon - Mon Feb 27, 2006 10:20 am

sajiimori wrote:
The results being what?


I'm guessing "Screen Test v0.1"

#73713 - sajiimori - Mon Feb 27, 2006 7:40 pm

Nah, it couldn't be that because it has nothing to do with the language and everything to do with what you choose to pay attention to...

#74187 - HtheB - Fri Mar 03, 2006 8:53 am

when is the 0.2 availeble for download? :)

#74223 - waruwaru - Fri Mar 03, 2006 5:07 pm

HtheB wrote:
when is the 0.2 availeble for download? :)


Sorry to keep you all waiting, work is kickin my behind at the momment... :( I planned to release 0.2 after I get more functionalities in, so hopefully something t this weekend.

Small update of what's coming in 0.2:
- implemented the GBFS file handles, so SD folks can use that for now
- with GBFS working, you can run DSLua on DeSmuME :)
- better error reporting for some crashes
- remove the START key wait after script is executed
- misc other small fixes

Chishm's has released a new FAT driver, so I might integrate that in as well.

By the way, DSLua.com had a face lift, hope you guys like it. ;)
_________________
DSLua - a scripting language for your DS!

#74673 - waruwaru - Mon Mar 06, 2006 11:04 pm

Version 0.2 is now available. Added support to run from emulator/not-yet-supported-hardware (using GBFS), and some basic graphics functions. Enjoy!

[Images not permitted - Click here to view it]
_________________
DSLua - a scripting language for your DS!

#76388 - waruwaru - Tue Mar 21, 2006 7:34 am

Version 0.3 adds functions to create and manipulate spites. :) Same as the previous version, this version comes in GBFS and CF flavors. The GBFS version runs well on DeSmuME emulator. :) Download it directly from DSLua.com

[Images not permitted - Click here to view it]
_________________
DSLua - a scripting language for your DS!

#79921 - waruwaru - Mon Apr 17, 2006 3:40 am

DSLua 0.4 adds sounds and tile-map functionalities. :)

[Images not permitted - Click here to view it]
A scrollable map in 66 lines of codes (including comments)! ;)
_________________
DSLua - a scripting language for your DS!