Hacking COMPLETED Hello World - a little different one -

SocraticBliss

Well-Known Member
Member
Joined
Jun 3, 2017
Messages
130
Trophies
0
Age
36
XP
273
Country
United States
no can be done do a search there are instructions posted

Hey Sean, I noticed that you were able to run node.js via the Linux sub in Windows 10, mine keeps complaining about needing to run it as a root user, so I tried to sudo it, but that complained that node doesn't exist...

How did you fix this?

I'd like to be able to run it without needing to output to a log file...
 
D

Deleted User

Guest
Hey Sean, I noticed that you were able to run node.js via the Linux sub in Windows 10, mine keeps complaining about needing to run it as a root user, so I tried to sudo it, but that complained that node doesn't exist...

How did you fix this?

I'd like to be able to run it without needing to output to a log file...
Did you install via apt? It should install node globally, but in case the windows ubuntu bash shell is doing something funky, just do "apt-get remove nodejs" then "su" type in password then "apt-get install nodejs"

As a side note, I'd really recommend setting up a Linux VM using VirtualBox to work with the stuff in. It'll remove a lot of the headache that comes with trying to set it all up in windows.
 
Last edited by ,
D

Deleted User

Guest
Did you install via apt? It should install node globally, but in case the windows ubuntu bash shell is doing something funky, just do "apt-get remove nodejs" then "su" type in password then "apt-get install nodejs"

As a side note, I'd really recommend setting up a Linux VM using VirtualBox to work with the stuff in. It'll remove a lot of the headache that comes with trying to set it all up in windows.

It took me less than 10mins to setup my linux subsystem following the guide here
 
D

Deleted User

Guest
It took me less than 10mins to setup my linux subsystem following the guide here
Not about setup time. You just get some goofy stuff with the windows bash still. Line endings can be screwed up if going between the windows filesystem and linux
 

SocraticBliss

Well-Known Member
Member
Joined
Jun 3, 2017
Messages
130
Trophies
0
Age
36
XP
273
Country
United States
Not about setup time. You just get some goofy stuff with the windows bash still. Line endings can be screwed up if going between the windows filesystem and linux

I know what you mean, I have just stuck with utilizing notepad++ and having the line endings set to Unix default :)

That or getting back into utilizing vi, but it's been awhile...
 

Nezztor

Well-Known Member
Member
Joined
Nov 8, 2016
Messages
488
Trophies
0
XP
1,338
Country
Mexico
Maybe someone can test this new hello world, it comes from misson20000
 

Attachments

  • test_helloworld.rar
    18.8 KB · Views: 228

TeamGameRevolution

Member
Newcomer
Joined
Aug 27, 2017
Messages
11
Trophies
0
Age
20
XP
63
Country
Germany
Maybe someone can test this new hello world, it comes from misson20000
Runs on my Switch without crashing, looking into writing a little myself!

Are there any docs on how to print stuff onto the Switch screen yet?

EDIT: Can't post the image here (dunno why GBATemp won't let me), but in the Debug log, it says "Hello, World!"
 
Last edited by TeamGameRevolution,
  • Like
Reactions: Nezztor

xianbaby

Member
Newcomer
Joined
Oct 23, 2017
Messages
5
Trophies
0
Age
28
XP
44
Country
United States
Are there any docs on how to print stuff onto the Switch screen yet?
I don't think there is any way to easily do that with the current version of libtransistor. However, I just looked into it for the very first time last night so correct me if I'm wrong (which I have a strong feeling I am) but I think there does exist an API for nv, it, and get started you can look into these resources, in addition to any existing Tegra documentation, (which seems sparse). I can't post links yet but take a look at these:

1. Look up NV_Services on SwitchBrew for Switch NV services documented.
2. In libtransistor, there is libtransistor/test/test_nv.c which appears to be a Switch NV services test using libtransitor. It looks like this could be used as a base, HOWEVER, it begins with a 28 hour sleep, so maybe they didn't intend on people running this on a real Switch yet. But honestly, the fact that it starts with a 28 hour sleep (and the fact that I very am new to all of this so my thoughts aren't worth much), I wouldn't run test_nv.c on a real switch, lol

EDIT: There also exists libnx with devkitPRO, which seems like a competing library and toolchain, that you could look into, too. It has a switch/gfx/gfx.h header whicch I am guessing implements nv on some level
 
Last edited by xianbaby,
D

Deleted User

Guest
teamgamerevolution do you just place this nro file in nros? also aqua do i need to input a command to start sdbcore? or just edit config.json with that entry? When i try to load nro i get same error as before on the switch just keep trying?
 

xianbaby

Member
Newcomer
Joined
Oct 23, 2017
Messages
5
Trophies
0
Age
28
XP
44
Country
United States
teamgamerevolution do you just place this nro file in nros? also aqua do i need to input a command to start sdbcore? or just edit config.json with that entry? When i try to load nro i get same error as before on the switch just keep trying?

I had little success with the loadNro.js script... I was possibly using it incorrectly but it kept complaining about my Nro's header. I used the runnro-command branch instead. You can get it by running the git command FoxofGrey posted. Then you can load the NRO using runnro. I think editing the config.json should be enough. It still takes a few tries.
 

adrifcastr

Well-Known Member
OP
Member
Joined
Sep 12, 2016
Messages
2,038
Trophies
0
XP
1,947
Country
Germany
teamgamerevolution do you just place this nro file in nros? also aqua do i need to input a command to start sdbcore? or just edit config.json with that entry? When i try to load nro i get same error as before on the switch just keep trying?
I had little success with the loadNro.js script... I was possibly using it incorrectly but it kept complaining about my Nro's header. I used the runnro-command branch instead. You can get it by running the git command FoxofGrey posted. Then you can load the NRO using runnro. I think editing the config.json should be enough. It still takes a few tries.
DONT EDIT THE JSON. This produces erros/bugs, Deaken said to simply run the command "enable sdbcore" that should do the job
 
D

Deleted User

Guest
If i write "Hello word" on my switch, can i play Zelda BOTW backup?
I´m not sure if you are joking or sincere here.
To play Switch back ups we will need kernel access. This is something which may or may not take a long time.
Maybe even Years.
 
  • Like
Reactions: Edgy_Edge
D

Deleted User

Guest
THANKS SO MUCH EVERYONE THAT WORKED runro command works perfecto also i didn't seem to have issue edit json.cfg
 

Edgy_Edge

Well-Known Member
Member
Joined
Apr 2, 2017
Messages
186
Trophies
0
XP
313
Country
Uganda
I´m not sure if you are joking or sincere here.
To play Switch back ups we will need kernel access. This is something which may or may not take a long time.
Maybe even Years.
Thanks for reply! I'm not familiar with hacking... After doing Soundhax on 3DS I could play all games, so I thought this is something similar. Until the proper HBL switch is useless piece of garbage)
 
D

Deleted User

Guest
Thanks for reply! I'm not familiar with hacking... After doing Soundhax on 3DS I could play all games, so I thought this is something similar. Until the proper HBL switch is useless piece of garbage)
Well, there is a lot going on behind the Switch Homebrew Scene. It wouldn´t surprise me if we get an basic Nes/SNES Emulator port in the next 6 Months.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Maximumbeans @ Maximumbeans: butte