Homebrew COMPLETED PyNX - Game Redirector

Should I add NPDM editing to this?

  • Yes

  • No


Results are only viewable after voting.

mikerm

Member
Newcomer
Joined
Jun 18, 2018
Messages
8
Trophies
0
Age
30
XP
107
Country
Brazil
It is working for me with Splatoon 2 - PokeQuest as donor. Also deleted config.ini
Does the homebrew menu crash for y'all too after testing the games? Or are you swapping successfully after exiting the game?
 

bedbug1226

Well-Known Member
Newcomer
Joined
Dec 1, 2014
Messages
83
Trophies
0
Age
30
XP
484
Country
United States
Should be updated and better maybe? (except my really bad coding)
I probably wont touch this again but I hope ChainedHope will up keep doing awesome work like this. I really didn't do much and he deserves all the credit.

IMPORTANT. I JUST REALIZED A (potential) BUG in my code.
I honestly don't remember since in not looking at it but If you install a game to a wrong donor it might mess up the config if another game uses that id.

Might be fixable by changing this

else: #Result for missing game data
print_std('This game has been already moved , wrongly titled, or is missing files.')
print_std('Clearing screen in 5 seconds.')
current_settings[1] = config[index][1]
current_settings[2] = config[index][1]
for i in range(5):
print_std('{0}...'.format(5 - i))
time.sleep(1)
clear()
 
Last edited by bedbug1226,
  • Like
Reactions: mikerm

yakuza8702

Member
Newcomer
Joined
Mar 1, 2017
Messages
16
Trophies
0
Age
25
XP
83
Country
Malaysia
I don't quite understand is it like this? Root/switch/games/gamename/atmosphere/titles/donor title id/{romfs & exefs}

But leave root/atmosphere/titles blank?
 

ChainedHope

Active Member
OP
Newcomer
Joined
Dec 12, 2017
Messages
41
Trophies
0
Age
29
XP
195
Country
United States
I don't understand is it like this? Root/switch/games/gamename/atmosphere
{Root of SD Card}/switch/games/{Game Name}/atmosphere/titles/{Donor TitleID}/RomFs <-- Can be a .bin/.romfs/or a folder
{Root of SD Card}/switch/games/{Game Name}/atmosphere/titles/{Donor TitleID}/ExeFs <-- Must be the extracted folder with main.npdm and the other files in it

or if you prefer the directory-style nomenclature.
{Root of SD Card}
->switch
->games
->{GAME NAME}
->atmosphere
->titles
->{DONOR TITLEID}
->RomFs
->ExeFs​
 
Last edited by ChainedHope,

yakuza8702

Member
Newcomer
Joined
Mar 1, 2017
Messages
16
Trophies
0
Age
25
XP
83
Country
Malaysia
{Root of SD Card}/switch/games/{Game Name}/atmosphere/titles/{Donor TitleID}/RomFs <-- Can be a .bin/.romfs/or a folder
{Root of SD Card}/switch/games/{Game Name}/atmosphere/titles/{Donor TitleID}/ExeFs <-- Must be the extracted folder with main.npdm and the other files in it

or if you prefer the directory-style nomenclature.
{Root of SD Card}
->switch
->games
->{GAME NAME}
->atmosphere
->titles
->{DONOR TITLEID}
->RomFs
->ExeFs​


Thanks for the help are the donor title id in the main.npdm? Cause what ever donor title id i choose it always choose blazblue
 

ChainedHope

Active Member
OP
Newcomer
Joined
Dec 12, 2017
Messages
41
Trophies
0
Age
29
XP
195
Country
United States
Thanks for the help are the donor title id in the main.npdm? Cause what ever donor title id i choose it always choose blazblue

Thats odd. I tested with Fortnite so I know the menu works (fortnite is the third or fourth one down if iirc).
Give me a few to test this new version and I'll upload it. A lot of design changes so I still need to run it through its gambit but it should be up within the next hour. It should fix most of the issues people are having.

(Just a note, this only swaps files. It won't rename files or do anything with NPDM (yet). So in its current state the donor selection is just for keeping track of where files are so that if you say have 2 games that use the same donor it will swap them for you. It will not let you put a game that has been modified for say Fortnite into another title id (yet! I might add this))
 

ReavoEnd

Member
Newcomer
Joined
Jun 17, 2018
Messages
22
Trophies
0
Age
34
XP
173
Country
United States
Thats odd. I tested with Fortnite so I know the menu works (fortnite is the third or fourth one down if iirc).
Give me a few to test this new version and I'll upload it. A lot of design changes so I still need to run it through its gambit but it should be up within the next hour. It should fix most of the issues people are having.

(Just a note, this only swaps files. It won't rename files or do anything with NPDM (yet). So in its current state the donor selection is just for keeping track of where files are so that if you say have 2 games that use the same donor it will swap them for you. It will not let you put a game that has been modified for say Fortnite into another title id (yet! I might add this))

Ahhhh! Your note there explains a lot.

I was under the assumption that this script auto-performed the TitleID swap for the folder name, given that there is a limited selection of "donor" titles. I guess you never said that your script does that, but I don't suppose it was explicitly stated that it doesn't do that, either. The cause for my issues is completely clear, now.
 

ChainedHope

Active Member
OP
Newcomer
Joined
Dec 12, 2017
Messages
41
Trophies
0
Age
29
XP
195
Country
United States
Ahhhh! Your note there explains a lot.

I was under the assumption that this script auto-performed the TitleID swap for the folder name, given that there is a limited selection of "donor" titles. I guess you never said that your script does that, but I don't suppose it was explicitly stated that it doesn't do that, either. The cause for my issues is completely clear, now.

I'm considering adding it. I already have the function in my xci_to_lfs python script in the other forum section. Wouldn't take long to add it into this.

The donors included are just the 13 or so free ones on the tutorial page. Most people aren't overwriting SMO or TLOZ, they are using the free ones. As well, if someone wants to add a donor, they just need to pop the Title and the TitleID into those arrays at the top and use that custom version of the script.
 

ReavoEnd

Member
Newcomer
Joined
Jun 17, 2018
Messages
22
Trophies
0
Age
34
XP
173
Country
United States
I'm considering adding it. I already have the function in my xci_to_lfs python script in the other forum section. Wouldn't take long to add it into this.

The donors included are just the 13 or so free ones on the tutorial page. Most people aren't overwriting SMO or TLOZ, they are using the free ones. As well, if someone wants to add a donor, they just need to pop the Title and the TitleID into those arrays at the top and use that custom version of the script.

Right. It certainly wouldn't be difficult to add to the list of donors.

In that regard, if your script is going to continue to function that way, it would be more straightforward if the script auto-detected which donor title a replacement title is going to use based on its title folder name, then automatically moved the files based on that (instead of giving you a menu for which donor title it needs to be). But yeah I mean, if you're going to add the renaming, why bother eh?

Anyway, don't think I'd properly thanked you. This is a great idea done well, so thanks!
 

ChainedHope

Active Member
OP
Newcomer
Joined
Dec 12, 2017
Messages
41
Trophies
0
Age
29
XP
195
Country
United States
Right. It certainly wouldn't be difficult to add to the list of donors.

In that regard, if your script is going to continue to function that way, it would be more straightforward if the script auto-detected which donor title a replacement title is going to use based on its title folder name, then automatically moved the files based on that (instead of giving you a menu for which donor title it needs to be). But yeah I mean, if you're going to add the renaming, why bother eh?

Anyway, don't think I'd properly thanked you. This is a great idea done well, so thanks!

The idea for the donor selection was so that I could keep track of files in the configuration. But yeah I'm just going to add npdm editing and folder renaming.
 

ChainedHope

Active Member
OP
Newcomer
Joined
Dec 12, 2017
Messages
41
Trophies
0
Age
29
XP
195
Country
United States
V1.0.2 update!
Shouldn't have issues with your config.ini files anymore. Made the code a bit more "readable" and did things "mostly" proper.

I am going to be updating it in V1.0.3 to edit npdm and there will be a file structure change. But version 1.0.3 will probably be the last one.
 

a7mag3ddon

Well-Known Member
Member
Joined
Mar 17, 2013
Messages
194
Trophies
0
Age
53
XP
681
Country
1.0.2 isn't working for me deleted config before I started now when I hit swap titles I get a a screen of errors.

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

seems its trying to move the old game out but of course there isnt anything to move
 

ChainedHope

Active Member
OP
Newcomer
Joined
Dec 12, 2017
Messages
41
Trophies
0
Age
29
XP
195
Country
United States
1.0.2 isn't working for me deleted config before I started now when I hit swap titles I get a a screen of errors.

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

seems its trying to move the old game out but of course there isnt anything to move

Delete the folder from /atmosphere/titles/{DONOR ID}
It expects that folder to not be there and will error out if it sees it so it doesn't remove whats there.

Basically I didn't want to accidentally delete someones game.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BakerMan @ BakerMan: (cocks 12 gauge with virginity-maintaining intent)