Bannertool Example

godreborn

Welcome to the Machine
OP
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
does anyone know how to use bannertool for a cia on the 3ds? @Pk11 @RocketRobz ? I had to use a gui for my sm64 build. I'm trying to build both a bnr and icn file with bannertool from png images. thanks.
 

Pk11

A catgirl with a DSi
Member
Joined
Jun 26, 2019
Messages
1,285
Trophies
1
Age
22
Location
米国
Website
pk11.us
XP
3,896
Country
United States
does anyone know how to use bannertool for a cia on the 3ds? @Pk11 @RocketRobz ? I had to use a gui for my sm64 build. I'm trying to build both a bnr and icn file with bannertool from png images. thanks.
I think it's usually done in the Makefile as part of the CIA build job, for example Universal-Updater has this:
Makefile:
	@$(BANNERTOOL) makebanner -ci "../app/banner.cgfx" -a "../app/BannerAudio.wav" -o "../app/banner.bin"

	@$(BANNERTOOL) makesmdh -i "../app/icon.png" -s "$(TARGET)" -l "$(APP_DESCRIPTION)" -p "$(APP_AUTHOR)" -o "../app/icon.bin" \
		--flags visible,ratingrequired,recordusage --cero 153 --esrb 153 --usk 153 --pegigen 153 --pegiptr 153 --pegibbfc 153 --cob 153 --grb 153 --cgsrr 153
Makefile:272-275

I think it should be makebanner for your 'bnr' file and makesmdh for your 'icn' file, though not sure as I don't think they usually use those extensions...

Edit: UU has a .cgfx because it has a 3D banner, for a 2D banner just do -i "../app/banner.png" instead of -ci "../app/banner.cgfx"
 
  • Like
Reactions: godreborn

godreborn

Welcome to the Machine
OP
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
I think it's usually done in the Makefile as part of the CIA build job, for example Universal-Updater has this:
Makefile:
    @$(BANNERTOOL) makebanner -ci "../app/banner.cgfx" -a "../app/BannerAudio.wav" -o "../app/banner.bin"

    @$(BANNERTOOL) makesmdh -i "../app/icon.png" -s "$(TARGET)" -l "$(APP_DESCRIPTION)" -p "$(APP_AUTHOR)" -o "../app/icon.bin" \
        --flags visible,ratingrequired,recordusage --cero 153 --esrb 153 --usk 153 --pegigen 153 --pegiptr 153 --pegibbfc 153 --cob 153 --grb 153 --cgsrr 153
Makefile:272-275

I think it should be makebanner for your 'bnr' file and makesmdh for your 'icn' file, though not sure as I don't think they usually use those extensions...

Edit: UU has a .cgfx because it has a 3D banner, for a 2D banner just do -i "../app/banner.png" instead of -ci "../app/banner.cgfx"
I think I kinda understand it. it makes more sense now, but what is banner.cgfx? I saw this before, but how is png incorporated into that file?
 

Pk11

A catgirl with a DSi
Member
Joined
Jun 26, 2019
Messages
1,285
Trophies
1
Age
22
Location
米国
Website
pk11.us
XP
3,896
Country
United States
I think I kinda understand it. it makes more sense now, but what is banner.cgfx? I saw this before, but how is png incorporated into that file?
See my edit, it's not, CGFX is for 3D banners. I forgot UU had a 3D banner or I woulda picked a different example lol
 

godreborn

Welcome to the Machine
OP
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
I think it's usually done in the Makefile as part of the CIA build job, for example Universal-Updater has this:
Makefile:
    @$(BANNERTOOL) makebanner -ci "../app/banner.cgfx" -a "../app/BannerAudio.wav" -o "../app/banner.bin"

    @$(BANNERTOOL) makesmdh -i "../app/icon.png" -s "$(TARGET)" -l "$(APP_DESCRIPTION)" -p "$(APP_AUTHOR)" -o "../app/icon.bin" \
        --flags visible,ratingrequired,recordusage --cero 153 --esrb 153 --usk 153 --pegigen 153 --pegiptr 153 --pegibbfc 153 --cob 153 --grb 153 --cgsrr 153
Makefile:272-275

I think it should be makebanner for your 'bnr' file and makesmdh for your 'icn' file, though not sure as I don't think they usually use those extensions...

Edit: UU has a .cgfx because it has a 3D banner, for a 2D banner just do -i "../app/banner.png" instead of -ci "../app/banner.cgfx"
we have success from what I understood:

1664733539659.png
 
  • Like
Reactions: Pk11

godreborn

Welcome to the Machine
OP
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
See my edit, it's not, CGFX is for 3D banners. I forgot UU had a 3D banner or I woulda picked a different example lol
btw, I didn't have to put bannertool in the folder, I just relied on environmental variables with devkitpro. that's why I have absolute paths for each of the three variables. ;)
 

Pk11

A catgirl with a DSi
Member
Joined
Jun 26, 2019
Messages
1,285
Trophies
1
Age
22
Location
米国
Website
pk11.us
XP
3,896
Country
United States
This does not work for me.
Your wav file is actually a wav file, not just a renamed mp3 or such right? I haven't taken a close look at the issue but that's the first thing that comes to mind, since the error makes it sound like the file's not a real wav
 

TimuRay13

New Member
Newbie
Joined
Feb 17, 2023
Messages
4
Trophies
0
Age
14
XP
35
Country
Finland
Your wav file is actually a wav file, not just a renamed mp3 or such right? I haven't taken a close look at the issue but that's the first thing that comes to mind, since the error makes it sound like the file's not a real wav
No I solved it. I just runned Audacity.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://m.youtube.com/watch?v=FzVN9kIUNxw +1