← Brewology.com

3DS Store › Apps

ctrµLua v1.0 by ctruLua

Released Nov 26, 2016 · Apps
1,300 downloads on GitHub · Source code

Lua interpreter for the 3DS with a script shell, a text editor and libraries for graphics, sound and networking

Install on your 3DS

QR code of the download link for ctruLua.zip

Method 1Scan the QR code
With NSA 0.9.12 or newer (Remote Install › Scan QR Code): choose Install, then Yes to extract it.
Or with 3dsDL (Scan QR Code, then Change Folder › SD card root and Download): extract the .zip in its Files and move the files to where the release notes say.

Method 2Send it to your 3DS
With NSA 0.9.12 or newer open, or 3dsDL on Receive, on the same Wi-Fi, press:
Send to your 3DS
In NSA, choose Install, then Yes to extract it. In 3dsDL, choose Download, then extract it in Files as in Method 1.

Other ways to install

Files

FileSizeSHA-256
ctruLua.zip1.2 MB ce234567…9450 Download

Downloads come from the developer's GitHub release while it's there. If GitHub stops serving a file, or the file there changes, the same link serves our copy.

Screenshots

About ctrµLua

Runs Lua scripts on the 3DS. Unzip it into /3ds/ctrulua/, put your scripts anywhere on the SD card and start them from its shell. It comes with a file picker, a text editor with Lua syntax highlighting, an on-screen keyboard library, a sprite library and code examples.

If you write your own scripts, the API covers buttons and touch, 2D graphics with stereoscopic 3D, textures (PNG, JPEG, BMP and more), TTF fonts, WAV and OGG sound, TCP and UDP sockets, HTTP, local wireless play, infrared, the camera, the microphone, threads and the file system. The authors say version 1.0 has what you need to make a 2D game or app.

Two things don't work in 1.0. TCP server sockets are broken, and exiting doesn't take you back to the Homebrew Launcher: press L+R+Down+B for that.

Release notes

v1.0 · CtrµLua v1.0 · Nov 26, 2016

Stable release.

With this release, ctrµLua supports all the most common features needed to create a 2D game or app.
See the README.md for installation and usage instructions.

Build f118baa.

Working features:

  • HID (everything)
  • 2D graphics
  • 3D support (with 2D graphics)
  • Texture loading and saving (PNG, JPEG, BMP, a lot of other formats)
  • Fonts (TTF, a lot of other formats)
  • Maps (.csv)
  • Sound (WAV and OGG with/without streaming)
  • Sockets (TCP and UDP)
  • HTTP contexts (with/without SSL)
  • Infrared communication (untested on hardware)
  • UDS services (local wireless communication)
  • Filesystem
  • LZLib (zlib compression)
  • ROMFS
  • Camera
  • Microphone
  • Threads
  • PTM services
  • Head tracking
  • APT services
  • User and system informations
  • News

Lua scripts included with the release:

  • Sprite library
  • Configurable filepicker
  • Shell to select and launch scripts
  • Configurable keyboard library
  • Text editor with Lua syntax highlighting
  • Code examples

Not working at the moment:

  • TCP server socket (#10)
  • Returning to the HB menu when exiting ctrµLua (#5). Use L+R+Down+B to return to the HB launcher instead.

Todo:

  • Maybe h.264 decoding. Maybe.
  • 3D drawing / migrating to citro3D

Something wrong with this listing? Report a problem · Are you the developer? Claim this listing