Page 1 of 1

Problem with memory component

Posted: Wed Mar 18, 2020 4:25 pm
by Nenyx
Hello

Since it's my first post here, a little bit of presentation first :) I'm a rather new player in the game (bought it a few weeks ago) and since then, i mostly played with the submarine editor. In fact, i played only a few hours on either multi or single player, and over 100 hours on the editor or testing my submarines :) My favorite submarine has multiple functions, like a dual purpose shuttle that can either be manned or remote controled (and with slave controls when docked, adding her engine power and ballast to the main sub), security cameras linked to a single periscope which change view on mouse click ... Basically i like to think "wow this could be cool / fun, i'll try to do it !" :) I'm currently working on vocal commands, with a WiFi linked to chat. I can do some nice things like turning lights on or off by a simple vocal input.

But i have some problem with the memory component. In some cases, i cannot make it store the value i want to input.

For example, if i link a button made to send '1' to the "store" entry of the memory component, it stores the value '1'. Fine. If i link it with a Sum component and i loop on the memory component, i can add 1 each time i press the button, it works (it is how the looped security camera works by the way)

But, it seems like the store entry does not work with several other components. I tried to build a remote control function using the WiFi component. So, with the same example, if i link the button to a WiFi entry, then another Wifi Exit (on the same channel of course) to the memory store, it does not work. However, i also linked the very same WiFi Exit to a Text display and a Light component: when i press the button, the Text display shows '1', the light is on, but the memory component stays at 0. I also tried with a verification signal, but with the same result. It seems like the memory component needs some kind of 'action', and not just a value.

Any tip ?

Re: Problem with memory component

Posted: Mon Jun 01, 2020 12:42 pm
by Thunderballs
G'day, you could try getting the WiFi signal to activate a relay which will let your signal through into the memory.

Re: Problem with memory component

Posted: Sun Aug 02, 2020 10:15 pm
by LostOblivion
The memory component does not work like that. To store a value, wire it to the signal_in port. The store_input port only sets whether or not to store something upon receiving a signal on signal_in.