Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Help!
#1

Advanced logic using tag sensor (signal strength) reacting to multiple tags?

Archive: 7 posts


What occurs when multiple tags with strengths < 100 are within the range of a tag sensor set to detect signal strength?

Is the output the min, max, nearest, farthest, or a combination of the signal strengths (up to 100)?

EDIT: see below for some interesting uses, namely, a damage system using a single tag (or 2), and how to add all sensed tag strengths.
2011-02-23 00:55:00

Author:
SSTAGG1
Posts: 1136


It is supposed to be max/strongest. http://wiki.lbpcentral.com/Tag_Sensor2011-02-23 01:04:00

Author:
Osprey71
Posts: 93


Thanks (was hoping it'd be a combination of the strengths, oh well)2011-02-23 01:37:00

Author:
SSTAGG1
Posts: 1136


Woot, found out how to add together signal strengths.


Also, worth noting is that if you use "signal strength" on a tag sensor, and there are multiple matching tags, it will pull the value of the nth highest signal strength (where n is the number required), regardless of distance. Not sure if this is news to anyone else but me - I assumed that it would pull the strength of the nth closest - i.e. that I would be able to pull out the distance to, and value of the nth closest matching tag by using a pair of sensors. This is not the case. Indeed I don't think there is any way to match up the distances and strengths of each tag in a neat manner.

If I'm understanding this correctly:

I could have a 1-tag sensor that takes the strongest tag signal
A 2-tag sensor which outputs the 2nd strongest signal
A 3-tag........etc..

This means that you could add together all the signal strengths of the tags within range of the sensors. Epic!
Eg: With 3 tags, you would get a signal of each strength, which could then be added together.

Now I can make a damage system using tags rather than impact and still respond to multiple hits at once. Useful for some weapons I am using that have an area of effect, but don't always contact the units being effected. That, as well as some other tag related damages that don't work to well being impact.

If only impact sensors transmitted the strength of the tag they react to.
2011-02-23 04:32:00

Author:
SSTAGG1
Posts: 1136


that is some handy info to have. Couldn't you use the impact sensor to activate a tag sensor, and get the value of that tag? it's a bit of a work around, but it seems like it could work with the right timing.

Using that technique with an adder could be ideal for multiple simultaneous hits.
2011-02-23 06:24:00

Author:
tdarb
Posts: 689


I'll fiddle around with it again later. The whole purpose of using the tag strengths was to limit the number of tags I had to use.

A normal adder circuit, but instead of using a unique tag sensor for each addition, it'd just use 1-tag, 2-tags, 3-tags, etc... and, the transmitted strength would be the variable, instead of the tag itself.
This would cut down the number of unique tags and labels I have by about 50, as well as simplifying a 35 addition, 25 subtraction circuit system into <10 signal strength circuit, which would be nice on the thermo.

I could hook up an AND using the X-tag(s) sensor and the impact sensor. Then add all signals. Each signal strength would be measured and added.

It should work. If I have 10 tag detectors (1-10), then I could measure 10 simultaneous hits at once. Introduce some lag to prevent the combinations from subtracting from their positive signals, and it should work very well.

EDIT: LOL, turns out I've been adding signals incorrectly all along. I never introduced the NOT gates. Just reread rtm's logic post. Should fix some signal loss I've been experiencing.

EDIT 2: Looking over more of that blog, I suppose I could introduce overflow as well. Not 'that' difficult, but seeing as I am planning on using negative signal strengths as well, I may have to create rtm's signed adder setup (http://i600.photobucket.com/albums/tt82/rtm223/adder%20sorter/APhoto_58.jpg), but with 10 input values rather than 4.......... I wonder if it is even worth switching from distinct tags to tag strength...

EDIT 3: I assume the tag sensor takes the greatest magnitude value, so -100 and 100 would be the same thing, 100. Would be nice if it didn't, but all this means is I need 2 tags instead of 1. 1 for healing and another for damage. Darn.....(sarcasm).... although using 2 different tags would mean I don't have to worry about determining if signal is neg/pos, as it would be based on the tag detected.
2011-02-23 08:23:00

Author:
SSTAGG1
Posts: 1136


Turns out the tag sensor does transmit and receive negative values. It's actually easier if I split the systems though, so using a single tag with varied strength for damage, and another for healing is much easier.

Too bad we can't edit the detection shape of a sensor........although I could make it so that the tag is powered by the impact AND a battery set to deliver the signal.....hmm....

That just might work...awesome.

EDIT: I would also mean that damage is (correct me if I'm wrong) only delivered for a single tick, as the destroyed would destroy the shot as the signal was sent....or do I have to delay the signal by a single frame to get it to work properly?
2011-02-24 05:58:00

Author:
SSTAGG1
Posts: 1136


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.