Jump to content




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

peripheral

44 replies to this topic

#1 boq

  • Members
  • 23 posts

Posted 29 June 2013 - 03:23 PM

(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.


#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,462 posts

Posted 29 June 2013 - 06:29 PM

Split into new topic.

#3 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 29 June 2013 - 06:49 PM

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

#4 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 02 July 2013 - 02:39 AM

Love the idea.

#5 karelmikie3

  • Members
  • 112 posts

Posted 02 July 2013 - 06:07 AM

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

#6 boq

  • Members
  • 23 posts

Posted 06 July 2013 - 01:50 PM

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.


#7 DeweySalt

  • Members
  • 52 posts
  • LocationIn a galaxy far far away, aka New York

Posted 06 July 2013 - 05:09 PM

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.

#8 boq

  • Members
  • 23 posts

Posted 06 July 2013 - 05:15 PM

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?

#9 DeweySalt

  • Members
  • 52 posts
  • LocationIn a galaxy far far away, aka New York

Posted 06 July 2013 - 05:37 PM

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.

#10 boq

  • Members
  • 23 posts

Posted 06 July 2013 - 05:43 PM

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).

#11 DeweySalt

  • Members
  • 52 posts
  • LocationIn a galaxy far far away, aka New York

Posted 06 July 2013 - 05:52 PM

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.

#12 boq

  • Members
  • 23 posts

Posted 06 July 2013 - 06:00 PM

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.

#13 DeweySalt

  • Members
  • 52 posts
  • LocationIn a galaxy far far away, aka New York

Posted 06 July 2013 - 06:24 PM

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

#14 boq

  • Members
  • 23 posts

Posted 13 July 2013 - 12:15 PM

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.

#15 Mandrake Fernflower

  • Members
  • 117 posts
  • LocationDark Side of The Moon

Posted 13 July 2013 - 12:31 PM

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!

#16 boq

  • Members
  • 23 posts

Posted 13 July 2013 - 12:39 PM

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.

#17 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 13 July 2013 - 01:07 PM

such an awesome idea to lose to the dark side

MC 1.6.2 :( not even gonna try it

#18 boq

  • Members
  • 23 posts

Posted 13 July 2013 - 01:11 PM

Uh, why? Too early?

#19 KaoS

    Diabolical Coder

  • Members
  • 1,510 posts
  • LocationThat dark shadow under your bed...

Posted 13 July 2013 - 01:14 PM

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

#20 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 13 July 2013 - 08:32 PM

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users