5 posts
Posted 30 September 2014 - 01:38 PM
Is there any way to print some text to the server console from a computer?
I wanted to write a program that periodically printed the number of Octuple Compressed Cobblestone in my AE system (I know how to get this number) to the server console (the server is constantly running on my computer, the client usually isn't); but I haven't found any way to do this.
I'm using ComputerCraft 1.63 with OpenPeripherals (Core and Addons) if it matters.
756 posts
Posted 30 September 2014 - 03:53 PM
It's impossible to print to the console for obvious reasons.
A workaround for this could be to use the http api and POST the values to some sort of php script that show the values when accessed with a browser.
Edit: I totally forgot about command blocks for some reasons…
Edited on 30 September 2014 - 02:16 PM
115 posts
Posted 30 September 2014 - 04:07 PM
You can do this if you use the command block API, but it has to be enabled in the CC config, and command blocks must be enabled on the server
Info on the api is here
http://computercraft.info/wiki/Command_Block_(API)using the /say command should do what you want it to
5 posts
Posted 01 October 2014 - 01:27 AM
Thanks, I'll look into the Command Block API.
5 posts
Posted 01 October 2014 - 06:43 AM
I'm actually going to attempt to create my own peripheral that can send chat messages just for the sake of doing something new and interesting.
If that doesn't work out, I'll probably fall back on Command Blocks.
7508 posts
Location
Australia
Posted 01 October 2014 - 08:34 AM
I'm actually going to attempt to create my own peripheral that can send chat messages just for the sake of doing something new and interesting.
not really something new, MiscPeripherals, Computronics, and MoarPeripherals all have Chat Box peripherals which do exactly that.
5 posts
Posted 01 October 2014 - 09:20 AM
not really something new, MiscPeripherals, Computronics, and MoarPeripherals all have Chat Box peripherals which do exactly that.
I meant new to me rather than a completely new concept (I'm sure people have wanted to send chat messages from computers before). I've never worked with CC's API before.
Edited on 01 October 2014 - 07:24 AM