Homebrew RELEASE NSP Indexer

proconsule54

Well-Known Member
OP
Member
Joined
Nov 5, 2019
Messages
756
Trophies
1
Age
43
XP
2,742
Country
Italy
You must provide prod.keys and set the path of the file in config.php (check at the end of config.php) if the file is valid and readable by php it will show a new button with rominfo on the page. It works on nsp nsz xci and xcz(xcz not tested but should work)
The decryption is intended to get extended info of the file (thumnail, human readable version, sdk used, title key…)

with the dev branch it will also check if nca header is valid (checking rsa2048 signature)
 
Last edited by proconsule54,

proconsule54

Well-Known Member
OP
Member
Joined
Nov 5, 2019
Messages
756
Trophies
1
Age
43
XP
2,742
Country
Italy
Added Min Required OS Version into Rominfo (very usefull to check what os is nedded by the file)
and backend code for Update files extraction from XCI file (if any update partition if found)

All on DEV branch
Enjoy
 

proconsule54

Well-Known Member
OP
Member
Joined
Nov 5, 2019
Messages
756
Trophies
1
Age
43
XP
2,742
Country
Italy
Here is a sample of new Language selection in Rom Info
sword-japanese.jpg
sword-spanish.jpg
 
  • Like
Reactions: Ejec

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,157
Country
United States
Got DBI and Tinfoil both able to see my NSP Indexer instance.
(had to manually insert ?tinfoil=true in the tinfoil config file as there is no question mark in the Tinfoil ui...might be doing something wrong but it works.)


I'm now going through and adding my dumps did about a dozen with no issues. I got bold and started throwing in more and now I'm getting these errors in the apache logs...looks like title IDs but those aren't the IDs of any dumps I own...ideas on where this is coming from?

[Wed Sep 08 15:28:27.675759 2021] [php7:notice] [pid 6312] [client 192.168.4.28:58913] PHP Notice: Undefined index: 010025C00D410000 in /var/www/html/index.php on line 153, referer: http://192.168.4.30/
[Wed Sep 08 15:28:27.675971 2021] [php7:notice] [pid 6312] [client 192.168.4.28:58913] PHP Notice: Undefined index: 010025C00D410000 in /var/www/html/index.php on line 163, referer: http://192.168.4.30/
[Wed Sep 08 15:28:27.676033 2021] [php7:notice] [pid 6312] [client 192.168.4.28:58913] PHP Notice: Undefined index: 01000FA010340000 in /var/www/html/index.php on line 153, referer: http://192.168.4.30/
[Wed Sep 08 15:28:27.676103 2021] [php7:notice] [pid 6312] [client 192.168.4.28:58913] PHP Notice: Undefined index: 010046400F310000 in /var/www/html/index.php on line 153, referer: http://192.168.4.30/
[Wed Sep 08 15:28:27.676163 2021] [php7:notice] [pid 6312] [client 192.168.4.28:58913] PHP Notice: Undefined index: 010049F00EC30000 in /var/www/html/index.php on line 153, referer: http://192.168.4.30/
[Wed Sep 08 15:28:27.676213 2021] [php7:notice] [pid 6312] [client 192.168.4.28:58913] PHP Notice: Undefined index: 010003F00C5C0000 in /var/www/html/index.php on line 153, referer: http://192.168.4.30/
[Wed Sep 08 15:28:27.676361 2021] [php7:notice] [pid 6312] [client 192.168.4.28:58913] PHP Notice: Undefined index: 01003BC0000A0000 in /var/www/html/index.php on line 153, referer: http://192.168.4.30/
[Wed Sep 08 15:28:27.676468 2021] [php7:notice] [pid 6312] [client 192.168.4.28:58913] PHP Notice: Undefined index: 0100024008310000 in /var/www/html/index.php on line 153, referer: http://192.168.4.30/
[Wed Sep 08 15:28:27.676580 2021] [php7:notice] [pid 6312] [client 192.168.4.28:58913] PHP Notice: Undefined index: 01002B400B590000 in /var/www/html/index.php on line 153, referer: http://192.168.4.30/
[Wed Sep 08 15:28:27.676657 2021] [php7:notice] [pid 6312] [client 192.168.4.28:58913] PHP Notice: Undefined index: 010016A00AEC0000 in /var/www/html/index.php on line 153, referer: http://192.168.4.30/
[Wed Sep 08 15:28:27.676882 2021] [php7:notice] [pid 6312] [client 192.168.4.28:58913] PHP Notice: Undefined index: 010024B00F9D0000 in /var/www/html/index.php on line 153, referer: http://192.168.4.30/
[Wed Sep 08 15:28:27.676948 2021] [php7:notice] [pid 6312] [client 192.168.4.28:58913] PHP Notice: Undefined index: 010009900E170000 in /var/www/html/index.php on line 153, referer: http://192.168.4.30/
[Wed Sep 08 15:28:27.677065 2021] [php7:notice] [pid 6312] [client 192.168.4.28:58913] PHP Notice: Undefined index: 010002C00C270000 in /var/www/html/index.php on line 153, referer: http://192.168.4.30/
 

proconsule54

Well-Known Member
OP
Member
Joined
Nov 5, 2019
Messages
756
Trophies
1
Age
43
XP
2,742
Country
Italy
Edited:

Looking at the line of error index.php line 153 it seems an update without the basegame.

it is a bug that i'll fix, so you dont have error log full of shit

Edit:
Fixed in dev branch!

Thanks for reporting it!
 
Last edited by proconsule54,

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,157
Country
United States
Edited:

Looking at the line of error index.php line 153 it seems an update without the basegame.

it is a bug that i'll fix, so you dont have error log full of shit

Edit:
Fixed in dev branch!

Thanks for reporting it!

Yes, I had indeed moved some updates without a base .nsp into the directory. That fixed it. Thank you very much!

Next I noticed I was getting this notice too:

[Wed Sep 08 21:49:04.245290 2021] [php7:notice] [pid 10982] [client 192.168.4.28:56640] PHP Notice: Trying to get property 'cnmt' of non-object in /var/www/html/lib/NSP.php on line 160, referer: http://192.168.4.30/

Took a look at the code and it looks like line 160 is where dlcs are checked. Sure enough...I had a dlc file without a base .nsp.

I did the same quick and dirty for dlc that you did for update files and this appears to be working now too.


$baseTitleId = getBaseTitleId($titleId);
// add DLC only if the Base TitleId for it exists
+ if(array_key_exists($baseTitleId,$titles)){
if ($titles[$baseTitleId]) {
$titles[$baseTitleId]['dlc'][$titleId] = array(
"path" => $file
);
}
}
-
+ }
}
 

proconsule54

Well-Known Member
OP
Member
Joined
Nov 5, 2019
Messages
756
Trophies
1
Age
43
XP
2,742
Country
Italy
GREAT UPDATE (for me is great)
File extraction from nca, all on the fly. just in 1 click.

expect great memory usage on browser for big nca with many micro files but it do it!
on dev branch.
Enjoy!
 
  • Like
Reactions: binkinator

proconsule54

Well-Known Member
OP
Member
Joined
Nov 5, 2019
Messages
756
Trophies
1
Age
43
XP
2,742
Country
Italy
Example of file extraction from an NSP
extract-sample1.jpg

First get the Rom Info from ROM Info button

extract-sample2.jpg

Use Show Contents button of the selected nca (i used the biggest nca that have more intresting files)
extract-sample3.jpg

I get Demo1.mp4 and

extract-sample4.jpg


it plays fine in VLC

Enjoy! (maybe the easier way to extract a content from nsp in the scene!)
 
Last edited by proconsule54,

malvado24

Active Member
Newcomer
Joined
Oct 11, 2018
Messages
25
Trophies
0
Age
54
XP
323
Country
United States
proconsule54, everything was working fine in v0.4, I just added new games and it stopped working!

Got error 'PHP message: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /web/index.php on line 235PHP message: PHP Fatal error: Uncaught Error: Call to a member function format() on bool in /web/index.php:242\nStack trace:\n#0 /web/index.php(327): outputTitles(false)\n#1 {main}\n thrown in /web/index.php on line 242', referer:...
 
  • Like
Reactions: proconsule54

nine0nine

Well-Known Member
Member
Joined
Jan 21, 2006
Messages
154
Trophies
1
XP
1,748
Country
Albania
nice to see an indexer for the switch, I have fond memories of using one in the GBA days and discovering a few games that I otherwise wouldnt have tried.

I know it would probably be a ton of extra work, but could you add a screenshot or two for each entry?
 
  • Like
Reactions: proconsule54

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BigOnYa @ BigOnYa: New ringworm std going round in the USA, is psi patient 0, news at 11. +1