This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
sebastienful's profile picture

netutil

Started by sebastienful, 12 October 2015 - 03:15 PM
sebastienful #1
Posted 12 October 2015 - 05:15 PM
netutil is a simple tool for casual ComputerCraft users to execute network based commands easily. It currently only supports Wireless Modems, but Wired Modem support is planned. At the moment in can manage ports and send standard Rednet messages through basic commands.

It is recommended you place 'netutil' in the root ('/'), or your own directory/folder for programs. (e.g. 'mv netutil /myprograms/netutil')

Sorry if it's a bit buggy, it's my first attempt at a ComputerCraft program.

Commands:
Spoiler

netutil commands:
 
- port             View the selected port's status
- ports            View all open ports
- openport(s)      Open the selected port(s)
- closeport(s)     Closes the selected port(s)
- closeall         Close all ports
- message          Send a message on a selected port
- help             Display this help information
- commands         Display this command list
- about            Learn about this program

Download at: http://turtlescripts.../gjdhyn-netutil or with
pastebin get 7UjNRiG0 netutil
Edited on 13 October 2015 - 05:49 AM
Lyqyd #2
Posted 12 October 2015 - 06:13 PM
You forgot to post the code. Please edit your post to include it or we will have to lock the topic.
Creator #3
Posted 12 October 2015 - 06:18 PM
Even without code, it already looks promising.
Basically, the only thing this allows you to do is to send messages?
sebastienful #4
Posted 12 October 2015 - 09:13 PM
You forgot to post the code. Please edit your post to include it or we will have to lock the topic.

Sorry, it isn't attaching for some reason, had to link to TurtleScripts.

Even without code, it already looks promising.
Basically, the only thing this allows you to do is to send messages?

It's my first program, and not entirely done at that. It lets people who aren't lua-savvy work with their networks by effectively turning most of the Modem and Rednet APIs into simple commands instead. I'm adding better rednet support and support to let you look at your wired connections at the moment. I'm sorry if my first attempt isn't an OS, File Explorer, FTP Client or some Archive utility.
Edited on 13 October 2015 - 05:45 AM
H4X0RZ #5
Posted 13 October 2015 - 06:44 PM
Nobody expects from you that your first program is an OS :P/> ComputerCraft was made for learning after all, I guess.
KingofGamesYami #6
Posted 13 October 2015 - 08:07 PM
I'm sorry if my first attempt isn't an OS, File Explorer, FTP Client or some Archive utility.

Don't be. All of those things are much too advanced for a first attempt: Many people try to start out with an OS, but it doesn't work well at all. In my experience, writing APIs is much better for learning.