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

  • Thread starter Thread starter Rinnegatamante
  • Start date Start date
  • Views Views 29,748
  • Replies Replies 90
  • Likes Likes 33
Rinnegatamante

ita
Forse dovresti creare una versione già compilata, almeno questo faciliterebbe il test a più persone
eng
maybe it's better if You can provide the compiled versione. it will be easier for people
 
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);

Yes, i used private libctru functions. You need to add their prototype in CSND header in libctru.

For compiled version, some compiled version of lpp-3ds can be found with my homebrews. The latest "public" release can be taken by ORGANIZ3D v.0.4 release (both 3DSX and 3DS version).
 
What do you mean?
Final goal of LPP is to provide an environment to create every kind of homebrew (games, apps etc,,,) directly in LUA.

Okay, that's the kind of answer I was looking for. I was unsure if you were just programming without meaning.
 
Added extdata support to I/O functions and also other 2 functions to move between extdata archives (System.scanExtdata and System.listExtdataDir).
Added audio streaming to Video module: Now BMPV reproduction is not a RAM killer (before this, for a 1:30 min video 400x240 you allocate 64/65 MB, now for the same video you allocate 2,5 MB). Maybe a fix for very short videos (0:05-0:10) must be done, today i'll work on it.
Also speedup BMPV loading.

Best of this without possibility to make secondary thread i think is impossible for video reproduction.
 
Some news in LPP.

A lot of different functions are now available (like CIA managing functions, ZIP extraction etc...)
I also started to work to Online and Adhoc features (Network module).

To finish, i updated the samples in GitHub repository with the newest LPP syntax.
 
  • Like
Reactions: ArgentoVivo
I'm getting errors writing code for this -_-

My code:

function Boot(boot)
Screen.debugPrint(0,0,"TestBrew!",white,TOP_SCREEN)
end
elseif (Controls.check(pad,KEY_START)) then
GarbageCollection()
Screen.freeImage(bg)
Sound.term()
System.exit()
end
end
 
I'm getting errors writing code for this -_-

My code:

function Boot(boot)
Screen.debugPrint(0,0,"TestBrew!",white,TOP_SCREEN)
end
elseif (Controls.check(pad,KEY_START)) then
GarbageCollection()
Screen.freeImage(bg)
Sound.term()
System.exit()
end
end

If this is your code, there are several errors.

Line 1: You call a function Boot which have one argument (boot) and you not use this argument (In C compilation this is called a Warning)
Line 2: white variable is not declared
Line 4: You have not a if statement begin. You cannot init an if statement with an "elseif".
Line 4: pad variable is not declared
Line 5: GarbageCollection function is not declared
Line 6: bg variable is not declared
Line 7: You try to end Sound service but you never initialized it

Code Errors:
You have not a main cycle so this code will be executed only one time and, after this, lpp will be closed and you'll return to HB Menu
 
Great news on the road!

I need few hours and LPP will be updated to LUA 5.3.0 which provides some cool news like LUA_INTEGER type implementation (this means a HUGE speedup for interpreter cause we used always double values which are slower to read if compared to u32 integers), Bitwise operators (which means simpler methods to manage some circumstances like Controls checking) and UTF-8 support (for this, i have to investigate which functions are affected from this).

http://www.lua.org/manual/5.3/readme.html#changes

EDIT: Now lpp-3ds runs under LUA 5.3.0!
 
Hey.Is it possible to port a PSP homebrew using lua script into 3DS?
Something like this?And How?

20110307101527722.jpg


http://pan.baidu.com/share/link?shareid=149788&uk=1177533072

Structure like this

EZT4InB.png
 
It depends on what interpreter it uses. ONElua, luaDEV, PGE use a different syntax if compared to lpp.
LPHM, LP Euphoria, lpp use a similar syntax so you can adapt LUA scripts with lpp syntax ( http://rinnegatamante.netsons.org/lpp-3ds_doc.html ) and adapt screen sizes from PSP to 3DS ones.
 

Site & Scene News

Popular threads in this forum