Tesla - The Nintendo Switch Overlay Menu

fhwyjbd.png

Hey all.
I'd like to introduce to you, Tesla: My answer to the growing need for proper ingame front ends for sysmodules.


What is this?

  • Tesla consists of three individual parts. nx-ovlloader, the Tesla menu and libtesla.
    • nx-ovlloader is basically nx-hbloader ported to run as a sysmodule. It runs in the background and loads overlay NROs (.ovl files) given to it.
    • Tesla Menu is the equivalent to the hbmenu. It's the initial thing loaded by nx-ovlloader and acts as a hub for you to select all other overlays.
    • libtesla is where it becomes interesting for developers. It's an easy to use library that handles layer creation, UI drawing and all the overlay UX. It makes it very easy to create a new overlay for anything
  • A frontend for sysmodules that before required either a homebrew or a config file to change settings or used sounds or the LED to give the user feedback.

What is this not?

  • A tool that lets you create overlays that are always visible. Overlays can get unloaded way to easily for this.
  • An excuse to port absolutely everything to a overlay. Nobody's going to need a title manager overlay. If you consider making a overlay, keep it simple. You don't have a whole lot of memory to work with.


How do I use this?

First of all, download the latest release of nx-ovlloader and the Tesla Menu from the GitHub Release page and extract it onto your SD card.
After a reboot, hold down L and DPad Down and push on the right joy stick to bring up Tesla at any time. Navigation works as you imagine it.
Similar to normal homebrews, you place your .ovl files in the /switch/.overlays folder on your SD card.


Screenshots

W8yN2M6.jpg

fdfWAXw.jpg


Notice


Make sure to use the latest Atmosphere release when trying this as older versions ( as the one SX OS uses too ) probably won't have enough memory available for this to run. Overlays do take a lot of space so nx-ovlloader reserves 6MB. 2MB for framebuffers and around 4MB for overlay developers to use in their overlays.


GitHub

nx-ovlloader: https://github.com/WerWolv/nx-ovlloader
Tesla Menu: https://github.com/WerWolv/Tesla-Menu


For Developers

libtesla: https://github.com/WerWolv/libtesla
Tesla build template: https://github.com/WerWolv/Tesla-Template


Download

nx-ovlloader: https://github.com/WerWolv/nx-ovlloader/releases/latest
Tesla-Menu: https://github.com/WerWolv/Tesla-Menu/releases/latest
EdiZon Overlay: https://download.werwolv.net/EdiZonOverlay.zip ( As a little preview for what this is capable of and what EdiZon 4.0.0 will have even more of soon :) )

Special thank especially to averne without him, this would not have been possible!


Obligatory Donation links

GitHub Sponsors https://github.com/sponsors/WerWolv
PayPal https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KP7XRJAND9KWU&source=url

Patreon https://www.patreon.com/werwolv


Thanks a lot and have fun using and extending it :)
 
Last edited by WerWolv,
So by implementing this to tmemClose()
Diff:
         if (t->src_addr != NULL) {
+            MemoryInfo m = {0};
+            u32 p = 0;
+            while (m.perm == Perm_None) {
+                svcQueryMemory(&m, &p, (u64)(t->src_addr));
+                svcSleepThread(1000000);
+            }
             __libnx_free(t->src_addr);
         }
I have solved issue without using shenanigans I have implemented into libtesla. Though it will require PR to libnx and then manually compiling libnx to get it right until new libnx release will come. I am trying to see if I can push in this form into main libnx fork or I need to change something, for now my libnx fork is here:
https://github.com/masagrator/libnx/tree/patch-1

Thanks to SciresM for proposing idea to solve this.
 
Last edited by masagrator,
if your overlays are not showing at all you must look if your tesla is the latest and your Tesla-Menu (ovlmenu) https://github.com/WerWolv/Tesla-Menu are up to date.
I made sure to delete everything and start from scratch, and it is still not working. Not sure what the problem could be. I even tried with three different controllers and I know they have functioning L, DPad down, and right joystick click buttons.
 
I added the PR to libnx and built and installed libnx then rebuilt everything and installed.
Did testing. it still crashing in pokemon violet.
 
  • Love
Reactions: impeeza
I added the PR to libnx and built and installed libnx then rebuilt everything and installed.
Did testing. it still crashing in pokemon violet.
hmm...I used 20+ times in pokemon scarlet and many times in other games didn't crash for me, docked mode
 
So I figured out my problem (the button combo was different and I didn't know, lol) but now when I try to use sys-clk the console crashes and gives me "Error Code: 2001-0123 (0xf601)." Is sys-clk not updated to work on the newest version of tesla or something?
 
  • Haha
Reactions: impeeza
I added the PR to libnx and built and installed libnx then rebuilt everything and installed.
Did testing. it still crashing in pokemon violet.
Oki. So when pr become merge anither night building all my overlays 😝😂for now primary console still on 15.0.1
 
I added the PR to libnx and built and installed libnx then rebuilt everything and installed.
Did testing. it still crashing in pokemon violet.
Checked your report and video on github and your issue is unrelated to my PR.

First of all you're only hiding overlay while this bug happens exclusively when exiting overlay.
And unlike in this bug, you got 0x2A8 (Prefetch abort) instead of 0x4A8 (Data Abort).

For this even fix with changing sleep to 50ms wouldn't help as it's never executed.
 
  • Like
  • Wow
Reactions: ELY_M and impeeza
I admit that I am lazy about closing overlay all way.



yes, simply hiding and unhiding overlay do cause crashes........

I have to fully exit the overlay by pressing the B button 2 or 3 times.
I did few tests this way and I have not got any crashes if I exit fully each time.
 
So by implementing this to tmemClose()
Diff:
         if (t->src_addr != NULL) {
+            MemoryInfo m = {0};
+            u32 p = 0;
+            while (m.perm == Perm_None) {
+                svcQueryMemory(&m, &p, (u64)(t->src_addr));
+                svcSleepThread(1000000);
+            }
             __libnx_free(t->src_addr);
         }
I have solved issue without using shenanigans I have implemented into libtesla. Though it will require PR to libnx and then manually compiling libnx to get it right until new libnx release will come. I am trying to see if I can push in this form into main libnx fork or I need to change something, for now my libnx fork is here:
https://github.com/masagrator/libnx/tree/patch-1

Thanks to SciresM for proposing idea to solve this.
So this needs to get pushed to libnx, then libtesla and then to all the different overlays?
Is that the correct path?

Still waiting to upgrade to FW 16.
 
not all games has cheats, try different games or use edizon se and see if it could detect any cheats
 

Site & Scene News

Popular threads in this forum