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

ArgentoVivo

Member
Newcomer
Joined
Jan 12, 2015
Messages
8
Trophies
0
Age
54
XP
127
Country
Italy
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
 

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
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).
 

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
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.
 

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
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

V3NUS_M1NER

Well-Known Member
Member
Joined
Nov 27, 2014
Messages
391
Trophies
0
Age
24
XP
373
Country
United States
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
 

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
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
 

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
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!
 

pdapanda

Well-Known Member
Member
Joined
Nov 19, 2014
Messages
730
Trophies
0
Age
32
XP
1,169
Country
Switzerland
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
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Mondooooo @ Mondooooo: sup