Homebrew RELEASE RandPlayNX, a cute little tool to help you random choose your game to play

mathew77

Lovin' life.
OP
Member
Joined
Jan 19, 2019
Messages
1,230
Trophies
1
Age
47
XP
3,818
Country
Kazakhstan
Quite a some time ago (last year, actually) I asked you guys about how to play a random game from the installed Switch game library. Thank you for your support.

So today, please let me present you a small tool to help you choose a random game to play. I am extremely embarrassed, because it is my first program ever. ^^
Don't know how to run titles via homebrew, err, I mean, the process of choosing the game must be more exciting, so we can do it manually. (:

Github link: https://github.com/JrRadiant/RandPlayNX

randnxplay_0.0.7.jpg

How to use the app:
  • First of all, count all your games at your Switch library. You can do it faster by counting lines at the All Games screen first, then multiple it by 6, adding the additional X<6 games if needed.
  • So, you have 128 games installed for example. (No more than 3000 games, please. ^^)
  • Launch the app, press A.
  • Enter the total amount of your games (128).
  • Maroon is the number of horizontal lines to skip at All Games screen,
  • Yellow number is the number of the actual game to play on the next row.
  • Press B and run your game that was chosen by a Random God! ^_^ (Well, forsooth, it's a rand() seeded by your local timestamp.)

Please write your comments out, need them eagerly!..
 

Attachments

  • RandPlayNX-0.0.9.zip
    811.5 KB · Views: 176
Last edited by mathew77,

TotalJustice

Well-Known Member
Member
Joined
Jan 28, 2017
Messages
446
Trophies
0
Age
26
XP
2,694
Country
United Kingdom
Nice one. If you want to list the games instead of giving a random number, you can use ns functions. Use nsListApplicationRecord() to list all the games into an array of records, then you can use nsGetApplicationControlData() to get useful info about each game such as the name, author, icon etc.

Also to launch a game, you can use appletRequestLaunchApplication() and just pass the app-id of the game.

All these functions are in libnx, you can check the header file for more info on each function.
 

tom2199

Well-Known Member
Member
Joined
Apr 23, 2015
Messages
256
Trophies
0
XP
550
Country
Germany
Nice one. If you want to list the games instead of giving a random number, you can use ns functions. Use nsListApplicationRecord() to list all the games into an array of records, then you can use nsGetApplicationControlData() to get useful info about each game such as the name, author, icon etc.

Also to launch a game, you can use appletRequestLaunchApplication() and just pass the app-id of the game.

All these functions are in libnx, you can check the header file for more info on each function.
That would be a great addition, another one that comes to mind is the ability to filter games, for example just multiplayer games etc. For your first homebrew, very nice! @mathew77
 

GamaPlayer89

New Member
Newbie
Joined
Jul 17, 2024
Messages
1
Trophies
0
Age
34
XP
12
Country
Mexico
Nice one. If you want to list the games instead of giving a random number, you can use ns functions. Use nsListApplicationRecord() to list all the games into an array of records, then you can use nsGetApplicationControlData() to get useful info about each game such as the name, author, icon etc.

Also to launch a game, you can use appletRequestLaunchApplication() and just pass the app-id of the game.

All these functions are in libnx, you can check the header file for more info on each function.
Hello, im interesting in try your instructions, and i almost in there, i use devkit pro ,but when i try to implement nsListApplicationRecord it, always throw rc error 0xe401 , i dont now if its about handler error or unautorized access, can you please help me to find a clue to solve it , thanks
 

TotalJustice

Well-Known Member
Member
Joined
Jan 28, 2017
Messages
446
Trophies
0
Age
26
XP
2,694
Country
United Kingdom
Hello, im interesting in try your instructions, and i almost in there, i use devkit pro ,but when i try to implement nsListApplicationRecord it, always throw rc error 0xe401 , i dont now if its about handler error or unautorized access, can you please help me to find a clue to solve it , thanks
The ns service needs to be initalised before use, this is the case for any service. https://switchbrew.github.io/libnx/ns_8h.html#abcefcfde2e26488d85077940f106e213
 
  • Like
Reactions: mathew77

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: Good night