Homebrew [W.i.P] Lua Player Plus - First Lua Interpreter for 3DS

  • Thread starter Thread starter Rinnegatamante
  • Start date Start date
  • Views Views 29,738
  • Replies Replies 90
  • Likes Likes 33
No problem, you're doing an excellent work with the wiki ;) . It's very helpfull.

Smart update: Big speedup for drawing functions (Screen and Video modules).

Coming soon:
- PNG, JPG and TGA support.
- TTF fonts support.

are you porting freeType for the TTF support or did the psp version of lpp have it's own ttf loading code?
 
We fully implemented TTF support but we're fixing some issues related to PNG loading (It seems checking PNG magic from header let library who we used (lodepng) to produce a buggy buffer).
We used stb_truetype library by Sean Barrett.
 
Finally solved my issues with mic!

- Added microphone support (Sound.register(int seconds) can be used to register sounds playable after with Sound.play)
- Added possibility to save sounds in mono format with Sound.saveWav (Can be used to save registered sounds)

I added also a sample for microphone ( https://github.com/Rinnegatamante/lpp-3ds/blob/master/source/samples/mic.lua ).
 
To develop for lpp you just need a text editor (personally, i use Notepad++ to develop with C/C++/LUA).
I don't know if current 3DS emulator can emulate lpp (when i was writing first Hello World with lpp, i tried Citra3DS and it doesn't work with but maybe, with next revision now it works or probably works with other emulators (TronDS, 3dmoo).
 
I could probably write a basic compatibility layer in Lua on top of LÖVE that would help with development, at least for the graphics stuff.
 
Sounds good, i was waiting for SDL2 porting (http://gbatemp.net/threads/sdl-for-3ds.374519/) by Rikku2000 to add new 2D graphics functions but i'm not sure if it will never be released.
For 3D graphics, i'm planning to use ctrGL by minexew (cause lpp-c++ for PSP/PSVITA uses instead openGL for 3D graphics).
 
That sounds way better. The thing I'm working on will probably only be useful for prototyping a game on the desktop. :unsure:
 
Does anyone have the latest version compiled???? I'd do it myself, but I don't know how to compile anything from Github :P
 
Please pardon my gcc noobness, but when I try to compile lpp-3ds I get an error (while executing the makefile):
/root/lpp-3ds-master/source/luaAudio.cpp: In function 'void My_CSND_playsound(u32, u32, u32, u32, u32*, u32*, u32, u32, u32'):
/root/lpp-3ds-master/source/luaAudio.cpp:14:107: error: 'CSND_sharedmemtype0_cmde' was not declared in this scope
CSND_sharedmemtype0_cmde(channel, looping, encoding, samplerate, 2, 0, physaddr0, physaddr1, totalbytesize);
I've downloaded and compiled devkitARM, and libctru (and exported both paths)
INCLUDE = -I/root/lpp-3ds-master/include -I/opt/devkitpro/libctru/include -I/root/lpp-3ds-master/build
I'm trying to compile on Debian 8 i686 with gcc 4.9.1

Any ideas of what's wrong? It looks like it cannot find the declaration of CSND_sharedmemtype0_cmde, but I have no idea why. The path of libctru is correct.
 
I noticed some huge fps drops while trying to use drawImage.
10 images: 60 fps
20 images: 30 fps
40 images: 20 fps
etc.

I guess that's because it's drawing each pixel for each image.
 
A lot of news for lpp-3ds.

Improved Graphics Module, Video Module.
Fixxed a lot of bugs in System, Graphics and Video Module.
Added Console Module.
Added a built-in keyboard usable with System.startKeyboard (I know is crappy but i don't want to spend more time in a keyboard when we could have access to Nintendo keyboard in future).
 
  • Like
Reactions: asdfx
Good, i'm waiting for LUA devs on 3DS :)

Added three new graphics function:
Screen.getImageWidth
Screen.getImageHeight
Screen.drawPartialImage

So now it's possible to draw on Screens/Other images also only part of images.

Also added a check on width/height when devs attempt to draw images on screens. Now if you try to draw too large image for screen, it will be automatically crop-printed by drawImage.
 
is there any special reason for these errors I get on luaAudio.cpp whenever I try to compile it?

luaAudio.cpp:15:45: error: 'CSND_sharedmemtype0_cmd8' was not declared in this scope
CSND_sharedmemtype0_cmd8(channel, samplerate);

luaAudio.cpp:19:59: error: 'CSND_sharedmemtype0_cmd3' was not declared in this scope
CSND_sharedmemtype0_cmd3(channel, physaddr1, totalbytesize);
 

Site & Scene News

Popular threads in this forum