Jump to content




[OpenCCSensors] Community Input (Proximity Sensor Card)

peripheral

  • This topic is locked This topic is locked
28 replies to this topic

#21 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 28 November 2012 - 08:01 AM

View Postsylphio, on 26 November 2012 - 06:24 AM, said:

Hello Orwell

In term of proximity sensing, Cart are non-living thing but it can be really useful to detect them :-p. I am not sure if it is in the scope on your proximity card, but not a lot of non-living entity are useful.
Suggestion : Add entityID Field. (forge persistent id) Easier that parsing the target name and allow to follow the same target from one reboot to the next.

Thank
Cloudy was thinking of making the Inventory Sensor Card so that it detects everything that implements IInventory. That way furnace carts and storage carts would be detected as well. A dedicated Cart Sensor would then seem to have little purpose. We agreed on including the entityID field, that could indeed be usefull.

Also, on the radar sensor thing. I'm going to make a Computer Sensor Card that senses computers and turtles. It will probably give info like the type, the id, on/off state and the relative position. I think that the card to detect block id's nearby would be a bit OP and quite expensive on cpu.

#22 CoolisTheName007

  • Members
  • 304 posts

Posted 29 November 2012 - 02:10 AM

View PostOrwell, on 28 November 2012 - 08:01 AM, said:

I'm going to make a Computer Sensor Card that senses computers and turtles. It will probably give info like the type, the id, on/off state and the relative position. I think that the card to detect block id's nearby would be a bit OP and quite expensive on cpu.
I discussed things with Cloudy and others yesterday and we found a good solution (check out my post on the ccSensors topic).
However, no offense, but the computer sensor card seems to be superfluous; after all, all of that can be done via rednet and Lua. I like the Proximity sensor because players and mobs don't have built-modems and it would be a hassle to have to enter their information into some kind of PDA, but computers and turtles can keep track of their position, ID; not the on/off state, but just for that?

#23 KaoS

    Diabolical Coder

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

Posted 29 November 2012 - 02:18 AM

View PostCoolisTheName007, on 29 November 2012 - 02:10 AM, said:

the computer sensor card seems to be superfluous; after all, all of that can be done via rednet and Lua

I think it is still very useful as you can use if to find computers that are not yours... you can invade someone's base with intelligent turtles etc. you could also make a defense system etc...

#24 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 29 November 2012 - 02:36 AM

View PostKaoS, on 29 November 2012 - 02:18 AM, said:

View PostCoolisTheName007, on 29 November 2012 - 02:10 AM, said:

the computer sensor card seems to be superfluous; after all, all of that can be done via rednet and Lua

I think it is still very useful as you can use if to find computers that are not yours... you can invade someone's base with intelligent turtles etc. you could also make a defense system etc...
I agree with KaoS, it might be redundant in certain scenarios, but it can be useful in others. This would indeed be for tracking pc's you don't own yourself. I also don't think it's OP and it can lead to interesting turtle fights and such if two parties have the sensor installed. However, because we don't want to use CC's private API or messy reflection in this open source project, we are going to wait until CC implements a more public API.

#25 CoolisTheName007

  • Members
  • 304 posts

Posted 29 November 2012 - 07:57 AM

View PostOrwell, on 29 November 2012 - 02:36 AM, said:

snip
Ah, now I see the point!

#26 oxbruceox

  • Members
  • 6 posts

Posted 26 January 2013 - 08:32 AM

plz plz plz plz plz! can someone tell me how to get the player position. is there like a command or what?

#27 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 26 January 2013 - 08:51 AM

View Postoxbruceox, on 26 January 2013 - 08:32 AM, said:

plz plz plz plz plz! can someone tell me how to get the player position. is there like a command or what?

Yeah, there's some Lua to use. You need to get the target details for whichever player you want and index the resulting table to get the player's coordinates relative to the sensor.

#28 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 26 January 2013 - 09:47 AM

Maybe lock this thread? I think it has served his purpose. It would be useful if all feedback would be given on the main thread I think.

Edit: Hmm, forgot I'm supposed to report it instead of posting that... I awoke like a minute ago :P

#29 Cruor

  • Members
  • 413 posts
  • LocationNorway

Posted 26 January 2013 - 09:56 AM

Locked as requested, atleast you tried Orwell :P





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users