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

NCDyson

Hello Boys...
Member
Joined
Nov 9, 2009
Messages
278
Trophies
1
XP
319
Country
United States
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?
 

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
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.
 

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
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 ).
 

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
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).
 

slapstick_

New Member
Newbie
Joined
Nov 26, 2014
Messages
4
Trophies
0
XP
52
Country
United States
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.
 

V3NUS_M1NER

Well-Known Member
Member
Joined
Nov 27, 2014
Messages
391
Trophies
0
Age
24
XP
373
Country
United States
Does anyone have the latest version compiled???? I'd do it myself, but I don't know how to compile anything from Github :P
 

asdfx

Member
Newcomer
Joined
Dec 27, 2014
Messages
21
Trophies
0
Age
44
XP
162
Country
France
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.
 

asdfx

Member
Newcomer
Joined
Dec 27, 2014
Messages
21
Trophies
0
Age
44
XP
162
Country
France
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.
 

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
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

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
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.
 

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,234
Country
Brazil
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

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    Pineapple is the safe word?
  • Psionic Roshambo @ Psionic Roshambo:
    But you said pine apple...
  • Psionic Roshambo @ Psionic Roshambo:
    Ughh gonna be bored today, class for new job has a lot of networking material and I'm certified in that already...
  • Veho @ Veho:
    Peen apple.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    "pine unf apple" doesn't count! Lol
  • Psionic Roshambo @ Psionic Roshambo:
    Employee code of conduct videos are awesome!!! Did you know eating the other employees is bad? I didn't know... Lol
    +1
  • AncientBoi @ AncientBoi:
    Anymore males there? :blush:
  • Psionic Roshambo @ Psionic Roshambo:
    All of us lol
  • Psionic Roshambo @ Psionic Roshambo:
    I got free every channel so that's awesome lol
    +1
  • AncientBoi @ AncientBoi:
    Give me ALL the gay pron channels, since you won't be watching them :blush::D
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Lol they exist?
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Hmmm so Mario Does Luigi's plumbing is a bad movie? Lol
  • Psionic Roshambo @ Psionic Roshambo:
    These videos are soooo dry
  • Psionic Roshambo @ Psionic Roshambo:
    Please click all suspicious links sent your email
    +1
  • BigOnYa @ BigOnYa:
    What to do today? Cut grass for 3-4 hours, or just get drunk and play video games... Hmm
  • BigOnYa @ BigOnYa:
    I need a remote controlled mower, so I can sit on the couch and do both.
  • BigOnYa @ BigOnYa:
    Sounds good to me, video games and booze it is then.
    +1
  • denpafan @ denpafan:
    Good choice
    +1
  • BigOnYa @ BigOnYa:
    Now what to play, Starfield or Fallout4. And what to drink, beer or Whiskey and Coke. Such tough decisions.
  • BigOnYa @ BigOnYa:
    Looks like its whiskey & coke, only 4 beers left. And think ill start with Falllout. :grog:
  • rqkaiju2 @ rqkaiju2:
    THIS IMAGE IS SO SCARY WTF. THAT SURE AS HELL IS NOT A CAT THATS LIKE A FUCKING DEMON

    Untitled2.png
    rqkaiju2 @ rqkaiju2: THIS IMAGE IS SO SCARY WTF. THAT SURE AS HELL IS NOT A CAT THATS LIKE A FUCKING DEMON