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

[MC 1.6.4/1.7.2/1.7.10] [CC 1.5x/1.6x] Computronics (0.6.0) - Audio tapes! Cameras! Encryption!

Started by asie, 09 March 2014 - 03:27 PM
asie #1
Posted 09 March 2014 - 04:27 PM
The wiki has been moved to http://wiki.vexatos....ki:computronics and I have mostly abandoned my work on the mod. Use that link.
Edited on 21 November 2017 - 12:15 PM
TheOddByte #2
Posted 14 March 2014 - 07:47 PM
Does this work on MC 1.6.2? And I can't believe noone have posted here yet, It seems like a really cool peripheral! :D/>
asie #3
Posted 14 March 2014 - 10:24 PM
It does work on 1.6.2, yes.
Pharap #4
Posted 19 March 2014 - 02:28 AM
I like the camera implementation, it's both useful and (for want of a better term) weak enough to not be considered too overpowered.
Kind of reminds me of the old style raycasting engines (http://qt-project.org/doc/qt-4.8/images/raycasting-demo.png) such as Wolfenstein3D

Note: Haven't tried the mod, just skimmed the docs
wilcomega #5
Posted 23 March 2014 - 06:55 PM
i have been waiting for this, now just make it a peripheral, is there any limit on how far a ray can travel?
Sillyjake #6
Posted 30 March 2014 - 06:38 PM
Please update this to CC 1.6, I want to add this to my server.
Sora Firestorm #7
Posted 30 March 2014 - 10:52 PM
Looks like a good set of stuff! Have you considered adding a MiscPeripherals-like speaker in to go with the chat box? I'd really like to have one.
bakagaijin #8
Posted 02 April 2014 - 07:44 PM
Please update this to CC 1.6, I want to add this to my server.

Seconded - this looks fantastic. Many thanks for the INB replacement as well (been missing that one.)
asie #9
Posted 05 April 2014 - 08:46 AM
Please update this to CC 1.6, I want to add this to my server.

Seconded - this looks fantastic. Many thanks for the INB replacement as well (been missing that one.)

Done. Grab Computronics 0.3.0!
bakagaijin #10
Posted 05 April 2014 - 11:53 PM
Please update this to CC 1.6, I want to add this to my server.

Seconded - this looks fantastic. Many thanks for the INB replacement as well (been missing that one.)

Done. Grab Computronics 0.3.0!

Thanks asie!!!
nickeb96 #11
Posted 02 May 2014 - 07:30 AM
Hello, I've been using the cc 1.6 version and I think I found a bug. When the camera is facing east a positive value in the distance function angles the ray to the left and a negative value to the right. But when it's facing north a positive value angles the ray to the right and a negative value to the left.
StarburstDude #12
Posted 12 May 2014 - 01:01 AM
Excuse me wise sir,
How do you use the cassete tapes/tape drives?Could you make a video tutorial on them,they are quite confusing and there is no good documentation on your website or on the rest of the internet.

Thanks.
asie #13
Posted 15 May 2014 - 06:11 AM
Excuse me wise sir,
How do you use the cassete tapes/tape drives?Could you make a video tutorial on them,they are quite confusing and there is no good documentation on your website or on the rest of the internet.

Thanks.

Try #oc on EsperNet. It's the OpenComputers channel but a few Computronics users hang out there. They might be able to help.

Also, maybe. I don't know if I have the time to make a video tutorial though.
StarburstDude #14
Posted 15 May 2014 - 07:19 PM
Excuse me wise sir,
How do you use the cassete tapes/tape drives?Could you make a video tutorial on them,they are quite confusing and there is no good documentation on your website or on the rest of the internet.

Thanks.

Try #oc on EsperNet. It's the OpenComputers channel but a few Computronics users hang out there. They might be able to help.

Also, maybe. I don't know if I have the time to make a video tutorial though.
Hm…wasn't able to get a good response of either the #computercraft or #oc ircs.One guy told me that I have to put in the .DFPWM in the computer and then use the tape api to put it into the cassette tape.Just don't know how?I asked if it was the write(byte) command,but no response :/

I got it from there.Could you tell me how to do the rest?Pretty please :wub:/>
asie #15
Posted 15 May 2014 - 09:32 PM
One guy told me that I have to put in the .DFPWM in the computer and then use the tape api to put it into the cassette tape.Just don't know how?I asked if it was the write(byte) command,but no response :/

I got it from there.Could you tell me how to do the rest?Pretty please :wub:/>/>

Use write(byte) to write audio data byte by byte. Read from the .dfpwm file to get the audio data you want to write. Each byte write advances the tape position by 1 byte - after you finish writing, use seek(-length) to go back to the beginning. To read a single byte, use read(). It will also advance the tape position.

To get the dfpwm file on the computer, use the HTTP API or copy it into your save folder.
MrabEzreb #16
Posted 19 May 2014 - 07:20 PM
Can you PLEASE make robot camera upgrades for turtles? that would be AMAZING!!!!!!!!!!
jaffacakesareamazing #17
Posted 06 July 2014 - 12:09 PM
Can we have a tutorial for the cameras or other parts of the mod? There is some code on the wiki which I typed out and it wouldn't work!
asie #18
Posted 08 July 2014 - 06:31 PM
Can you PLEASE make robot camera upgrades for turtles? that would be AMAZING!!!!!!!!!!

https://cdn.mediacru.sh/Kj78-121FJO7.png - camera upgrades are next.

Can we have a tutorial for the cameras or other parts of the mod? There is some code on the wiki which I typed out and it wouldn't work!

I will make a series of videos on them once 0.5.0 is released. (Though 0.5.0 will be for Minecraft 1.7.2/1.7.10, many of the things in it will hold true for 1.6.4/0.4.x as well.)
asie #19
Posted 25 July 2014 - 06:33 PM
Oh, look, 0.5.0 and 0.5.1 and 0.5.2 and 0.6.0 were released since the last update! Let's do a quick summary of what changed for good old ComputerCraft users.
  • ADDED: Colorful Lamps! Supporting ComputerCraft, OpenComputers, NedoComputers, Project: Red, MineFactory Reloaded and RedLogic for setting their colour!
  • ADDED: Reading Bundled Cable output for RedLogic and Project:Red-compilant Bundled Cables in ComputerCraft is now possible! (Writing for RedLogic might come soon; writing for Project: Red is impossible due to P:Red's restrictive license)
  • ADDED: Cipher Blocks now support encryption via RedLogic and Project: Red bundled cables!
  • ADDED: Iron Note Blocks now support RedLogic, Project: Red and MFR for playback!
  • ADDED: Chat Boxes now should emit a redstone pulse on every message sent on the chat.
  • ADDED: Full ComputerCraft 1.64pr3 support using the native APIs!
  • ADDED: Radars! They detect entities. And players. And… that's about it.
  • ADDED: Speaking, Musical and Radar Turtle Upgrades (ComputerCraft)! [UNTESTED - waiting for CC for 1.7.10]
  • ADDED: Tapes can now have labels changed in CC Disk Drives. (Why not?)
  • ADDED: Chat Boxes can now have an optional second parameter to say() - the distance.
  • ADDED: Particle Turtle Upgrades for ComputerCraft.
  • ADDED: RedLogic lamps as peripherals! Because why not?
  • CHANGED: Iron Note Blocks now use the block under them for choosing the default instrument, instead of hardcoding a single instrument.
  • FIXED: Iron Note Blocks now emit Forge events for noteblocks. Sometimes.
  • FIXED: Cameras should now work a little bit better. They're still broken for distanceUp() and distanceDown(), but at least should not break for distance().
  • FIXED: For those of you who don't use OpenComputers, a few more peripherals will now become tickless! (Chat Boxes, Cipher Blocks)
http://mc.shinonome.ch/doku.php?id=wiki:computronics
jaffacakesareamazing #20
Posted 25 July 2014 - 09:41 PM
Oh, look, 0.5.0 and 0.5.1 and 0.5.2 and 0.6.0 were released since the last update! Let's do a quick summary of what changed for good old ComputerCraft users.
  • ADDED: Colorful Lamps! Supporting ComputerCraft, OpenComputers, NedoComputers, Project: Red, MineFactory Reloaded and RedLogic for setting their colour!
  • ADDED: Reading Bundled Cable output for RedLogic and Project:Red-compilant Bundled Cables in ComputerCraft is now possible! (Writing for RedLogic might come soon; writing for Project: Red is impossible due to P:Red's restrictive license)
  • ADDED: Cipher Blocks now support encryption via RedLogic and Project: Red bundled cables!
  • ADDED: Iron Note Blocks now support RedLogic, Project: Red and MFR for playback!
  • ADDED: Chat Boxes now should emit a redstone pulse on every message sent on the chat.
  • ADDED: Full ComputerCraft 1.64pr3 support using the native APIs!
  • ADDED: Radars! They detect entities. And players. And… that's about it.
  • ADDED: Speaking, Musical and Radar Turtle Upgrades (ComputerCraft)! [UNTESTED - waiting for CC for 1.7.10]
  • ADDED: Tapes can now have labels changed in CC Disk Drives. (Why not?)
  • ADDED: Chat Boxes can now have an optional second parameter to say() - the distance.
  • ADDED: Particle Turtle Upgrades for ComputerCraft.
  • ADDED: RedLogic lamps as peripherals! Because why not?
  • CHANGED: Iron Note Blocks now use the block under them for choosing the default instrument, instead of hardcoding a single instrument.
  • FIXED: Iron Note Blocks now emit Forge events for noteblocks. Sometimes.
  • FIXED: Cameras should now work a little bit better. They're still broken for distanceUp() and distanceDown(), but at least should not break for distance().
  • FIXED: For those of you who don't use OpenComputers, a few more peripherals will now become tickless! (Chat Boxes, Cipher Blocks)
http://mc.shinonome....ki:computronics


Guessing as this was posted today the tutorials haven't been made…..however please send me a message if/when they are please! :)/> The update looks pretty cool too! :P/>
Edited on 25 July 2014 - 07:41 PM
cherbert #21
Posted 29 September 2014 - 02:39 PM
In a future version of this module is there no way the locomotive relay can be coded in a way that it reads the locomotive destination from a track sensor? I have an extensive rail network under development and it will require many relays. Firstly it seems you can only bind one relay to one loco. Thats problem 1. Problem 2 is even if you could bind a loco to multiple relays the task of rebinding that loco to relays spread out across miles of track would be near impossible - you simply cannot guarantee the survival of any particular loco as an entity.

I basically want to track a locomotive as it moves up the line - using the route name as an unique ID and route code and feeding that info a software program that displays estimated time of arrivals at on platform display monitors.
gustavowizard #22
Posted 08 October 2014 - 07:05 PM
hello, first of all, good job there! this mod have potential

some questions, does your camera can recorrd real images from the game or just lines like you can do with the demo u made?
if no is there a mod that does it?

what are those 'colored lights' ? how they work?
adam1972 #23
Posted 19 November 2014 - 05:11 AM
Are there ANY helpful wiki's out there for this? I went to the wiki that the Speaking Turtle link takes you to: " http://mc.shinonome.ch/doku.php?id=wiki:computronics:chat_box#chat_box" and other than :
  • say(message) - says a message within the chatbox distance.
  • An event is sent every time the Chat Box receives a message. The name of the event is “chat_message”, the first parameter is the username and the second parameter is the message.
This really doesn't explain how to use the turtles chat box functionality at all… I can't find ANY videos nor tutorials… ANYONE have a clue how to use this mod (specifically chatbox with turtles????) :wacko:/> :blink:/>
KingofGamesYami #24
Posted 19 November 2014 - 03:16 PM
It describes it perfectly well for me, at least.


local chat = peripheral.wrap( "side" ) --#wrap the peripheral
chat.say( "hi" ) --#says hi in chat
local event, user, message = os.pullEvent( "chat_message" ) --#get a message from a player
Edited on 19 November 2014 - 02:17 PM
adam1972 #25
Posted 19 November 2014 - 03:42 PM
I sincerely appreciate the response and your time :)/>

I'm just starting out, and it seems that after wrapping the peripheral it becomes dynamic as to what else you can follow through with. It makes sense to you because you're obviously more familiar.. I'm teaching myself using tutorials and youtube… I'd been hoping for info on the parameters and their usage.. typical tutorial or wiki delineating it's usage; "this is the function and this is how you go about using inside your code " for Dummies :D/>
I can see through your example that you wrap the peripheral to whatever side it's on.. but the idea behind calling the os.pullEvent… why would you wait for a chat message from the user? I assume this mod allowed the turtle to chat messages that you could code into a function…. :blink:/> :ph34r:/>
KingofGamesYami #26
Posted 19 November 2014 - 04:04 PM
I sincerely appreciate the response and your time :)/>/>

I'm just starting out, and it seems that after wrapping the peripheral it becomes dynamic as to what else you can follow through with. It makes sense to you because you're obviously more familiar.. I'm teaching myself using tutorials and youtube… I'd been hoping for info on the parameters and their usage.. typical tutorial or wiki delineating it's usage; "this is the function and this is how you go about using inside your code " for Dummies :D/>/>
I can see through your example that you wrap the peripheral to whatever side it's on.. but the idea behind calling the os.pullEvent… why would you wait for a chat message from the user? I assume this mod allowed the turtle to chat messages that you could code into a function…. :blink:/> :ph34r:/>
You don't have to pull chat messages if you don't want to. However, the ability is there, if you like (chatting commands to your turtle and such).
adam1972 #27
Posted 19 November 2014 - 05:45 PM
Kool….
IF you wouldn't mind…. Would you mind clarifying how it would be done?
once I declare the function .. say,

function turtleChat()
local chat = peripheral.wrap( "right" ) –#wrap the peripheral using your code
local event, user, message = os.pullEvent( "chat_message" ) –#get a message from a player using your code
end

Now I presume that "chat.say( "hi" ) #says hi in chat " is used in order for the turtle to say "hi", so it's not needed in the function?
But then how would I get the turtle to say something instead of say printing it??

Again, thank you for your patience and time :)/>
KingofGamesYami #28
Posted 19 November 2014 - 07:47 PM
I wouldn't wrap the peripheral inside a function that will be used multiple times, perhaps if I had some idea of what you were going to use this for I could advise you further.
adam1972 #29
Posted 19 November 2014 - 08:16 PM
Basic.. Like I'm teaching myself functions and sometime I get ahead of myself.. so I tend to write in code so I know for example at what part of a loop the turtle is on.. so I'll stick "print("I'm blah blah blah on this step")" at certain part of a function or program in order to better get an idea of what's happening and where things go wrong. I'll have my turtles print out comments every so many loops to give myself the illusion that they complain… Nothing big.. lol I'd rather have them say it in chat than print though.. :)/>
theoriginalbit #30
Posted 20 November 2014 - 12:05 AM
-snip-
I really suggest that you start with the Ask a Pro series, a relevant tutorial would be Peripheral Basics. I also suggest that you familiarise yourself with Lua by reading the PIL.
adam1972 #31
Posted 20 November 2014 - 01:15 AM
Roger That!! Thank you very much!! ;)/>
Selim #32
Posted 22 February 2015 - 04:31 AM
Um, moderators out there, don't take this as a request for an update, but, asie, you are done? I had so many ideas for things to do with the tape drives alone from this mod, I was gonna make an "internet" radio station in game… but never mind now…
Edited on 22 February 2015 - 07:17 PM
Slash0mega #33
Posted 26 February 2015 - 06:09 AM
what happened to the site, i tried updating downloading the mod again and the site went to some parady thing then a url shop ???
Anteater46 #34
Posted 02 March 2015 - 03:14 AM
what happened to the site, i tried updating downloading the mod again and the site went to some parady thing then a url shop ???

Downloads and wiki for this mod have been moved. Here's the new site (found on Asie's Twitter): http://wiki.vex.tty.sh/
DannySMc #35
Posted 27 April 2015 - 05:16 PM
- snip -

When will these be ported to CC1.73 and MC1.7.10
Anteater46 #36
Posted 25 May 2015 - 04:28 AM
When will these be ported to CC1.73 and MC1.7.10

It has been - http://wiki.vex.tty.sh/wiki:computronics
Ben1701A #37
Posted 24 August 2015 - 01:36 PM
Hey! This is my new mod, Computronics. It adds some new interesting peripherals, including simple Cameras, Cassette Tapes and MiscP's Iron Note Blocks and Chat Boxes.

The Cameras let you gather information (distance) about your surroundings, the Cassette Tapes let you record and play back music with a special format and… Iron Note Blocks are noteblocky. More features are planned, though!

Since 0.3.0, we add Cipher Blocks - encode and decode messages! - and CC 1.6 support!



WIKI AND DOWNLOADS: http://mc.shinonome.ch
WIKI AND DOWNLOADS:http://mc.shinome.ch Error: Link doesn't work!
FHSgames99 #38
Posted 25 December 2015 - 09:44 AM
what is the version for minecraft 1.6.4 of the computronics (computercraft)?
zguystudios #39
Posted 01 January 2016 - 08:45 PM
If anyone is looking for the updated link to this mod, it is as follows:
http://wiki.vex.tty.sh/start
TheRockettek #40
Posted 27 July 2016 - 04:37 PM
I was looking throught lionrays source code and i realised you can execute it automaticaly without user input from the window with arguments from java, but it wasnt working. How do i run it with arguments?

What i found:

public static void main(String[] args) throws Exception {
  if (args.length > 0) { // called with params, CLI assumed
   String inputPath = args[0];
   String outputPath = args.length > 1 ? args[1] : (inputPath + ".dfpwm");
  
   try {
    convert(inputPath, outputPath);
   } catch (UnsupportedAudioFileException e) {
    System.err.println("Audio format unsupported");
    return;
   } catch (IOException e) {
    e.printStackTrace();
    return;
   }
  } else {
   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
   LionRayJFrame = new LionRay();
  }
}