Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Help!
#1
Timer display help
Archive: 7 posts
As you might guess, I'm having trouble displaying an analogue signal on a timer. Said signal comes from a chain of math. I'll try to explain... Maybe I'll get some pics later if no one understands enough to help. Okay, first there are two variables (Tags) I'm working with. We'll call them CURRENT and MAX. CURRENT cannot exceed the MAX. When you use a particular gameplay feature, CURRENT will go down, as you'd expect, and can go up by any amount up to the MAX from collectibles. I have this working with some addition and subtraction, throwing an AND Gate in there to make the upper limit. This whole chain of logic is what determines the CURRENT. MAX is determined by an upgrade system I have not yet implemented, so I'm using a Battery as a place holder. MAX can be up to 10, since each 10% is equal to 1 in this system. Now, displaying it has been an issue. At first, I was using Sticker Panel symbols, and that worked fine. But, it was rather ugly. I'm hoping to instead use a Speed Scale Timer. I thought this would work, once I figured out the math to display a percentage when doing CURRENT divided by MAX. I got said math working, and have tested it with a logic probe, but it won't display properly on the timer. To do the math, I'm using some division chips from the Creator's Toolkit. Specifically ones to divide by set numbers. I have a Same Chip Signal Strength Tag Sensor for MAX feeding into a Positional Sequencer with Batteries on it. These Batteries are wired to the On/Off function of some Microchips that are nothing but a single wired from an input to an output. Only one can be on at a time, so the signal would be blocked when the chip is off. The input from these chips is a Tag Sensor detecting the signal strength of CURRENT. These output to the division chips I previously mentioned, and those wired into an OR Gate. I then use a multiply by 10 chip (basically 10 addition iterations), and that provides the percentage I'm looking for. I thoroughly tested the above math, and have found it to be working with a logic probe, but the Speed Scale Timer I'm sending it to won't change its displayed amount. Here's some pics. http://i228.photobucket.com/albums/ee227/SuddenEnigma/FindCurrentEdit_zps6f1a8e5d.png The stuff in the red boxes is for debugging. Everything else should be pretty obvious. http://i228.photobucket.com/albums/ee227/SuddenEnigma/PercentDisplayEdit_zps67b60a1d.png The sequencer is only there because I wired things in the sequencer totally bad... It cleaned it up for me. All those division chips are wired the same as the one I moved up. | 2014-04-04 05:18:00 Author: SuddenEnigma Posts: 70 |
well, if it works on a logic probe, one guess is that the timer could be at fault another guess is that the logic probe is scaled up, or down, and the timer is on the wrong notation value and my last guess is that the signs of the value (+/-) are somehow affecting your result (provided that your division unit works in the first place, those are the only three problems I foresee even possibly running into) Some pics would help btw | 2014-04-04 10:00:00 Author: amiel445566 Posts: 664 |
I've been thinking about it, and I do think the timer is most likely at fault. I'll see if I can find my flash drive and get some pics after I wake up. I'm starting to think that just doing a numerical display may be best. I'd just have to try to make it look good. | 2014-04-04 10:39:00 Author: SuddenEnigma Posts: 70 |
Hi SuddenEnigma. It sounds like the timer is not being updated If there is just no movement tweak the timer to be Target time of 0.1 and current time 0.0. Set it to be inverted and input type to be speed scale. Check the 'flow' of your logic. A good reason that the timer might not be changing is that the signal isn't staying on long enough to affect the timer. Try wiring it like this.... TAG SENSOR wired to the input on a count up TIMER. Wire this timers output to the input on another timer set to max time 0.2. Wire the second TIMERs output to the microchip (with battery on it). Also wire the timers output back to the reset on both timers. Lastly wire the battery to an OR gate (for as many inputs to the display timer as you need, usually + and - ), and wire the or gates output to your display timer - How it works - When the tag sensor is activated it starts a timer counting up (great for slowing the display timer count). This timer then flicks on another timer. The second timer (set to max 0.2) is just long enough to give enough time to fire the battery fully on the microchip, which now is on long enough to reach the display timer. I hope this is helpful mate, any problems let me know. I had a similar problem to you before, and discovered that the signal is not 'on' long enough at 0.1 to actually reach the timer | 2014-04-04 13:05:00 Author: Sean88 Posts: 662 |
The signal should always be on. But, I'll give your solution a try. I'll also get those pics and edit them into the first post. | 2014-04-04 14:20:00 Author: SuddenEnigma Posts: 70 |
Not so relevant to you specific problem; but I have a chip that can dynamically perform your division for you (CURRENT / MAX) which looks like it would simplify your logic and consequently may help simplify the debugging of your problem (the chip is literally 3 components). Although it sounds very odd that your timer would not work while a logic probe does... You can find the chip in my logic kit's "maths" section if you're interested. Logic Kit: http://lbp.me/v/jy7b2e EDIT: Also, if you have already fixed the problem, make a post which details what you discovered the problem to be and how you solved it so that others may learn. If you haven't solved it and want more help send me a friends request on PSN: Sock_Pasta_Rock. I'm sure I can help you figure it out. | 2014-04-17 07:27:00 Author: Seku Posts: 65 |
I haven't fixed the problem, been away from LBP for a few reasons, but anyway... I queued your logic kit and will take a look to see if it helps. I also have a few other ideas on how to get the timer working, I'll just have to see when I get back on the game. Thanks for the help, though. | 2014-04-19 15:12:00 Author: SuddenEnigma Posts: 70 |
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.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.