Tutorial  Updated

a9lh Boot Animations

image.jpg

Welcome to another kick-ass guide by cots. In this guide we're going to cover creating animating and static boot animations for the custom firmware loader that's all the rage - arm9loaderhax (a9lh). a9lh hijacks the arm9 chip during boot which allows 100% boot rate of the CFW Luma3DS, but you already knew that. Well, did you know you that you can create a custom boot animation that will load when you boot your console? It's also pretty easy to create and configure. So let's dive into it.

Requirements

Static Image(s) and/or Video(s)
Arm9LoaderHax Installed on your Nintendo 3DS (screeninit version)
BootAnim9 - https://github.com/Wolfvak/BootAnim9
makeanim - https://github.com/Docmudkipz/makeanim
ffmpeg - https://ffmpeg.org
imagemagick - http://www.imagemagick.org
Optional: ban9comp - https://github.com/d0k3/ban9comp

In this guide we'll be using 'C:\anim9' as the main folder where we'll work our magic. So extract makeanim and ffmpeg into this directory and then install imagemagick. If you're planning on building ban9comp to compress the output animations (if you're using a small sd card you might want to do this) then also copy ban9comp.exe into the folder.

Once this is done it's time to prepare the image/video file(s). The image/video file(s) will be automatically reduced in size (dimensions), but if you're creating them from scratch you'll want to keep the sizes listed below in mind. The color depth and number of colors are not limited in any fashion. Also note that both videos must have the same frame rate.

Top Screen - 400x240
Bottom Screen - 320x240

One major problem I ran into with creating boot animations using the included batch file was that it would not handle single images without first using ffmpeg to make them a video. In theory it should ask you how many seconds you want the single image to appear for, but it fails to do so. The workaround is to use ffmpeg to create an animation/video file out of your single image. So drop to a CMD prompt and run the following;

ffmpeg -framerate 1/5 -i image.png -c:v libx264 -r 30 -pix_fmt yuv420p output.mp4

This will convert 'image.png' into a video (framerate of 30 frame per second).

Once you have your video file(s) you'll want to drag them (one at a time) onto the 'makeanim.bat' in the 'C:\anim9' folder.

image.jpg

The first thing it will ask is the frame rate of the video. If you have no idea what the frame rate is you can use mediainfo (link - https://mediaarea.net/en/MediaInfo) to find out. So type in your videos frame rate and then press enter.

The next thing it will prompt you to press 'A' for the top screen or 'B' for the bottom. The script will then ask you if this is an animation or not. In theory it should then prompt you for how many seconds to display the static image for (if you pressed N), but it fails to do so.

The script will then process the video and then finally will ask you if you want to compress it using 'ban9comp.exe'.

If you selected the top screen you will now have a file with no extension named 'anim' in the 'C:\anim9' folder and if you selected the bottom screen you will find a file with also no extension named 'bottom_anim ' in the 'C:\anim9' folder. There will also be a 'config' file with no extension. You can create a boot animation(s) for the top, bottom or both screens.

The first thing you're going to need to do to use the animation(s) is to rename your 'arm9loaderhax.bin' (yes, we're working with the Nintendo 3DS sd card now) to 'arm9payload.bin' and then copy the contents of the BootAnim9 archive into the root of your card.

You should now have a folder on the root of your card named 'anim'. Move 'arm9payload.bin' into the '\anim' folder. Inside of the '\anim' folder create a folder named '0' and place the 'anim', 'bottom_anim' and 'config' files (from 'C:\anim9') in the '0' folder (it's okay if you don't use both 'anim' and 'bottom_anim'). You can also create nine more folders named 1, 2, 3, 4, 5, 6, 7, 8 and 9 and place separate boot animations in each, but don't skip numbers (that means don't create a folder named 2 before creating a folder named 1).

image.jpg

Now you can boot your Nintendo 3DS and if all went well you'll be welcomed by your boot animation(s)! Enjoy!

pitt.gif
 
Last edited by cots,

Docmudkipz

Novice
Member
Joined
Mar 16, 2016
Messages
327
Trophies
0
Location
Staring at my computer case's window
XP
297
Country
United States
I don't know how to do that. Why isn't it just a program already?:mellow:
And why won't it be useful, isn't the purpose of it is to be useful?
The payload wont work correctly unless the compressor achieves a 50% compression ratio which tends to be really rare. And you could always ask @Wolfvak for a copy of the executable, I'd give it to you myself but I dont have my dev environment completely set up to compile it for you.
 

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,395
Trophies
1
Location
New York
XP
12,890
Country
United States
The payload wont work correctly unless the compressor achieves a 50% compression ratio which tends to be really rare. And you could always ask @Wolfvak for a copy of the executable, I'd give it to you myself but I dont have my dev environment completely set up to compile it for you.
Is okay, someone already sent me one. :D
I just wish i didn't have to bother anyone for it. I just wonder why it wasn't already made.

So the compresson thing is random huh, is that why you said is rare to achieven a 50% rate?
 

Docmudkipz

Novice
Member
Joined
Mar 16, 2016
Messages
327
Trophies
0
Location
Staring at my computer case's window
XP
297
Country
United States
Is okay, someone already sent me one. :D
I just wish i didn't have to bother anyone for it. I just wonder why it wasn't already made.

So the compresson thing is random huh, is that why you said is rare to achieven a 50% rate?
Its not random more than it depends on the content of what's being compressed. Something like my Doom animation may hit 50% or higher ratio while others that are a lot more busy will likely average out at 10-30%
 

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,395
Trophies
1
Location
New York
XP
12,890
Country
United States
Its not random more than it depends on the content of what's being compressed. Something like my Doom animation may hit 50% or higher ratio while others that are a lot more busy will likely average out at 10-30%
So it basically dependant on the file provided. Is there a way to improve or maybe a guide for suggestion on optimizations? So far the program has only the clue for 400X240 resolution, and between 1-30 FPS as possible clues. So if there anything else i should know, that be nice. :D
 

Docmudkipz

Novice
Member
Joined
Mar 16, 2016
Messages
327
Trophies
0
Location
Staring at my computer case's window
XP
297
Country
United States
So it basically dependant on the file provided. Is there a way to improve or maybe a guide for suggestion on optimizations? So far the program has only the clue for 400X240 resolution, and between 1-30 FPS as possible clues. So if there anything else i should know, that be nice. :D
Its not worth sacrificing your quality just to compress, at that point its just a lose-lose situation. Just go with the rule of thumb that you should be matching the FPS of the source file with what you're telling the script to use as the FPS. Don't be afraid to try compressing it and if it doesn't work then its not worth compressing at all.
 

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,395
Trophies
1
Location
New York
XP
12,890
Country
United States
Its not worth sacrificing your quality just to compress, at that point its just a lose-lose situation. Just go with the rule of thumb that you should be matching the FPS of the source file with what you're telling the script to use as the FPS. Don't be afraid to try compressing it and if it doesn't work then its not worth compressing at all.
Okay, thanks for the advice. I guess, is not always worth it to have 89MB animations :P
 

Dtwenty

Active Member
Newcomer
Joined
Feb 27, 2016
Messages
34
Trophies
0
Age
39
Location
Andalucia
XP
190
Country
Hello. I have a Problem with gif imagen when i try to made the boot. the .bat program say

"Ffmpeg" is not recognized as an internal or external command, program or batch file. The system can not find the specified archive.
Do you want this to be compressed with ban9comp? [Y,N]?.

how can i fix this?
 

Docmudkipz

Novice
Member
Joined
Mar 16, 2016
Messages
327
Trophies
0
Location
Staring at my computer case's window
XP
297
Country
United States
Hello. I have a Problem with gif imagen when i try to made the boot. the .bat program say

"Ffmpeg" is not recognized as an internal or external command, program or batch file. The system can not find the specified archive.
Do you want this to be compressed with ban9comp? [Y,N]?.

how can i fix this?
https://ffmpeg.zeranoe.com/builds/ Install that and restart
 

Dtwenty

Active Member
Newcomer
Joined
Feb 27, 2016
Messages
34
Trophies
0
Age
39
Location
Andalucia
XP
190
Country
Hello, gif error:

"Ffmpeg" is not recognized as an internal or external command,
program or batch file.
The system can not find the specified archive.
Do you want this to be compressed with ban9comp? [Y,N]?

How can i fix it?
 

Docmudkipz

Novice
Member
Joined
Mar 16, 2016
Messages
327
Trophies
0
Location
Staring at my computer case's window
XP
297
Country
United States

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    I just been playing offline, and they give you a few bots here n there on your team to help battle. I don't think it's as funny as the other games tho, more battle oriented than humor, which kinda sucks, but I'm still early in it
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, doesnt the game have a campaign mode?
  • BigOnYa @ BigOnYa:
    Yea, and co-op, but you can also start a pvp session and battle just with friends. You get special skill cards (powers) the more you play. And higher value cards, but you can only enable so many cards at a time.
  • K3Nv2 @ K3Nv2:
    If you can find enough for it
  • BigOnYa @ BigOnYa:
    Toilet paper is considered the money, you collect and buy stuff with TP, kinda funny. Graphics are def better than the other games tho, I think they used Unity 5 engine.
  • Psionic Roshambo @ Psionic Roshambo:
    Look if I zoom in enough I can see the herpes!!!
    +1
  • BigOnYa @ BigOnYa:
    In fact I'm gonna go make a drink, roll a fatty n play some, good night to all!
    +2
  • Xdqwerty @ Xdqwerty:
    I bet most people at the time still watched it in black and white
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Many of them did before colour television was common.
  • SylverReZ @ SylverReZ:
    Likely because black and white TV was in-expensive.
    +1
  • K3Nv2 @ K3Nv2:
    It certainly wasn't inexpensive it cost the same as a new car back then
  • K3Nv2 @ K3Nv2:
    How much did a 1965 color TV cost?

    For example, a 21-inch (diagonal) GE color television in 1965 had an advertised price of $499, which is equal to $4,724 in today's dollars, according to the federal government's inflation calculator.
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, take into consideration how economy was back then
  • K3Nv2 @ K3Nv2:
    Yeah that's why they listed inflation rates
  • Xdqwerty @ Xdqwerty:
    Sorry didnt read that part
  • BakerMan @ BakerMan:
    @LeoTCK don't worry i knew he was joking
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    My first color TV was like 1984 or something lol
  • Psionic Roshambo @ Psionic Roshambo:
    19 inches it was glorious lol
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, If it doesn't fit, you should've gotten one smaller lol
    +2
  • SylverReZ @ SylverReZ:
    If a racoon can fit up to 8-inches then so be it
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Lol it it fits I sit? Lol
    +1
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, Will it blend lol
    +1
    SylverReZ @ SylverReZ: @Psionic Roshambo, Will it blend lol +1