Setting up sf2dlib!

Before we will actually start coding we will setup one more thing. Even though technically you can start developing for the 3DS without this library it’s highly recommended that you install it anyway. Though we will start using the library once we are going into graphics thus you won’t need it for the first 2 tutorials on actual coding.

Before installing sf2dlib you’ll first have to setup the 3DS development environment if you haven’t already you can check out the tutorial here.

First you’ll have to “Download ZIP” the source of sf2dlib from it’s github repo. Then extract it somewhere.

Then download aemstro from it’s github repo. And place the file called aemstro_as.py inside the libsf2d (inside the sf2dlib-master folder) folder.

Next you’ll have to download and install python 3 (python 2 WILL NOT WORK!). Once installed go to the install destination (default is “C:\Python34”). Now open the Makefile inside the libsf2d folder (you can use notepad). Search for this line: “@python $(AEMSTRO)/aemstro_as.py $< ../$(notdir $<).shbin)” and replace it with: “@C:\Python34\python.exe C:\Users\Admin\Desktop\sf2dlib-master\libsf2d\aemstro_as.py $< ../$(notdir $<).shbin)” where “C:\Python34\” should be your install destinantion of python 3 and “C:\Users\Admin\Desktop\sf2dlib-master\libsf2d\” is the file path to where you have your aemstro_am.py file located (if you copied it to the libsf2d folder it should be the path of that folder!).

Now open a command prompt inside of the libsf2d folder, type “make install” and hit enter.

As of writing this tutorial, you’ll need to install ctrulib from the github repo, this will probably be fixed in the next devkitPro update. To install ctrulib, just copy the libctru folder from the repo to the devkitPro folder (replace files if asked) and then open a command prompt in the devkitPro\libctru folder and run make, this will take a little while, but when it’s done you have the latest version of ctrulib and shouldn’t have any problem with installing sf2dlib.

I and others have had trouble in the past installing sf2dlib, while this method has worked for me it might not for you (though it should), you can go to the official sf2dlib thread on gbatemp.net for help!

3 thoughts on “Setting up sf2dlib!

  1. Can you please make a tutorial on making a 3ds save game editing software?
    I really want to know how it works
    Please

    Like

Leave a comment