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

not so advanced logic question

Archive: 6 posts


anyone who knows a thing or to knows that MM limited all logic counts to 100 100 ports 100 count 100 seems to be the going number

so my questin is if you can take 2 inverted counters set 1 to 100 and 1 to 50 with 2 and gates and a 2 port selector how can you make them count up and down witha total of 150 i have tried many ways but cant seem to get the counters to work together if it would help ill take a pic of the board but im starting from scratch
2012-07-01 22:56:00

Author:
JKY
Posts: 119


http://ie.lbp.me/img/fl/26e07f4b4a7d2a15d1e850ddfa6a8af95fce9d7e.jpg

OK so here is a pic of what I'm trying to do i want both counters to work in the forward backward movement but as soon as counter a starts backward counter b stays with its value counter b needs to subtract before counter a
2012-07-02 00:00:00

Author:
JKY
Posts: 119


Well, I can tell you that the max is 100 because it is the biggest number that you can use without lag. From what I can tell for your question, I don't see a need to not just put the second counter( the 50) as output of the first counter, then put an AND gater to the outputs of both of them.2012-07-02 02:09:00

Author:
Undarivik
Posts: 442


http://i6.lbp.me/img/fl/e7657eaf244fedccf558779a69ac19c19f1eaa7b.jpg
that wont work i tried still only sees 100





ok let me clearify somethings here addidng is easy you can add useing an and gate between the 2 counters if you use a direction combiner and send a pulse to the + side conecting it to the counter and an and gate then when the counter is fill it will tell the next counter to increment +1 simple 1+1 adding is easy and works fine


subtracting is the issue if you take the same pulse and move it to the - side of the combiner it will subtract from counter a not counter b then counter a so 150 - 100 is +50 not 0
hopefully i have explaned it enogh any help would be great
2012-07-02 02:34:00

Author:
JKY
Posts: 119


Don't use counters. Use feedback loops (http://www.youtube.com/watch?v=c4GaCQ1eRVE&list=UUhuVRageHxiKjyJiXzV0c1Q&index=8&feature=plcp). Counting with signal strength is much more flexible. With a feedback loop you can add by any value and even even replace the value with a different value at any point if needed. If you work with whole number signals you can only count from 1-100, but if you use tenths of a percent, you could count from 0.0, 0.1, 0.2... 100.0, or 1-1,000. If you use hundredths, counting from 1-10,000 is possible.

If you need to calculate a 0.0001 signal, place a speed sensor on an object to check for 100.0 speed and a mover at 0.1 with its input at speed scale. Plug a 10% battery into the mover, and create a node with the output of the speed sensor. Wire the node to itself to capture the signal. If you don't place the 10% battery but do everything as instructed, you'll capture a 0.001 signal for counting from 1-1000. For debugging purposes you can use phort's signal probe (http://lbp.me/v/xmwwgy) and wire the output of the speed sensor into the probe to check for signal accuracy.

NOTE: I rushed through this post, so I might've missed something.
2012-07-02 04:51:00

Author:
BIGGamerer
Posts: 182


OK thats a great idea would you mind showing me how and how to implement2012-07-02 06:25:00

Author:
JKY
Posts: 119


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.