Homebrew RELEASE NSP Indexer

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,512
Trophies
2
XP
5,946
Country
United States
i am using nspindexer-master.zip should i be using nspindexer-dev.zip?
i am on Window 10
xampp

When i try the nspindexer-dev.zip i get this error on chrome
php gmp is not installed please install it and refresh page

Yes you want dev. The dev branch has all the latest cool stuff in it. :-)

I'm on windows 10 and have an xampp deployment as well so this should be easy.

For gmp:

You will need to go into c:\xampp\php\php.ini and uncomment (remove the semicolon) the line that says extension=gmp

1651873092948.png


If I recall you might have to do that with a couple more.

If you're still having issues, I downgraded my php version to as closely match the docker version as possible. The docker version was built using the 7.3 lineage so you would want to do the following:

Uninstall xammp and reinstall it but instead of the 8.x version, grab the 7.3.33 version here: https://sourceforge.net/projects/xa...dows-x64-7.3.33-0-VC15-installer.exe/download
here's the top-level if that link doesn't work: https://sourceforge.net/projects/xampp/files/XAMPP Windows/7.3.33/
 

WiiuGold

Well-Known Member
Member
Joined
Jan 5, 2015
Messages
902
Trophies
0
XP
1,454
Country
United States
Yes you want dev. The dev branch has all the latest cool stuff in it. :-)

I'm on windows 10 and have an xampp deployment as well so this should be easy.

For gmp:

You will need to go into c:\xampp\php\php.ini and uncomment (remove the semicolon) the line that says extension=gmp

View attachment 309010

If I recall you might have to do that with a couple more.

If you're still having issues, I downgraded my php version to as closely match the docker version as possible. The docker version was built using the 7.3 lineage so you would want to do the following:

Uninstall xammp and reinstall it but instead of the 8.x version, grab the 7.3.33 version here: https://sourceforge.net/projects/xampp/files/XAMPP Windows/7.3.33/xampp-windows-x64-7.3.33-0-VC15-installer.exe/download
here's the top-level if that link doesn't work: https://sourceforge.net/projects/xampp/files/XAMPP Windows/7.3.33/
that worked going back to 7.3.33 :)
if you add all your games to it , does it load the icons ? i got to do like 50 at a time to refresh and add more , if you put all at onces icons wont load at all .

does yours load up Demos games?
 
  • Like
Reactions: binkinator

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,512
Trophies
2
XP
5,946
Country
United States
that worked going back to 7.3.33 :)
if you add all your games to it , does it load the icons ? i got to do like 50 at a time to refresh and add more , if you put all at onces icons wont load at all .

does yours load up Demos games?

Cool!

Yeah, I started off downloading 8 and using IIS to serve it up.…

I spent the better part of a weekend beating my head against a wall until I used the Docker deployment as an example.

You might be hitting the timeout. I think it’s 30 or 60 seconds in index.php. Since you’re OK with waiting, try doubling it.

I’ve not tried Demo games…yet.

e: doh! I remember now. Pretty sure it was a memory limitation. I had to bump up the memory size from 256M to 512M in both the config.php AND in the php.ini file (I think you can search for the default of 128 to find the right place to change it.)

F7227D93-B1FE-405B-AFDA-93FDB31B59A5.jpeg
 
Last edited by binkinator,

WiiuGold

Well-Known Member
Member
Joined
Jan 5, 2015
Messages
902
Trophies
0
XP
1,454
Country
United States
Cool!

Yeah, I started off downloading 8 and using IIS to serve it up.…

I spent the better part of a weekend beating my head against a wall until I used the Docker deployment as an example.

You might be hitting the timeout. I think it’s 30 or 60 seconds in index.php. Since you’re OK with waiting, try doubling it.

I’ve not tried Demo games…yet.

e: doh! I remember now. Pretty sure it was a memory limitation. I had to bump up the memory size from 256M to 512M in both the config.php AND in the php.ini file (I think you can search for the default of 128 to find the right place to change it.)

View attachment 309035
thankyou for your help :)
how many harddrives are you using for your switch games? how are they set up in config.php ?
 

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,512
Trophies
2
XP
5,946
Country
United States
thankyou for your help :)
how many harddrives are you using for your switch games? how are they set up in config.php ?

You bet man. glad you’re sorted!

Currently have 3x8Tb main game drives. Formatted to 7.3Tb. They are about 80% full. About time to get another one because I need the extra space to move things around. every day I’m shuffling.

They are on a raspberry pi at the moment so I have them all symlinked as /mnt/switch1 (a-j), /mnt/switch2 (k-r) and /mnt/switch3 (s-z) under my /var/www/html/games directory.

I pull the raw files automatically into an incoming directory on a 4th general purpose drive. when they are done they are renamed with “title id“ standards by switch-library-manager and collected in an outgoing directory. I then have three nut servers that run (one on each drive) that sort all the files once again into tinfoil standards (nsp/nsz, xci,xcz, updates, dlc).

It’s not ideal because my pi is 32 bit and only 4Gb of memory so it’s horribly underpowered and there’s all sorts of tricks I had to pull to make things run at all (hence my journey to move to my more powerful Windows box.) Once on 64 bit Windows and heaps of ram I will redo my chain and want to have everything go through nspindexer as my unified frontend. Still WIP but I’m thinking about taking all 4 drives and turning it into a RAID-5 array so I don’t have to do so much sorting (it’s automated, but still.)

2FF374DC-EBFB-484D-9C01-7A200F680220.png
 
Last edited by binkinator,

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,512
Trophies
2
XP
5,946
Country
United States
How this working ?
Assuming you are asking me? Speed is my only hang up. Other than that it all works really well.

As for the speed…it’s currently arm7l so it works…rather slowly. I get faster speeds downloading from some servers on the Internet! 😛
I’m about to offer a PR for TinWoo that will make it work natively with NSPIndexer at which point I will cut over to my more powerful Windows machine and it will all be much much faster.
 

w4rl0rd

New Member
Newbie
Joined
Sep 4, 2021
Messages
3
Trophies
0
Age
40
XP
34
Country
Germany
Hello

Could anyone help me with the Net Install feature?

When I type in the Switch IP in the Net Install window and click install, nothing happens. Does anyone know wich program I have to open in the Switch?
 

w4rl0rd

New Member
Newbie
Joined
Sep 4, 2021
Messages
3
Trophies
0
Age
40
XP
34
Country
Germany
Hello everyone

Does anyone know how I give nspindexer write permission on an external Harddrive for uploading games to it?

When I start nspindexer it shows up a popup window wich says no write permission to game dir, and the upload button is greyed out.

I hate Windows so much!:rofl2:
 

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,512
Trophies
2
XP
5,946
Country
United States
Hello everyone

Does anyone know how I give nspindexer write permission on an external Harddrive for uploading games to it?

When I start nspindexer it shows up a popup window wich says no write permission to game dir, and the upload button is greyed out.

I hate Windows so much!:rofl2:

1) Open your config.php (there's a template called config_default.php, if you don't have one already) and note the directory you are using for $gameDir
1654429298572.png


2) Go to that directory in File Explorer and right click on that directory and select Properties.
1654429463084.png


3) Go to the Security tab and then click Edit
1654429569589.png


4) Temporarily add a user called Everyone and give that user Full control.

5) You should be able to write to that directory however once something is written go in and check who owns it as that will be the account you will want to give access to instead of Everybody.

6) Once you've added the appropriate user you can remove Everybody/Full Control.

Note:
You might have to click Advanced in order to change ownership as well. This could vary a little depending upon how you set up your PC and where you have the directory, etc., etc. You'll have to fiddle with it.

1654429952373.png
 

Attachments

  • 1654429802066.png
    1654429802066.png
    50.1 KB · Views: 33
  • 1654429854863.png
    1654429854863.png
    50.1 KB · Views: 30

Putcharles

New Member
Newbie
Joined
Apr 15, 2021
Messages
3
Trophies
0
Age
36
XP
148
Country
Brazil
Hey, thanks for this great tool!

I've built a docker container using your dev branch and it kinda works, but it never shows all files. It only lists the last 12 games (descending), although I can list all files for 100 different games in the docker container CLI.

I also increased PHP memory limit and deleted caches but it didn't work.

By the way, I'm using Switch Library Manager as well.
 
Last edited by Putcharles,

erikas

Well-Known Member
Member
Joined
Mar 28, 2015
Messages
371
Trophies
0
Age
28
XP
1,950
Country
After a long process of scripting file renames, i managed to set it up only to discover that it uses tinfoil as a source for metadata. The reason this is a problem because i have also found that some of the titles on tinfoil database are missing. This means that nspindexer won't load at all and give a generic error in the logs. I managed to track down which specific games were causing the issue, but now i have to keep them in a separate directory. Could we get some way to add your own sources? Even just as a json file. I might script it myself if i have time.
 
  • Like
Reactions: binkinator
General chit-chat
Help Users
  • Skelletonike @ Skelletonike:
    It's great <3
  • AncientBoi @ AncientBoi:
    LoL. No. good bye
  • Skelletonike @ Skelletonike:
    Fried tripas and fries <3
  • K3N1 @ K3N1:
    My power just randomly went out and it's not even raining out lol
  • H @ hecker_isaac:
    morning peeps
  • coolax @ coolax:
    hey guys anyone can help me for LOZ : TOTK ? im trying to install theses 60fps file but I don't understand where i'm suppose to paste them. ? anyone kno ?
  • K3N1 @ K3N1:
    Your mom's spaghetti
  • Psionic Roshambo @ Psionic Roshambo:
    Her armpits sweaty already
  • K3N1 @ K3N1:
    On the surface
  • Psionic Roshambo @ Psionic Roshambo:
    Flies crawling and pizza stained already
  • K3N1 @ K3N1:
    My noodle has vomit on it already
  • Psionic Roshambo @ Psionic Roshambo:
    Monica's dress stained already
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, Bill Clinton no!
    +1
  • SylverReZ @ SylverReZ:
    Lmao
    +1
  • Sonic Angel Knight @ Sonic Angel Knight:
    Mama Mia spaghetti :P
    +1
  • DJPlace @ DJPlace:
    don't forget the meatballs
    +1
  • Sonic Angel Knight @ Sonic Angel Knight:
    Mama mia wouldn't forget meatballs in her spaghetti. :P
  • Sonic Angel Knight @ Sonic Angel Knight:
    Speaking of meatballs, what's the deal with meatball sandwich? How can people eat those? It's ROUND. Trying to bite those in a sandwich is a challenge. It's easier to eat a burger stacked with toppings. :ninja:
  • idcwhat3v3r @ idcwhat3v3r:
    here's my cup of care
  • idcwhat3v3r @ idcwhat3v3r:
    oh look, IT'S FUCKING EMPTY.
  • K3N1 @ K3N1:
    Seems familiar
  • Psionic Roshambo @ Psionic Roshambo:
    Spaghetti noodles are straight until you get them hot and wet too lol
    Psionic Roshambo @ Psionic Roshambo: Spaghetti noodles are straight until you get them hot and wet too lol