Homebrew Homebrew Development

AlbertoSONIC

Pasta Team Member
Member
Joined
Jun 27, 2014
Messages
927
Trophies
0
Age
52
Website
www.albertosonic.com
XP
1,396
Country
Italy
Really very weird, gamesquest1 did you have this problem ?
Here's what happends when i load it:
3d6533cfe812981796911bbadd7e6cb1.jpg


cf089ff463d3b865be246f60da7bfbea.jpg

gamesquest1 and Snailface helped me a lot to boot roms even with SPI Failure... But i don't think it's related to that. Do homebrews use SPI to store something?

P.S. A little OT: Do i need to reinstall Gateway Exploit (via Gateway Blue) if i change system language?
 

Relys

^(Software | Hardware) Exploit? Development.$
Member
Joined
Jan 5, 2007
Messages
878
Trophies
1
XP
1,239
Country
United States
In other news I decided to checkout the latest version of Citra. They now support QT5 by default and have a really nice cmake process thanks to yuriks. Neobrain and yuriks were both really helpful with a few issues I ran into during setup. :)

I also followed st4rks instructions to get the re-factored build of ctrulib working with devkitPro. Here's the 3DSTemplate running on Citra:

3915D9W.png


Does anyone know the makerom flags for building elf to CIA?
 

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
Here's what happends when i load it:

gamesquest1 and Snailface helped me a lot to boot roms even with SPI Failure... But i don't think it's related to that. Do homebrews use SPI to store something?

P.S. A little OT: Do i need to reinstall Gateway Exploit (via Gateway Blue) if i change system language?
i think changing the system language does need you to reinstall the exploit....in regards to running the sample HB....use this RSF file (it goes in "3DSTemplate\resources") better than using the card1-card2 tools....and it works i just tested it)

oh and st4rk for whatever reason the game being card2 to fixes the ability to exit out to the homescreen :S
 

Attachments

  • gw_workaround.rsf.txt
    6.5 KB · Views: 244
  • Like
Reactions: Huntereb

st4rk

nah
Member
Joined
Feb 11, 2014
Messages
542
Trophies
0
Website
st4rk.net
XP
815
Country
Brazil
i think changing the system language does need you to reinstall the exploit....in regards to running the sample HB....use this RSF file (it goes in "3DSTemplate\resources") better than using the card1-card2 tools....and it works i just tested it)

oh and st4rk for whatever reason the game being card2 to fixes the ability to exit out to the homescreen :S


Very weird it, my friend with gateway tried and work fine without any change, i think it is ctrulib bug.
 
  • Like
Reactions: Relys

Relys

^(Software | Hardware) Exploit? Development.$
Member
Joined
Jan 5, 2007
Messages
878
Trophies
1
XP
1,239
Country
United States

I'm sure I'm doing something wrong. Does anyone know the correct syntax?

Command:
resources\makerom.exe -f cia -rsf resources\gw_workaround.rsf -target d -exefslogo -elf %ProjectName%.elf -icon resources\icon.bin -banner resources\banner.bin -o %ProjectName%.cia

Error:
[CIA ERROR] Content 0 Is Corrupt (res = -10)
[RESULT] Failed to build CIA
 

st4rk

nah
Member
Joined
Feb 11, 2014
Messages
542
Trophies
0
Website
st4rk.net
XP
815
Country
Brazil
I'm sure I'm doing something wrong. Does anyone know the correct syntax?

Command:
resources\makerom.exe -f cia -rsf resources\gw_workaround.rsf -target d -exefslogo -elf %ProjectName%.elf -icon resources\icon.bin -banner resources\banner.bin -o %ProjectName%.cia

Error:
[CIA ERROR] Content 0 Is Corrupt (res = -10)
[RESULT] Failed to build CIA


arm-none-eabi-strip 3DNES.elf
makerom -f cia -o 3DNES.cia -elf 3DNES.elf -rsf build_cia.rsf -icon icon.icn -banner banner.bnr -exefslogo -target t
pause
 
  • Like
Reactions: Relys and Huntereb

Relys

^(Software | Hardware) Exploit? Development.$
Member
Joined
Jan 5, 2007
Messages
878
Trophies
1
XP
1,239
Country
United States
arm-none-eabi-strip 3DNES.elf
makerom -f cia -o 3DNES.cia -elf 3DNES.elf -rsf build_cia.rsf -icon icon.icn -banner banner.bnr -exefslogo -target t
pause


Is build_cia.rsf different than gw_workaround.rsf?
 

AlbertoSONIC

Pasta Team Member
Member
Joined
Jun 27, 2014
Messages
927
Trophies
0
Age
52
Website
www.albertosonic.com
XP
1,396
Country
Italy
i think changing the system language does need you to reinstall the exploit....in regards to running the sample HB....use this RSF file (it goes in "3DSTemplate\resources") better than using the card1-card2 tools....and it works i just tested it)

oh and st4rk for whatever reason the game being card2 to fixes the ability to exit out to the homescreen :S
Thank you! I'll try within one hour!
 

Relys

^(Software | Hardware) Exploit? Development.$
Member
Joined
Jan 5, 2007
Messages
878
Trophies
1
XP
1,239
Country
United States
A bit, but i think it work with gw_workaround.


Commands:
arm-none-eabi-strip 3DSTemplate.elf
resources\makerom.exe -f cia -o %ProjectName%.cia -elf %ProjectName%.elf -rsf resources\gw_workaround.rsf -icon resources\icon.bin -banner resources\banner.bin -exefslogo -target t

Error:
[NCCH WARNING] NCCH AES Key could not be loaded, NCCH will not be encrypted
[CIA WARNING] Common Key could not be loaded, CIA will not be encrypted
[CIA ERROR] Content 0 Is Corrupt (res = -11)
[RESULT] Failed to build CIA
 

st4rk

nah
Member
Joined
Feb 11, 2014
Messages
542
Trophies
0
Website
st4rk.net
XP
815
Country
Brazil
Commands:
arm-none-eabi-strip 3DSTemplate.elf
resources\makerom.exe -f cia -o %ProjectName%.cia -elf %ProjectName%.elf -rsf resources\gw_workaround.rsf -icon resources\icon.bin -banner resources\banner.bin -exefslogo -target t

Error:
[NCCH WARNING] NCCH AES Key could not be loaded, NCCH will not be encrypted
[CIA WARNING] Common Key could not be loaded, CIA will not be encrypted
[CIA ERROR] Content 0 Is Corrupt (res = -11)
[RESULT] Failed to build CIA

http://pastebin.com/zrk45n0w
 
  • Like
Reactions: Relys

Relys

^(Software | Hardware) Exploit? Development.$
Member
Joined
Jan 5, 2007
Messages
878
Trophies
1
XP
1,239
Country
United States
gamesquest1 Gateway Workaround worked! Now it's time to try to understand how to print some text and how it could react to some kind of button input...

Drawing red square to screen here. I'm looking at the CHIP-8 emulators graphics libs and taking what I need. I'm working on text next.


Code:
void renderEffect()
{
    u8* screenTopLeft = gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL);
    u8* screenTopRight = gfxGetFramebuffer(GFX_TOP, GFX_LEFT, NULL, NULL);
    //u8* screenBottom = gfxGetFramebuffer(GFX_BOTTOM, NULL, NULL, NULL);
    paintSquare(50,50,0xFF,0x00,0x00,50,50,screenTopLeft);
    paintSquare(50,50,0xFF,0x00,0x00,50,50,screenTopRight);
    //paintSquare(50,50,0xFF,0x00,0x00,50,50,screenBottom);
}
 
void paintPixel(u8 posX, u8 posY, u8 r, u8 g, u8 b, u8* screen)
{
    u32 v=(posY+posX*240)*3;
    screen[v]=b;
    screen[v+1]=g;
    screen[v+2]=r;
}
 
void paintSquare(u8 x, u8 y, u8 r, u8 g, u8 b, u8 w, u8 h, u8* screen){
  u8 x1, y1;
  for (x1 = x; x1 < x+w; x1++){
    for (y1 = y; y1 < y+h; y1++){
        paintPixel(x1,y1,r,g,b,screen); 
    } 
  }
}
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Lol choosing disney+ over Netflix of course they cap tier quality per subscription