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
496
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
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
  • TwoSpikedHands @ TwoSpikedHands:
    @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the mail lol
  • I @ I-need-help-with-wup-wiiu:
    i need help with nusspli failed downloads, can someone respond to my thread? pretty please:wub: