ihaveamac / 3dsconv Goto Github PK
View Code? Open in Web Editor NEWPython script to convert Nintendo 3DS CCI (".cci", ".3ds") files to the CIA format
License: MIT License
Python script to convert Nintendo 3DS CCI (".cci", ".3ds") files to the CIA format
License: MIT License
When i try to run
python3 3dsconv.py game.3ds
i got this error
File "3dsconv.py", line 24 global boot9_path = os.environ[namevar] ^ SyntaxError: invalid syntax
can you help?
Using OSX v. 10.15.2
Yeah everytime I try to use the exe with a boot9.bin it doesn't convert the .3ds file to a .cia and doesn't run. I have the latest version and I've properly dumped my boot9.bin from my own new 3ds xl console. The file I'm trying to convert is decrypted.
Is there a way that you can convert a cia to a 3ds? Most games I find that I want are cia files but I want to play them as a 3ds rom on my sky3ds+.
I made a decrypted, trimmed rip of Bravely Default EU using D9WIP and have tried converting it with 3dsconv multiple times, but the result has always been the same: The converter generates a cxi and a cfa file then exits without making a .cia.
Using the 64 bit Windows version with latest makerom, FYI.
Hi,
I tried really every tool out there to transform trimed, decrypted .3ds files to .cia I found on the net. None worked out of the box. With 3dsconv I get at least an error witch is a hint for something.
Here an Examble for "0487 - Legend of Zelda, The - A Link Between Worlds (Europe) (En,Fr,De,Es,It) Decrypted.3ds"
Processing 0487.3ds...
Title ID: 00040000000EC400
Game Executable CXI Size: 2AABC000
Manual CFA Size: 1D3000
Download Play child CFA Size: 0
Normal key: {normalkey}
Converting 0487 (encrypted)...
Verifying ExtHeader...
Decrypting ExtHeader...
This file may be corrupt (invalid ExtHeader hash).
Done converting 0 out of 1 files. "
The file workes absolutely perfect on citra emu. Why is a transform to .cia always giving that error and how can it be fixed?
Thanks for your work!
I'm kinda newbie in this encrypting/decrypting/converting thing in the 3DS hacking community (kinda newbie in 3DS hacking in general) and when I try to drag the decrypted .3ds file to the 3dsconv.exe, a prompt pops up on the screen and then automatically closes. What can I do to fix it?
@ihaveamac Is there an option to decrypt .3ds rom using the bios?
not sure why this is happening, but game cards dumped with Decrypt9 (haven't tested others recently), whether dump+decrypt or dump+xorpads generated, seem to have Manual and Download Play broken(results in "The SD Card was removed" error for manual).
I might just have to switch back to makerom :/
"3dsconv.py ~ version 4.2
Error: bootROM not found, encryption will not be supported
Error: "x.3ds" is encrypted using Original NCCH and pyaes or the bootROM were not found, therefore this can not be converted. See the README at https://github.com/ihaveamac/3dsconv for details.
Done converting 0 out of 1 files."
I have several *.3ds roms that are already decrypted. They works fine on Citra, but trying to convert them to *.cia leads to an error (invalid ExtHeader hash
) as 3dsconv try to decrypt them before converting.
I tried to force the encrypted
variable to False
(
Line 330 in 4f27733
To save the next guy looking to simply convert his files some trouble, here's a pre-built EXE of the latest commit as of writing:
3dsconv_bde8c8f.zip
what about creating an exe with something like this:
import os
import sys
def run3dsconv():
if not os.path.exists("cias"):
os.makedirs("cias")
input_directory = "roms"
for root, dirs, files in os.walk(input_directory):
for file in files:
if file.endswith(".3ds"):
input_path = os.path.join(root, file)
output_dir = "cias"
print("Converting", input_path, "to", output_dir)
os.system("python 3dsconv.py --output=\"" + output_dir + "\" --boot9=\"boot9.bin\" \"" + input_path + "\"")
if __name__ == "__main__":
if not os.path.exists("roms"):
print("Error: roms directory not found")
os.makedirs("roms")
sys.exit(1)
if not os.path.exists("boot9.bin"):
print("Error: boot9.bin not found")
sys.exit(1)
run3dsconv()
so you can simply run the code and everything will be done automaticaly without any data parsing in
Expected: --output=c:\cias converts the files and puts the new one in c:\cias
Actual: the folder c:\cias is made, but it just puts the new file next to the 3dsconv.exe file (as is it's default location, as per the documentation)
Just a note for lurkers that this script still works great.
Used godmode9 to decrypt in-place on the system, then converted to cia using the script + installed the CIA with FBI + worked great.
While gm9 is great also for doing the conversion on device, I didn't have the SD space, so this script is a good option.
Hi there.
I'm the guy having issues with converting 3ds files with your script. I think the ncchinfo.bin header isn't complete. After your last update the file is valid for converting, but it fails to install. With simple CIA Converter generated xorpads I can build valid CIA files.
I use Monster Hunter Ultimate 4, which I converted from my cart ridge.
I attached bot ncchinfo.bin files and a screenshot with the error message after installing monster hunter 4 Ultimate.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.