Homebrew [Release] Sunshell - A powerfull shell for 3DS

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 a possibilityto implement a weather app / widget with Yahoo Weather? :)

E.G.
- The evaluation is performed by a web server: Output = Contition Code
- The 3DS get the condition code via internet connection
- The recion code / ZIP Code for the country / city could set in the config file of sunshell.?
- Sunshell has a "if / case"- query to show the right img rom Sunshell dir: e.g. the 3DS gets the contitioncode 16, so Sunshell looks for picture nr. 16 and the accompanying description (in this case its "snow" to show it on the screen

Made a little test, for me it works but don't know if the API i'm using is compatible with a good amount of cities.
If someone wants to test, please replace original sun_index.lua and 3dsx file with this: http://rinnegatamante.it/sun_index.rar
Open sun_index.lua with a Text reader and search for this piece of code:

Code:
-- BETATEST: Wheater Api test
function explode(div,str)
    pos = 0
    arr = {}
    for st,sp in function() return string.find(str,div,pos,true) end do
        table.insert(arr,string.sub(str,pos,st-1))
        pos = sp + 1
    end
    table.insert(arr,string.sub(str,pos))
    return arr
end
 
Screen.refresh()
country = "it"
zipcode = "40138"
if Network.isWifiEnabled() then
    weather_info = Network.requestString("http://rinnegatamante.it/weather_api.php?z="..zipcode.."&c="..country)
    ShowWarning(weather_info)
    parser_index = 1
    info_offset = 1
    size = string.len(weather_info)
    if weather_info == "//-274" then
        ShowError("Unknown city for weather widget.")
    else
        weather_strings = explode("/",weather_info)
        ShowWarning("City: "..weather_strings[3].." - Temp: "..weather_strings[4].." - Weather: "..weather_strings[1].." ("..weather_strings[2]..")")
    end
end

Ediy country and zipcode with your info and start Sunshell with WiFi on.
During startup you must see a warning with weather info about your city.

Please report me if it works correctly.
 

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
Weather API implemented in Main menu:
Sunshell_17.jpg
 

Apache Thunder

I have cameras in your head!
Member
Joined
Oct 7, 2007
Messages
4,433
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,805
Country
United States
So...Any ETA on getting 3D videos working? I saw you posted something earlier mentioning you got this working somehow. I await to see it. Is JPGV format have comparable quality as the video format used by the 3DS Camera App? Does JPGV use the same amount of space as the other or does it take up more space at a given quality level compared to the 3DS Camera App. I won't really play around with this till it has 3D functionality. :P
 

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
So...Any ETA on getting 3D videos working? I saw you posted something earlier mentioning you got this working somehow. I await to see it. Is JPGV format have comparable quality as the video format used by the 3DS Camera App? Does JPGV use the same amount of space as the other or does it take up more space at a given quality level compared to the 3DS Camera App. I won't really play around with this till it has 3D functionality. :P

3D reproduction cause a huge frame drop, anyway, lpp-3ds is fully working with 3D videos.
When i release v.0.3.1, i release also an update for vid2jpgv for 3D support.
 

stomp_442

New Member
Member
Joined
Jul 29, 2009
Messages
1,830
Trophies
1
XP
738
Country
United States
How come I get an error when trying to launch this for the first time? I'm using v 0.3, and trying to launch it with a gateway.

Error: [string "?"]:35: attempt to index a nil value (global 'Font')


edit
I was able to load it from the homebrew menu via ninjahx, works great. But still I couldn't launch the 3DS file via gateway. Also, I hate to ask but the movie converter app is 64-bit only?
 

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
How come I get an error when trying to launch this for the first time? I'm using v 0.3, and trying to launch it with a gateway.

Error: [string "?"]:35: attempt to index a nil value (global 'Font')


edit
I was able to load it from the homebrew menu via ninjahx, works great. But still I couldn't launch the 3DS file via gateway. Also, I hate to ask but the movie converter app is 64-bit only?

Seems you imported an old version of lpp-3ds. Try to re-download v.0.3 and check if re-importing CIA could solve the problem.

For video converter, currently i have only a 64 bit OS and my VMware Workstation license expired so i cannot compile for other systems.
Anyway, you can find sources in vid2jpgv RAR archive so you can easily compile it by yourself with gcc.
 

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 read somewhere that someone makes a new graphic lib with more speed
try it

Using GPU for dynamic rendering is shitty cause you have first to decode JPEG frame with CPU, after you have to convert it to GPU texture and after you have to blend it on framebuffers. Is slower than CPU rendering.
 

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,033
Country
United States
Using GPU for dynamic rendering is shitty cause you have first to decode JPEG frame with CPU, after you have to convert it to GPU texture and after you have to blend it on framebuffers. Is slower than CPU rendering.
There is a pull request for ctrulib that adds some block encode flags to the gx buffer transfer functions. I am wondering if these can be used to transfer textures and or frame buffers. Have not tried it myself.
 

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
There is a pull request for ctrulib that adds some block encode flags to the gx buffer transfer functions. I am wondering if these can be used to transfer textures and or frame buffers. Have not tried it myself.

Probably the only way to make GPU rendering faster for these things is to decode frames directly through GPU and not through CPU but at this stage is kinda impossible.
 

kheldar

Well-Known Member
Member
Joined
Jul 4, 2014
Messages
522
Trophies
0
XP
420
Country
Hey a dumb question which is probably answered before but why I can't run this on my n3ds emunand which is on 9.5? I installed the cia file and all i get is a black screen then i have to force shut down the console.
 

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
Hey a dumb question which is probably answered before but why I can't run this on my n3ds emunand which is on 9.5? I installed the cia file and all i get is a black screen then i have to force shut down the console.

Have you read the readme for installation?
 

samux

New Member
Newbie
Joined
Jan 30, 2008
Messages
1
Trophies
1
XP
226
Country
France
I have a strange bug with the video player
if i do not play a video in vorbis stereo before any other video, sunshell freeze
Tested with an .avi and .mp4

[email protected] HQ, 2ch Vorbis 44100 = OK
[email protected] HQ, 2ch PCM 44100 = Freeze with audio looping
[email protected] HQ, 1ch Vorbis 44100 = Freeze + An error has occurred forcing the software to close. The system will now restart
[email protected] HQ, 1ch PCM 44100 = Freeze and no video
[email protected] LQ, 2ch Vorbis 44100 = OK
[email protected] LQ, 2ch PCM 44100 = Freeze with audio looping
[email protected] LQ, 1ch Vorbis 44100 = Freeze + An error has occurred forcing the software to close. The system will now restart
[email protected] LQ, 1ch PCM 44100 = Freeze and no video


System : O3DS 9.0.0-20E
Ninjhax 1.1b
Sunshell 0.3
 
  • Like
Reactions: Rinnegatamante

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 have a strange bug with the video player
if i do not play a video in vorbis stereo before any other video, sunshell freeze
Tested with an .avi and .mp4

[email protected] HQ, 2ch Vorbis 44100 = OK
[email protected] HQ, 2ch PCM 44100 = Freeze with audio looping
[email protected] HQ, 1ch Vorbis 44100 = Freeze + An error has occurred forcing the software to close. The system will now restart
[email protected] HQ, 1ch PCM 44100 = Freeze and no video
[email protected] LQ, 2ch Vorbis 44100 = OK
[email protected] LQ, 2ch PCM 44100 = Freeze with audio looping
[email protected] LQ, 1ch Vorbis 44100 = Freeze + An error has occurred forcing the software to close. The system will now restart
[email protected] LQ, 1ch PCM 44100 = Freeze and no video


System : O3DS 9.0.0-20E
Ninjhax 1.1b
Sunshell 0.3

Thanks for your report, i'll watch all luaVideo src and check where is the problem.

EDIT: Issue found and solved ;)
 

Chrisser_75

Well-Known Member
Member
Joined
Dec 12, 2014
Messages
264
Trophies
0
Location
Germany
XP
321
Country
Germany
Lollimod Theme
for Shunshell 0.3: by Chrisser(An Android 5, aka Lollipop, based theme)

Features:
- Flat Design Icons
- Transparent PNG icons
- Original Android 5.0 "alarm.ogg"
- Material Design And Colors
- Geometric Background (15% more dimmed for 2nd screen)
- Original "Roboto Condensed Regular" Font From Android 5.0
- With "HOW TO.txt"!

Screenshot:
lptnsw4Q


Download from Dropbox

(275 KB)
 

Idaho

Well-Known Member
Member
Joined
Oct 3, 2013
Messages
884
Trophies
1
Age
29
XP
1,412
Country
France
Cool looking theme

It's nice but could you release a version without the things that clearly relate to android, like the bugdroids on certain icons and the play store icon? We clearly know the 3DS can't run android, I think it's silly to make it look like it, even though I think if the android related stuffs are removed it could be a really nice theme.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BigOnYa @ BigOnYa: Yea is pretty good