Hacking [Release+Mini Tutorial] AIO.bat: All-In-1 batch file for compiling 3DS stuff

  • Thread starter Thread starter Madridi
  • Start date Start date
  • Views Views 30,696
  • Replies Replies 195
  • Likes Likes 20
Can you check out this new CFW:

https://github.com/chaoskagami/corbenik.git
https://gbatemp.net/threads/corbenik-another-cfw-for-advanced-users-with-bytecode-patches.429612/

I get a python2 error (think because he builds on a linux platform)

make[1]: Entering directory `/d/Z_Testing/corbenik/patch'
rm -f *.vco
../host/bytecode_asm.py aadowngrade.pco aadowngrade.vco
/usr/bin/env: python2: No such file or directory
make[1]: *** [aadowngrade.vco] Error 127
make[1]: Leaving directory `/d/Z_Testing/corbenik/patch'
make: *** [patch] Error 2


[EDIT]
The problem is when it tries to build the patches
the makefile in \corbenik\patch\ calls a pyhton script in \corbenik\host\ called "bytecode_asm.py"


[EDIT2]
Found it:

Edit "bytecode_asm.py" and change:
-#!/usr/bin/env python2
to
- #!/usr/bin/env python


(Or like @astronautlevel reminded me again, rename python.exe to python2.exe)
lol, I was about to reply saying that, like cakes where changing that to python3.exe, changing this to python2.exe works. We'd need a better solution for this though

I wonder what would happen if we copy the exe, have a copy as python.exe and the other as python2.exe

I doubt that a dirty solution like this works though :P

Edit: lol it works! I added it to the instructions in the main post. Unless someone can interject and say WHY this should not be used, then I'll make a new release with this new CFW tomorrow (already added.. just waiting for confirmation)
 
Last edited by Madridi,
Just to inform ;)

So you learn something new everyday :) (thanks to @chaoskagami )
Today it's the windows command "mklink" to create hard links/symbolic links of files or folders

Instead of making a copy of python.exe as python2.exe or py3.exe or python3.exe you can create a hard link/symbolic link to it:

- go into \python2x
- run cmd as admin in that folder (or open cmd as admin and go to your python2x folder)
- type: mklink python2.exe c:\python2x\python.exe
- this creates a 0byte python2.exe file
- To delete a hardlink, just delete the 0byte file

Same for python3

mklink.png


mklink1.png


(Yes i know you can aswell make a copy named python2.exe or python3.exe from your python.exe file ;) )
 
Last edited by DjoeN,
Just to inform ;)

So you learn something new everyday :) (thanks to @chaoskagami )
Today it's the windows command "mklink" to create hard links/symbolic links of files or folders

Instead of making a copy of python.exe as python2.exe or py3.exe or python3.exe you can create a hard link/symbolic link to it:

- go into \python2x
- run cmd as admin in that folder (or open cmd as admin and go to your python2x folder)
- type: mklink python2.exe c:\python2x\python.exe
- this creates a 0byte python2.exe file
- To delete a hardlink, just delete the 0byte file

Same for python3

mklink.png


mklink1.png


(Yes i know you can aswell make a copy named python2.exe or python3.exe from your python.exe file ;) )
That's amazing! I'll add this later to the main post. Thank you and @chaoskagami for the info :)

Also an update coming later with corbenik cfw added to the program
 
  • Like
Reactions: Rohul1997
[*]Install "PyYAML-3.11-cp35-cp35m-win32": In the same folder you have this file. right-click, open cmd, and type "pip install PyYAML-3.11-cp35-cp35m-win32.whl". If pip is out of date, it will give you instruction on how to update it, then run the above command again to install it.
What I need to download here ?
There is a lot of link
 
@Madridi
- Here's another CFW to add
https://github.com/RShadowhand/ShadowNAND

- Nevermind, it isn't finnished and we don't know much about it! (no gbatemp thread etc...)

It should be a really cut down minimalistic CFW that doesn't use arm9loaderhax.bin

...
Maybe they wouldn't detect it if ShadowNAND is installed, it's the closest to stock you can get as it doesn't need an arm9loaderhax.bin and requires no files on the SD card.
...

It's a CFW that loads from NAND, I believe it's based on Luma with all the bloat removed.
...
 
Last edited by DjoeN,
  • Like
Reactions: Madridi
ok thanks

--------------------- MERGED ---------------------------

And where I need to install "Info-Zip"
There is just some .exe file

--------------------- MERGED ---------------------------

Also I got that for everything:
1465307614-sans-titre.png


git installed, like all programm
Your installation seems messed up. While his not be accurate, but something like this will solve it. You'll have to search for it yourself
https://aircrack.wordpress.com/2014...t-error-setting-certificate-verify-locations/

@Madridi
- Here's another CFW to add
https://github.com/RShadowhand/ShadowNAND

- Nevermind, it isn't finnished and we don't know much about it! (no gbatemp thread etc...)

It should be a really cut down minimalistic CFW that doesn't use arm9loaderhax.bin
Thanks, if it compiles, I'll still check it out and add it.

Haven't had the time to update anything yesterday, and it's not likely that I'll have the time tonight either. So hopefully I'll do all of this tomorrow.
 
add @TheCruel 's freeShop?

--------------------- MERGED ---------------------------

Also BootCtr9, delebiles fork, and dark samus's fork still wont compile
@TheCruel hasn't posted instructions yet on how to compile on windows. Once he does that, I have plans to include it, yes.

As for BootCtr9 and Delebile's fork. I posted updates to the requirement that would fix it. A new bat is not enough. Check post 77 for that
 
Is there anything like this that runs on the 3DS itself? I just want to be able to dump a cart with Uncart, process the .3ds file and get the xorpads generated, compile it into a .cia, and be able to install it with FBI. Basically from retail cart to .cia without the need for a PC.
 
Is there anything like this that runs on the 3DS itself? I just want to be able to dump a cart with Uncart, process the .3ds file and get the xorpads generated, compile it into a .cia, and be able to install it with FBI. Basically from retail cart to .cia without the need for a PC.
I wouldn't know, but I doubt it
 
ugh but i have MinGW inside of Git. i installed git-sdk-64 for the package manager pacman, it also has MinGW and MinGW64 inside of a handy little interface called MSYS2. do i really need to make it a separate installation?
 
ugh but i have MinGW inside of Git. i installed git-sdk-64 for the package manager pacman, it also has MinGW and MinGW64 inside of a handy little interface called MSYS2. do i really need to make it a separate installation?
Maybe not, especially if it's in path. I just posted what I know works. I can't possibly post every single scenario out there.

The main issue is that you need to install some additional modules of pycrypto. The exe attached didn't install everything apparently. There is more than one way to do this, but here is one: After installing pycrypto, go to C:/Python27/scripts folder. Hold shift + right-click and open command prompt. Type "easy_install pycrypto" and click enter. Then try compiling bootctr9 and delibile's fork again. Though you may need to restart before compiling
 
@DjoeN

- I added the Mklink instructions to the main post, but I kept made that only for python2 (and added that to your credits as well) .. I assume having python.exe for both python 2 and python 3 will cause conflict, and the system wont know which one to choose for compiling. Since only cakes is using python 3, I figured it's better to rename python.exe to python3.exe instead

- Shadowhand: I'm confused about this one. I thought it's a cfw? Yet I see it's a from dark samus's A9LH? So it's a A9LH and not cfw? Didn't want to add it before I figure out where it should be placed in the menu
 
Ay madridi, I already did that with pycrypto, on both versions of python, too. I already have a working setup of separate installations of python 2 and 3. command prompt will open python 2.7 when i call "python2", and python 3.4 when i call "python3". pip works the same way, and easy_install did seem to create linkers. Still not compiling correctly though.
 
Ay madridi, I already did that with pycrypto, on both versions of python, too. I already have a working setup of separate installations of python 2 and 3. command prompt will open python 2.7 when i call "python2", and python 3.4 when i call "python3". pip works the same way, and easy_install did seem to create linkers. Still not compiling correctly though.
I am a bit confused by your setup. Linkers should have nothing to do with this. Mind explaining your setup for me, then telling me exactly what you did?
 
oh, uh. so i had python 2 and python 3 co-installed before i ever came across aio.bat. so what i had done was, i duplicated "python.exe" in my "python27" folder, renamed it "python2.exe", and put it in my PATH as "python2". then i did the same thing with python.exe in python34 folder, and also with pip.exe in both locations. so now typing in "python" in command prompt wont do anything, i have to say "python2" or "python3" to use them. it just works, idk man, i did this a while ago.

--------------------- MERGED ---------------------------

oh but running the easy_install command you gave did do something actually, like it said it worked and made a link or something
 

Site & Scene News

Popular threads in this forum