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

  • Thread starter Thread starter Rinnegatamante
  • Start date Start date
  • Views Views 258,314
  • Replies Replies 1,054
  • Likes Likes 77
config.sun by default report this main_dir: "/3ds/Sunshell".

This is the correct installation if you don't edit config.sun (Obviously for CIA sun_index must be in SD root):
sample.png
thanks i localized the problem curiously i dont have 3ds folder wtfk?lol
 
well...sorry for the trouble..but i can confirm you that the trouble was, apparently, on my side!:shy: ..i've changed my date and time settings and the old index works now with the calendar and time :lol:.. not sure why but my n3ds was set to 2011.. ah well atleast now we know that we ahve to set the date corectly before using it (or maybe 2011 was to low??..would be weird tho lol..) so if someone else comes and tell you ''black screen!!'' you'il know to suggest to change the time lol.. perhaps there's a limit for the dates in your index?..but i didnt see anything that would look like it..

EDIT: btw, does the icons (well not the icons but the sunshell..) support transparency?
i love your Sunshell! you'Ve done great work! :yay:
Sunshell_Green_Wood.jpg
 
How to i open .3dsx homebrew when i installed the .cia? It doesn't show up in the Applications like it did in Screenshots
 
Yes, it support trasparency but not for JPG files. Only png/bmp files can contain alpha channel.

For Calendar not working, date must set before 1st January 2015 cause i use this date as startup to calculate current day:

Yes, it support trasparency but not for JPG files. Only png/bmp files can contain alpha channel.

For Calendar not working, date must set before 1st January 2015 cause i use this date as startup to calculate current day:
Code:
static int lua_getdate(lua_State *L){
int argc = lua_gettop(L);
if (argc != 0) return luaL_error(L, "wrong number of arguments");
u64 time = (osGetTime() / 1000) - 3629059200; // Time from 1st January 2015
u32 day_value = ((time / 86400) % 7);
u32 year = 2015;
u8 day = 1;
u8 month = 1;
u32 control;
if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) control = 31622400;
else control = 31536000;
while (time > control){
year = year + 1;
time = time - control;
if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) control = 31622400;
else control = 31536000;
}
bool extended = false;
if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) extended = true;
control = month_seconds[2];
while (time > control){
month = month + 1;
time = time - control;
if ((month == 11) || (month == 4) || (month == 6) || (month == 9)) control = month_seconds[0];
else if (month == 2){
if (extended) control = month_seconds[3];
else control = month_seconds[1];
}else{
control = month_seconds[2];
}
}
day = day + time / 86400;
lua_pushinteger(L,day_values[day_value]);
lua_pushinteger(L,day);
lua_pushinteger(L,month);
lua_pushinteger(L,year);
return 4;
}

How to i open .3dsx homebrew when i installed the .cia? It doesn't show up in the Applications like it did in Screenshots

3DSX homebrews can be launched only if you use 3DSX build like Imported CIA/Game Cartridge launching is available only for CIA/3DS build.
CIA homebrews doesn't have access to hb:HB service used to launch 3DSX files.
 
3DSX homebrews can be launched only if you use 3DSX build like Imported CIA/Game Cartridge launching is available only for CIA/3DS build.
CIA homebrews doesn't have access to hb:HB service used to launch 3DSX files.

So you say that i can't launch .3dsx homebrew? :(
 
So you say that i can't launch .3dsx homebrew? :(

If you use CIA build, yes, you cannot start them

well...sorry for the trouble..but i can confirm you that the trouble was, apparently, on my side!:shy: ..i've changed my date and time settings and the old index works now with the calendar and time :lol:.. not sure why but my n3ds was set to 2011.. ah well atleast now we know that we ahve to set the date corectly before using it (or maybe 2011 was to low??..would be weird tho lol..) so if someone else comes and tell you ''black screen!!'' you'il know to suggest to change the time lol.. perhaps there's a limit for the dates in your index?..but i didnt see anything that would look like it..

EDIT: btw, does the icons (well not the icons but the sunshell..) support transparency?
i love your Sunshell! you'Ve done great work! :yay:
Sunshell_Green_Wood.jpg

Sunshell provides a screenshot feature with L button.
Better to use it to show something inside the shell :P
 
  • Like
Reactions: puss2puss
Sunshell provides a screenshot feature with L button.
Better to use it to show something inside the shell :P

ohhh nice!..i hate taking picts of a screen with another cam..feels kinda weird :P i love that you've put a screenshot feature!..i'il use it for sure! question: does it take both screen or just top one?
 
ohhh nice!..i hate taking picts of a screen with another cam..feels kinda weird :P i love that you've put a screenshot feature!..i'il use it for sure! question: does it take both screen or just top one?

Both screen, all screenshot i posted were taken with this feature.
 
  • Like
Reactions: puss2puss
Both screen, all screenshot i posted were taken with this feature.
amazing!:lol:

oh by the way, maybe you already know about this small bug..but when i go to check some pictures, i see the list and i can see the first one, but once i go down to the other photo it gives an error..BUT when i open photos with the FileBrowser everything is perfect and i can open all the photos i want.
:bow:

EDIT: is it possible that its related with the cache? like, it tries to open another picture but is unable to make it diplay on top screen so it gives an error?..
 
amazing!:lol:

oh by the way, maybe you already know about this small bug..but when i go to check some pictures, i see the list and i can see the first one, but once i go down to the other photo it gives an error..BUT when i open photos with the FileBrowser everything is perfect and i can open all the photos i want.
:bow:

EDIT: is it possible that its related with the cache? like, it tries to open another picture but is unable to make it diplay on top screen so it gives an error?..

Probably i missed something in Photos src, i'll check it.

EDIT: No, src seems fine and it works correctly to me.
What error you get and where you putted photos?

I get error cannot open file when i use the screenshot feature.

If you don't have, create 101NIN03 dir in DCIM folder.
 
Probably i missed something in Photos src, i'll check it.

EDIT: No, src seems fine and it works correctly to me.
What error you get and where you putted photos?
If you don't have, create 101NIN03 dir in DCIM folder.

the error was something about draw image or something..i dont have my n3ds right now so i cant check exactly.. but the error isnt with added photos..its with photos taken with the 3DS..not sure if it would do the same with photos i would add..for the moment the only pictures i have in it are the ones taken directly with the 3DS..i've tried 10 times and i always have the same error when changing picture. ..and liek i said, it works fine when browsing pictures thru FileBrowser..
 
Black Screen with CIA build

?

well...sorry for the trouble..but i can confirm you that the trouble was, apparently, on my side!:shy: ..i've changed my date and time settings and the old index works now with the calendar and time :lol:.. not sure why but my n3ds was set to 2011.. ah well atleast now we know that we ahve to set the date corectly before using it (or maybe 2011 was to low??..would be weird tho lol..) so if someone else comes and tell you ''black screen!!'' you'il know to suggest to change the time lol.. perhaps there's a limit for the dates in your index?..but i didnt see anything that would look like it..

EDIT: btw, does the icons (well not the icons but the sunshell..) support transparency?
i love your Sunshell! you'Ve done great work! :yay:
Sunshell_Green_Wood.jpg

Yes, it support trasparency but not for JPG files. Only png/bmp files can contain alpha channel.

For Calendar not working, date must set before 1st January 2015 cause i use this date as startup to calculate current day:

Yes, it support trasparency but not for JPG files. Only png/bmp files can contain alpha channel.

For Calendar not working, date must set before 1st January 2015 cause i use this date as startup to calculate current day:
Code:
static int lua_getdate(lua_State *L){
int argc = lua_gettop(L);
if (argc != 0) return luaL_error(L, "wrong number of arguments");
u64 time = (osGetTime() / 1000) - 3629059200; // Time from 1st January 2015
u32 day_value = ((time / 86400) % 7);
u32 year = 2015;
u8 day = 1;
u8 month = 1;
u32 control;
if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) control = 31622400;
else control = 31536000;
while (time > control){
year = year + 1;
time = time - control;
if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) control = 31622400;
else control = 31536000;
}
bool extended = false;
if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) extended = true;
control = month_seconds[2];
while (time > control){
month = month + 1;
time = time - control;
if ((month == 11) || (month == 4) || (month == 6) || (month == 9)) control = month_seconds[0];
else if (month == 2){
if (extended) control = month_seconds[3];
else control = month_seconds[1];
}else{
control = month_seconds[2];
}
}
day = day + time / 86400;
lua_pushinteger(L,day_values[day_value]);
lua_pushinteger(L,day);
lua_pushinteger(L,month);
lua_pushinteger(L,year);
return 4;
}



3DSX homebrews can be launched only if you use 3DSX build like Imported CIA/Game Cartridge launching is available only for CIA/3DS build.
CIA homebrews doesn't have access to hb:HB service used to launch 3DSX files.
 
It's not an emuNand 9.5.0.23 issue, it runs on my console (although the screen flickers..)

Yes, we found problem is Date set in Console.

Screen flickering is a really strange issue cause it happens only with 3DS/CIA. With 3DSX build there is no flickering :/
 
  • Like
Reactions: AquaX101
It's a calendar issue more than a clock issue. If your restart SunShell, bug is still here or it disappear? (Maybe could be cause by day switching).

Still there and yeah it is a calendar issue lol. It's 00:38 here, so the 1 (one) is definetely coming from somewhere else :P
 

Site & Scene News

Popular threads in this forum