[Cc 1.55/cc1.53][Mc 1.6.2/mc 1.5.2] Cctags
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
Tags (updated: 2013-07-21)
Tutorial - First steps (updated 2013-07-20)
Tutorial: Something Practical (updated 2013-07-27)
Changelog and previous versions
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.
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.
boq 06 Jul 2013
Hi. Just released new version. Update adds posters and glass tags:
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.
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.
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.
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?
About wrapping - peripheral.wrap(side) should work fine. Can you describe, what exactly are you doing?
DeweySalt 06 Jul 2013
Oh yes, now the 'follow' program works fine, silly me, sorry
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.
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.
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).
DeweySalt 06 Jul 2013
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.
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
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.
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.
boq 13 Jul 2013
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.
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!
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.
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