←  Peripherals and Turtle Upgrades

ComputerCraft | Programmable Computers for Minecraft

»

[Cc 1.55/cc1.53][Mc 1.6.2/mc 1.5.2] Cctags

boq's Photo boq 29 Jun 2013

(sorry for broken topic title, it looks like there is some kind of anti-shouting filter that breaks it all the time)

Hi! This is an implementation of an idea I got after playing with NFC tags and readers. It gives user way to write data to tags - small stickers, that can be placed in world (not unlike paintings), but also on items and animals. Tags can be read by peripherals (in both stand-alone and turtle versions), even after placed.

With tags you can create programs for turtle, by placing commands on his path (for things like patrolling, delivery routes, etc.). They can also be used as plain old visual programming tool or ID cards.

Videos
Spoiler

Tags (updated: 2013-07-21)
Spoiler
Peripherals (updated: 2013-08-24)
Spoiler
Recipes (updated 2013-08-24)
Spoiler

Tutorial - First steps (updated 2013-07-20)
Spoiler

Tutorial: Something Practical (updated 2013-07-27)
Spoiler

Changelog and previous versions
Spoiler

Mod is still in development, so it may be rough around edges (especially graphics. I have no idea how to do that stuff) - so no warranty at all. If it does something nasty, please post bug report. Any other feedback is also appreciated.

Current version: 1.1 (published: 2013-07-24)

Download here [MC 1.6.2] [MC 1.5.2]

Quick links:
Icon list: http://ᛒ.net/doc/cctag-icons.html
Tag library (visible in creative mode): http://ᛒ.net/doc/library.html
Source code: https://github.com/boq/cctags
Edited by boq, 27 August 2013 - 03:53 PM.
Quote

Lyqyd's Photo Lyqyd 29 Jun 2013

Split into new topic.
Quote

PixelToast's Photo PixelToast 29 Jun 2013

nice domain, will mess around with it soon :3 looks cool
Quote

Cloudy's Photo Cloudy 02 Jul 2013

Love the idea.
Quote

karelmikie3's Photo karelmikie3 02 Jul 2013

it looks awesome i will try it when i get home from school :3
Quote

boq's Photo boq 06 Jul 2013

Hi. Just released new version. Update adds posters and glass tags:
Posted Image
I'm starting to run out of ideas (still have few, though), so I will probably slow down updates little bit and focus on bugs.

Weeeelllll, about bugs: mod is now public for about one week, and I got almost no feedback on gameplay. So if there are any issues or bugs (or just general poor quality and overcomplication), that make you to throw away this mod in disgust just after first run, let me know. I will try to fix that as soon as possible.
Edited by boq, 06 July 2013 - 03:42 PM.
Quote

DeweySalt's Photo DeweySalt 06 Jul 2013

It'd be nice if this had some better documentation :/ Whenever I try to wrap the peripheral, or even get the methods, I just get a nil value. Even the default 'follow' program just gives me the error 'follow:47: Can't move forward', and no, there is no block infront of the turtle.
Quote

boq's Photo boq 06 Jul 2013

How about fuel? 'Can't move forward' is just generic error, when turtle.forward() returns false.
About wrapping - peripheral.wrap(side) should work fine. Can you describe, what exactly are you doing?
Quote

DeweySalt's Photo DeweySalt 06 Jul 2013

Oh yes, now the 'follow' program works fine, silly me, sorry :P
But other than that, I am doing p = peripheral.wrap("right") (the writer is on the right side) and unpack(p.getMethods()) (or p.listMethods(), I can't remember) in the lua prompt, but it just returns lua:1: attempt to index (a nil value).

Also, not sure what the difference is between the writer and the printer, I've tried the above with both.
Quote

boq's Photo boq 06 Jul 2013

Ah, then you want peripheral.getMethods("right"). Also, you can try "help tag-writer" and "help tag-printer" to get peripherals documentation (also, copies of source and help files are in <minecraft folder>/cctags).
Quote

DeweySalt's Photo DeweySalt 06 Jul 2013

Okay, so now I have the methods, but how do you 'select' a tag from the world? By using scanForTags? What I mean is in the 'help tag-writer' it says that you need a tag to be selected in order to use the contents() method, so how would you select a tag for it's contents to be read if it's already placed down in the world?

Please disregard this post, I just had to re-look over the help tag-writer.

On another note, this is a very nice mod. I have a 'maintance turtle' which goes around my house making sure all my automations are functioning and this helps out quite a bit.
Quote

boq's Photo boq 06 Jul 2013

Yeah, that part of documentation needs work (thanks for pointing that). scanForTag(dir) and selectFromSlot(slotId) both select tag as a target for peripheral. First one looks for tags placed in world, second one - in turtle inventory.

For example, to read tag in front of turtle, call
p.scanForTag()
print(p.contents())
print(p.size())
Any next command will also use selected tag (until you move out of range).
scanForTag() will return false, if nothing is found. isTagValid() will return true, if anything is selected.
There is also helper method tags.scanForTags() that will return direction and contents of first found tag on any side.
Quote

DeweySalt's Photo DeweySalt 06 Jul 2013

I suggest putting what you just said in the OP :)
Quote

boq's Photo boq 13 Jul 2013

Posted Image

Hi! Just updated mod to 1.6.2. New version includes few features, like text icons.

Also, if you are still confused what this mod is about, I added tutorial (in form of world) to original post.
Quote

Mandrake Fernflower's Photo Mandrake Fernflower 13 Jul 2013

Nice, I think I could use this for a shared computing project where people can update the shared computing code by replacing the poster that has the firmware on it!
Quote

boq's Photo boq 13 Jul 2013

Interesting idea! Can you post results, after it's done? Also, send me info about any bug/bad design/annoying thing you can find. I can fix it, while I'm still here.
Quote

KaoS's Photo KaoS 13 Jul 2013

such an awesome idea to lose to the dark side

MC 1.6.2 :( not even gonna try it
Quote

boq's Photo boq 13 Jul 2013

Uh, why? Too early?
Quote

KaoS's Photo KaoS 13 Jul 2013

not many mods have updated to 1.6.2 and mod loaders like MMC and FTB are not compatible with it. I love MMC
Quote

immibis's Photo immibis 13 Jul 2013

You don't need MMC, forge has an installer.
Quote