ROM Hack [Release] Villain3ds - Basically freeShop but runs on your PC

Joom

 ❤❤❤
Member
Joined
Jan 8, 2016
Messages
6,067
Trophies
1
Location
US
Website
mogbox.net
XP
6,077
Country
United States
+1 on Material Design. Does Wii U USB Helper produce good/clean/proper/whateverterminologyyouwanttouse CIA's?
It doesn't build CIAs AFAIK. It downloads games in a raw format that can either be manually built as a 3ds or CIA (at least I believe that's how it works).
Technically yes, I can build one for macOS too. But I need a make_cdn_cia binary file for macOS, and I couldn't find one yet.
Found the source.
https://github.com/Tiger21820/ctr_toolkit/tree/master/make_cdn_cia

I'll attempt to compile it later, and if I'm successful I'll send you a binary.
 

OrGoN3

Well-Known Member
Member
Joined
Apr 23, 2007
Messages
3,241
Trophies
1
XP
3,292
Country
United States
It doesn't build CIAs AFAIK. It downloads games in a raw format that can either be manually built as a 3ds or CIA (at least I believe that's how it works).

Found the source.
https://github.com/Tiger21820/ctr_toolkit/tree/master/make_cdn_cia

I'll attempt to compile it later, and if I'm successful I'll send you a binary.

I ask again: does Wii U USB Helper produce good CIA's? I'm not asking for legit CIA's. I'm asking if the CIA's it produce are considered good CIA's, as per cearp's definition.
 

Joom

 ❤❤❤
Member
Joined
Jan 8, 2016
Messages
6,067
Trophies
1
Location
US
Website
mogbox.net
XP
6,077
Country
United States
I ask again: does Wii U USB Helper produce good CIA's? I'm not asking for legit CIA's. I'm asking if the CIA's it produce are considered good CIA's, as per cearp's definition.
And like I said it doesn't produce CIAs. It downloads a bunch of ".app" and TMD files. You have to manually build the CIA with these files.
 

OrGoN3

Well-Known Member
Member
Joined
Apr 23, 2007
Messages
3,241
Trophies
1
XP
3,292
Country
United States
And like I said it doesn't produce CIAs. It downloads a bunch of ".app" and TMD files. You have to manually build the CIA with these files.
Except it does. Wii U USB Helper supports both Wii U AND 3DS, along with a Pack to CIA option when downloading 3DS games/apps/etc. I just verified it by running it and looking. I guess I need to ask a third time.
 
  • Like
Reactions: tranxuanthang

Joom

 ❤❤❤
Member
Joined
Jan 8, 2016
Messages
6,067
Trophies
1
Location
US
Website
mogbox.net
XP
6,077
Country
United States
Except it does. Wii U USB Helper supports both Wii U AND 3DS, along with a Pack to CIA option when downloading 3DS games/apps/etc. I just verified it by running it and looking. I guess I need to ask a third time.
Ah. Last time I used it it didn't have that option. My bad. Also, assuming that USB Helper doesn't use custom code to build CIAs (I doubt it does) it most likely builds CIAs in the same fashion as other tools by calling on a pre-built CLI binary.
 
Last edited by Joom,

tranxuanthang

Well-Known Member
OP
Member
Joined
Jul 6, 2015
Messages
289
Trophies
0
Age
26
XP
605
Country
Except it does. Wii U USB Helper supports both Wii U AND 3DS, along with a Pack to CIA option when downloading 3DS games/apps/etc. I just verified it by running it and looking. I guess I need to ask a third time.
It has downloaded tmd file from cdn and has your provided titlekey so yes. No reason for it to not generate good cias that are redownloadable when visit eShop.
 
  • Like
Reactions: OrGoN3

tranxuanthang

Well-Known Member
OP
Member
Joined
Jul 6, 2015
Messages
289
Trophies
0
Age
26
XP
605
Country
Thanks. Do you have any plans on making this project open source?
Yes, maybe sooner or later because my code for now looks like garbage.

Found the source.
https://github.com/Tiger21820/ctr_toolkit/tree/master/make_cdn_cia

I'll attempt to compile it later, and if I'm successful I'll send you a binary.
I've build mac version of my app so you can try if it works or not. You need to add make_cdn_cia_macos to [home directory]/Villain3ds/ first anywhen before the download process finishes.
Edit: Use this instead https://drive.google.com/open?id=0B9X-MK30m7IKSUhGMkc5RXEzcXc
(it outputed a folder named something.app, this it right? :rofl:)
 
Last edited by tranxuanthang,
  • Like
Reactions: IcyFire and OrGoN3

Joom

 ❤❤❤
Member
Joined
Jan 8, 2016
Messages
6,067
Trophies
1
Location
US
Website
mogbox.net
XP
6,077
Country
United States
(it outputed a folder named something.app, this it right? :rofl:)
Yes, that's right. macOS uses "app bundles", which contain the icon and application metadata as well as support files necessary for the application to run. They appear as folders on anything other than macOS. Rather than using a universal directory for configuration and application support like Windows (%AppData%\Roaming or Program Data on the main OS partition) everything is contained within the app bundle. Of course, there is some data saved to the home directory (typically in ~/Library) like with any UNIX system. This data is, of course, user specific.
 
Last edited by Joom,
  • Like
Reactions: tranxuanthang

tranxuanthang

Well-Known Member
OP
Member
Joined
Jul 6, 2015
Messages
289
Trophies
0
Age
26
XP
605
Country
Yes, that's right. macOS uses "app bundles", which contain the icon and application metadata as well as support files necessary for the application to run. They appear as folders on anything other than macOS. Rather than using a universal directory for configuration and application support like Windows (%AppData%\Roaming or Program Data on the main OS partition) everything is contained within the app bundle. Of course, there is some data saved to the home directory (typically in ~/Library) like with any UNIX system. This data is, of course, user specific.
Interesting. I haven't had a mac so I thought apps had to be downloaded from appstore only like iOS.
Good thing, thanks but can u separate all version in your download archive ?
Isn't it separated already? There are 3 .7z files in Drive folder, each for windows 32bit, 64bit and linux 64bit.
 
  • Like
Reactions: chronoss

dAVID_

Well-Known Member
Member
Joined
Oct 23, 2016
Messages
1,405
Trophies
1
Location
The Game
XP
2,276
Country
Mexico
This way you don't have to rely on some shady rom site with pop-ups on every link and locked RARs. CIAngel was an alternative, but with the 3DS being
so limited, why not make it on PC?
 

tranxuanthang

Well-Known Member
OP
Member
Joined
Jul 6, 2015
Messages
289
Trophies
0
Age
26
XP
605
Country
Yes but all are in one archive...
You need to click to the folder name, not the download button. Then you can go inside the folder. If you click the download folder button then the whole folder will be compressed by Drive and downloaded.
If somehow you can't then here is the seperated files of current ver, 0.0.2:
https://drive.google.com/drive/folders/0B9X-MK30m7IKWFh2azFxcUhDNVE
This way you don't have to rely on some shady rom site with pop-ups on every link and locked RARs. CIAngel was an alternative, but with the 3DS being
so limited, why not make it on PC?
That's right, unless you want some unreleased, leaked games like ultra sun/moon (just an example) then you'll have to find it on that shady rom site anyways.
 
  • Like
Reactions: chronoss

Joom

 ❤❤❤
Member
Joined
Jan 8, 2016
Messages
6,067
Trophies
1
Location
US
Website
mogbox.net
XP
6,077
Country
United States
I've build mac version of my app so you can try if it works or not. You need to add make_cdn_cia_macos to [home directory]/Villain3ds/ first anywhen before the download process finishes.
Edit: Use this instead https://drive.google.com/open?id=0B9X-MK30m7IKSUhGMkc5RXEzcXc
(it outputed a folder named something.app, this it right? :rofl:)
So this just happens when I try to run it. Just wondering, but are you using hard coded paths to directories? The home directory on macOS is /Users/$USER instead of /home/$USER like on Linux.
Ld9mIkr.png
 
Last edited by Joom,

tranxuanthang

Well-Known Member
OP
Member
Joined
Jul 6, 2015
Messages
289
Trophies
0
Age
26
XP
605
Country
So this just happens when I try to run it. Just wondering, but are you using hard coded paths to directories? The home directory on macOS is /Users/$USER instead of /home/$USER like on Linux.
I don't think this directories part is the problem. I'm using cross-platform solution like app.getPath('home') to find user's directory, path.join() to build the path so the app works well on both windows and linux. Maybe macOS app has to be signed or something?
After some searching, they said that you have to chmod +x for the executable file (at Villain3DS.app/Contents/MacOS/Villain3DS), pretty much like on linux. Let me know if it's work or not.
 
Last edited by tranxuanthang,

Sachka

Well-Known Member
Member
Joined
Nov 15, 2008
Messages
145
Trophies
1
Location
Lumiose City
XP
1,059
Country
France
So this just happens when I try to run it. Just wondering, but are you using hard coded paths to directories? The home directory on macOS is /Users/$USER instead of /home/$USER like on Linux.
Ld9mIkr.png
1. Open a terminal

2. Here are the commands:

cd

cd Applications

cd APPLICATION_NAME.app (where APPLICATION_NAME is your app)

cd Contents/MacOS

First Option (if you know which is the executable): chmod +x FILENAME (where FILENAME is the name of the executable)

Second Option (if you don't know which is the executable): chmod +x *

If it tells you operation not permitted, then add sudo in front of chmod



Hope it helps
 
  • Like
Reactions: tranxuanthang

Joom

 ❤❤❤
Member
Joined
Jan 8, 2016
Messages
6,067
Trophies
1
Location
US
Website
mogbox.net
XP
6,077
Country
United States
After chmodding the binary this just happens.

VVZ3f9D.png


If it helps here's the error report.
Process: Villain3DS [47225]
Path: /Applications/Villain3DS.app/Contents/MacOS/Villain3DS
Identifier: com.electron.villain3ds
Version: 0.0.2 (0.0.2)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Villain3DS [47225]
User ID: 501

Date/Time: 2017-10-31 01:48:13.358 -0500
OS Version: Mac OS X 10.12.6 (16G29)
Report Version: 12
Anonymous UUID: 46DDB1F5-E8F4-3FC6-E073-127290942E18

Sleep/Wake UUID: 08267914-E217-4022-8FCB-5131930A38BA

Time Awake Since Boot: 860000 seconds
Time Since Wake: 400000 seconds

System Integrity Protection: disabled

Crashed Thread: 0

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
Library not loaded: @rpath/Electron Framework.framework/Electron Framework
Referenced from: /Applications/Villain3DS.app/Contents/MacOS/Villain3DS
Reason: no suitable image found. Did find:
/Applications/Villain3DS.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework: file too short

Binary Images:
0x10bb67000 - 0x10bb67ff7 +com.electron.villain3ds (0.0.2 - 0.0.2) <CB63147A-C9DC-308B-8CA1-EE92A5042E8E> /Applications/Villain3DS.app/Contents/MacOS/Villain3DS
0x113651000 - 0x11368edc7 dyld (433.5) <322C06B7-8878-311D-888C-C8FD2CA96FF3> /usr/lib/dyld

Model: MacBookPro11,5, BootROM MBP114.0172.B25, 4 processors, Intel Core i7, 2.8 GHz, 16 GB, SMC 2.30f2
Graphics: AMD Radeon R9 M370X, AMD Radeon R9 M370X, PCIe, 2048 MB
Graphics: Intel Iris Pro, Intel Iris Pro, Built-In
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x802C, 0x31364B544631473634485A2D314736453120
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x802C, 0x31364B544631473634485A2D314736453120
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x152), Broadcom BCM43xx 1.0 (7.21.171.130.1a1)
Bluetooth: Version 5.0.5f1, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM1024G, 1 TB
USB Device: USB 3.0 Bus
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Bluetooth USB Host Controller
USB Device: USB Receiver
Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1
This part specifically is probably noteworthy.
Dyld Error Message:
Library not loaded: @rpath/Electron Framework.framework/Electron Framework
Referenced from: /Applications/Villain3DS.app/Contents/MacOS/Villain3DS
Reason: no suitable image found. Did find:
/Applications/Villain3DS.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework: file too short

I made some a while ago (2 years) but I'm not sure if I will have it. Maybe @ihaveamac could help?
Long shot, but do you remember which version of GCC you used? I've tried with 7.2 from homebrew and it threw up a rainbow of errors. I'm quite possibly missing build dependencies as well. There's really nopt any docuumentation on what's necessary to build it.
 
Last edited by Joom,
  • Like
Reactions: tranxuanthang

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtube.com/shorts/FdYTKAVSsXY?si=9E-2AU0JN-4hRZi3