Homebrew Discussion Simple ReadOnly Telnet client for the switch.

jfmherokiller

Well-Known Member
OP
Newcomer
Joined
Jan 6, 2017
Messages
51
Trophies
0
Age
28
XP
236
Country
United States
What I have been attempting for the past few hours has been a kind of basic telnet client so users can watch "towel.blinkenlights.nl" on their switch.

In order to avoid reinventing the wheel I attempted to use the telnet source code found here https://l3net.wordpress.com/projects/simpletelnet-project/

My current version of the stelnet.c file can be found in this gist https://gist.github.com/jfmherokiller/53279e9251b5dd0c463ec8028df7192e

Source of animation http://www.asciimation.co.nz/

I believe I made some kind of progress by applying the nxlink example code. however I seem to have hit an issue im not sure how to go about fixing.

The issue seems to be "Select. Error: Socket operation on non-socket".

This error seems to crash the console as well which makes testing it tedious because i must reenter rcmmode on my console every time.

If anyone has any helpful input please respond because my googlefu isnt turning up any reliable results.

~~Update~~

I got it working and the latest version of the code is at the gist link.

~~update~~

included the cmake files i used to compile the code and attached the nro to this post.

I do not have a pretty icon or anything for it since this was meant to be a one off kind of thing to test switch homebrew and my coding skills.

~~update~~
feel free to use this code as a kind of example for working sockets on libnx

~~update~~

File loading portion completed.
now to make use of it put a telnet.conf file in the /switch folder

the format of the file is
Code:
<server hostname here>
<port here>
 

Attachments

  • stelenet.zip
    95.9 KB · Views: 137
  • stelnet_file_load_edition.zip
    108 KB · Views: 172
Last edited by jfmherokiller,

jfmherokiller

Well-Known Member
OP
Newcomer
Joined
Jan 6, 2017
Messages
51
Trophies
0
Age
28
XP
236
Country
United States
I succeeded in a kind of proof of concept
DjNo7bHXgAEoOY-.jpg

Its slow and doesnt support vt52 codes yet but ill see if i can get that working in the next version of the gist
 
  • Like
Reactions: Brawl345

jfmherokiller

Well-Known Member
OP
Newcomer
Joined
Jan 6, 2017
Messages
51
Trophies
0
Age
28
XP
236
Country
United States
I think its technically complete now.
Only remaining issue is that im unable to figure out how to handle the vt100 codes the server sends. so you see the escape codes on the screen.

I would kind of like to post the nro for people to play with but im not sure if i can post it here.

But I think ill update the gist to show what i used to compile it so others can possibly do it themeselves.
 
Last edited by jfmherokiller,

Type_O_Dev

Developer
Developer
Joined
Dec 12, 2017
Messages
683
Trophies
0
XP
1,472
Country
United States
I think its technically complete now.
Only remaining issue is that im unable to figure out how to handle the vt100 codes the server sends. so you see the escape codes on the screen.

I would kind of like to post the nro for people to play with but im not sure if i can post it here.

But I think ill update the gist to show what i used to compile it so others can possibly do it themeselves.
you should be able to post as it doesnt contain any copyrighted material. if you report you OP and ask to be a release the mods will fix. Great work btw
It would be cool if you include or link the star wars asci movie
 

jfmherokiller

Well-Known Member
OP
Newcomer
Joined
Jan 6, 2017
Messages
51
Trophies
0
Age
28
XP
236
Country
United States
you should be able to post as it doesnt contain any copyrighted material. if you report you OP and ask to be a release the mods will fix. Great work btw
It would be cool if you include or link the star wars asci movie
linked in the original post and give me a short while to get the nro and ill also attach it to the main post
 
  • Like
Reactions: Type_O_Dev

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder if that was the point of game streaming
  • Psionic Roshambo @ Psionic Roshambo:
    But it's a dead end
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, people who cant download it can still play the game
  • BigOnYa @ BigOnYa:
    If your internet speeds are fast enough. Streaming 4k takes alot. I used to only have 20mb sec, and 4k struggled. Now I have 300mb sec and 4k plays fine.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, i only have like 1 or 2 mb sec
  • BigOnYa @ BigOnYa:
    Did you feed the hamster in your internet router? It prob died and is running slow now.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, why did you start saying my pc has a hamster in the first place?
    +1
  • BigOnYa @ BigOnYa:
    Its actua!ly just a old joke, meaning its slow. Was just kidding around with you.
    +1
  • BigOnYa @ BigOnYa:
    I bet @AncientBoi has some hamsters hidden somewhere tho....
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I think Game streaming should work like this.... Local Hardware able the run the game fine, game engine and common assets stored locally, all FMV and music and textures could be streaming
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Some temporary storage
  • Xdqwerty @ Xdqwerty:
    also @BigOnYa im making some progress on my gdevelop project, implemented various mechanics
  • Psionic Roshambo @ Psionic Roshambo:
    They went all in on streaming, should have been more of a hybrid approach
    +1
  • BigOnYa @ BigOnYa:
    Or free government supplied high speed internet be nice also. Like Obama care. Xdqwerty that's cool, its time consuming but rewarding once done or playable, to see what you've made from scratch. Animations take forever, but worth it.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, although the bullets are a bit buggy
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Not to mention this would be a massive pain to pirate
  • Xdqwerty @ Xdqwerty:
    @BigOnYa,
    and the visual aspect of the game is quite crude (the sprite that looks best is that of the protagonist just because he is a stickman with sunglasses)
    +1
  • BigOnYa @ BigOnYa:
    There is a bullets behaviour you assign to your character, that makes the code easier, under "behaviours"
  • Xdqwerty @ Xdqwerty:
    i meant that when the character is pointing to the right, the bullets spawn where they should, but when he is on the right, they move to the right but the spawn point is incorrect
  • BigOnYa @ BigOnYa:
    Itch.io has lots of free assets also. Under the bullets behavior tab, there is a "rotate bullets" option, can try that. Or in the code can try
    - fire bullet Player.X(PlayerDirection)
  • Xdqwerty @ Xdqwerty:
    im taking a break for today anyway
    +1
  • BigOnYa @ BigOnYa:
    YEa gotta after a while, looking at code for long periods will bug your eyes.
    +1
  • BigOnYa @ BigOnYa:
    That's cool tho, I'm proud of you going back to it, not giving up. It is difficult at first to learn, but fun once you get the hang of it. I think I've watched every tutorial video there is, but I still struggle sometimes to get stuff to work right. But gotta keep trying dif things, and eventually you will get it right.
    +1
    BigOnYa @ BigOnYa: That's cool tho, I'm proud of you going back to it, not giving up. It is difficult at first to... +1