Home    LittleBigPlanet 1 - PSP - Tearaway -Run Sackboy Run    LittleBigPlanet 1    [LBP1] Help! [Archive]
#1

3-Way AND switch logic

Archive: 13 posts


OK - I've done a search and come up with nothing on this. I seem to be just drawing a blank on how to facilitate what seems to be a simple (and I would venture to say common) problem.

I need to apply an AND gate to a 3-Way switch (attached to a piston). That is:


When pulled left AND condition B=True, then move the piston UP.
When pulled right AND condition C=True, then move piston DOWN.
All other results (including, of course, the neutral position of the 3-Way) must behave as NEUTRAL: no piston movement.


Now I'm a programmer by trade, and I have a pretty good head for boolean logic (and making it come to fruition physically in LBP is one of the major draws for me of this silly little game), but I will be hornswaggled and hogtied (sorry, but "****ed" gets censored) if I can get my head around how to put this simple logic into the physical tools and materials at my disposal. Furthermore, I fully expect a V-8 moment *slaps forehead in demonstrative fashion* when one of you shows me how very simple this is.
2009-07-03 23:05:00

Author:
v0rtex
Posts: 1878


Ignore the output from the 3-way. Add a mag key on the handle and 2 mag switches on the base. You now have 2 extra inputs d and e

Now take the signals:
b AND d
c AND e

input those into 2 winches to control a second 3 way off screen, which controls your piston.
2009-07-03 23:14:00

Author:
rtm223
Posts: 6497


Well that was the one idea that I DID come up with - LOL. But when I tried to control an off screen 3-Way, I could not achieve neutrality. The winches pulled it either left or right. What am I missing?2009-07-03 23:45:00

Author:
v0rtex
Posts: 1878


It should be fine, the method is sound. Did you invert the winches? Also make sure that both of them are long enough that when extended they have no effect on the switch.

Alternatively, use this method I use for sackboy trackers to control the end object:
You can also make a tracker without the mess of an external 3 way switch as well, by using three pistons connected to the tracker. 1 set to directional on the right hand prox, 1 set to directional and backwards on the left hand prox and a third set to off (using a grab switch that can never be grabbed), with strength 5.

This works horizontally, I've never tried vertically, but the break (strength 5 off piston) should be enough to hold it in place against gravity.
2009-07-03 23:54:00

Author:
rtm223
Posts: 6497


d'Oh! And there it is... that V-8 moment, as predicted. *rubs sore spot on forehead*

After I walked away from this thread, what you said in your prior post actually sunk in. See, I had tried before to apply the output of 3-Way switch #1 (using all manner of directional and boolean switches) to control 3-Way switch #2. Now I see that with your solution, I need not even connect 3-Way #1 if I don't want to. It will naturally achieve neutrality for me by not activating the left and right switches.

Simple, elegant - I knew it would be when it was brought to light.

I thank you sir!!

EDIT: I almost wish I didn't have this BBQ to attend right now - I really want to go implement this solution! (But dang, I am hungry and it is America's birthday weekend!!)
2009-07-04 00:02:00

Author:
v0rtex
Posts: 1878


No worries. If it makes you feel any better about your d'Oh moment, I nearly posted a solution that would have required 4 motor bolts, on top of the device I described above. Slightly less elegent I must say. 2009-07-04 00:09:00

Author:
rtm223
Posts: 6497


OK, So I can't make this work.

The mag key on the handle of the 3-Way switch does not move with the handle. It's very odd behavior - almost glitchy in nature. It allows me to place the key on the handle (even at angles around it), and it moves along with the entire mechanism (it's a forklift), but when the handle is pulled to and fro, the key remains in the center, just hovering and never triggers either of the mag switches. I tried it several times, including making a whole new test switch off to the side, always with these same results.

Have you actually had this working? If so, can you perhaps share it? And if not, I'm afraid (while sound in theory) it just doesn't work.

Any other thoughts or ideas for my dilemma?
2009-07-04 08:40:00

Author:
v0rtex
Posts: 1878


No, it was an "off the top of my head" response. Should have known, same thing happens with the other pre-made objects. It is stupid though.

Seeing as I gave you rubbish solution, here's everything else I can think of. Again, off the top of my head, so no guarantees



Try to glue a small piece of something to the handle and then attaching the magkey to that. May work.
Attach a non-stiff rod to the handle and have that go off screen to the levt or right to some glass in a tube. Put the mag key on the glass.
Create your own three way switch, in a similar manner to the ones in sci fi world (i think it's sci fi world)
Create a device that is: a piece of dark matter with a circle on it. The circle spins on a motor bolt. On to of that place a long, thin rectangle, attached using another motor bolt going faster than the first and in the opposite direction. The rectangle should be blocked off from moving outside of a V shape. Connect the three way switch (set to directional to the top motor bolt. The rectangle should only move one way when the switch is pulled left and then the other way when the switch is neutral or pulled right. Create a second one of these which activates when pulled right. Now you have your signals d and e.



I'm pretty sure 4 will definately work, but it is rather convoluted!
2009-07-04 12:23:00

Author:
rtm223
Posts: 6497


Attach a non-stiff rod to the handle and have that go off screen to the levt or right to some glass in a tube. Put the mag key on the glass.


OK - So, inspired by your suggestions (#2, quoted here, in particular), I've arrived at a solution:

http://i168.photobucket.com/albums/u180/v0rtex2002/APhoto_1.jpg

Two versions shown here - I made the big one on the right to get all the mechanics working right, then shrunk it down to a sack-usable size. The rods (non-stiff) are connected to blocks of Orange Floaty in a glass lined shaft.

I've inserted this into my fork-lift vehicle, replacing the original 3-Way. Works like a charm!

I intend to give this away as a prize in my new level, but it may be some time before I'm ready to publish, so if anyone wants it prior to then, just PM me... I'll be glad to send it off to you.

Thanks for your help and inspiration rtm!! You da man! :hero:
2009-07-04 19:50:00

Author:
v0rtex
Posts: 1878


I had the neutral 3 way switch problem and FULLGORR told me to do the mag key on the handle connected by a bolt. and it totally works. Check out the balloon at the end of the level.2009-07-04 20:12:00

Author:
Morgana25
Posts: 5983


I had the neutral 3 way switch problem and FULLGORR told me to do the mag key on the handle connected by a bolt. and it totally works. Check out the balloon at the end of the level.

Oh sure... NOW ya tell me!

I always have community object collection turned off, so I just look at prize bubbles as bigger point bubbles any more. I'll have to check it out - that would certainly be an easier thermo-friendly solution. Thanks!
2009-07-05 01:20:00

Author:
v0rtex
Posts: 1878


Just to clarify - I don't give it away on the level - just wanted you to see it in action. I've sent it over to you on PSN.2009-07-05 21:54:00

Author:
Morgana25
Posts: 5983


That's mental. You can't glue the object to it but you can bolt it on? Crazy. Well thanks for the info morganna, glad there's a (nearly) sensible way to do it 2009-07-05 22:41:00

Author:
rtm223
Posts: 6497


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.