I don't know about any of you using the Expression Gate 1, but I am having a major problem with it, and perhaps you guys could help me.
I didn't thoroughly read the 40 pages of the thread, but I'm sure I'm not the only one having this problem (I sure hope so!). When I type in a new expression, this is what happens...
(I am trying to make a chip that tells four wheels to go when your distance from it is less than 100 inches, but to reverse when it is less than 50 inches [providing a Target Finder and Beacon Sensor are used]).
1. I type in a label, for example "Acceleration" (without quotes, of course).
2. For input, I type "Distance"
3. For output, I type "Go"
4. The first line of code is: "Go = 0, if (Distance < 100) -> Go = 1;"
5. The second line of code is: "If (Distance < 50) -> Go = -1;"
6. I press "Validate," and the second line of code is deleted! What the hell?!
--Also, I noticed something else: When I press "validate," it will validate the lines of code I already have. However, if I modify them (such as by adding inputs and/or outputs) and hit "validate" again, it reverts the expression chip back to how it was the first time I validated it. Let me give you an example; I define a label, inputs, outputs, and a line of code. Then I hit validate. When validated successfully, I then modify it again, this time adding another input or output, and perhaps adding another one. Then I hit "validate" again, and lo and behold, it reverts the chip back to how it was the first time I hit "validate," completely destroying the fresh modifications I just made on it since.
Another thing: sometimes, when I hit "validate," it partially processes the second line, but only by a few characters (weird...).
Is my version of Wire corrupt or something? What does this mean? I have the SVN revision as of 4-17-2009 (yesterday). I think it is at 1090 or something.
If anyone could tell me what I am doing wrong, I would be a really happy Wire modder.
Thanks in advance.
Press enter after writing a line.
Hello There!
I like programming c++ and to control the RS232 Port. It's old, but simple ^^.
1 year ago I downloaded the PC-MOD project and used it for fun.
Now I'm going to add I/O Devices to my WIRE-Contraptions and try to control them from my laptop. I made an RS232 Expression that can send and recieve data trough 2packet wires. It's working good and i like it because I designed it like a real RS232 Controller, with C(lear)T(o)S(end), R(eady)T(o)S(end),Txd,Rxd.D(ata)S(et)R(eady), and so on...
But I have got a little Transmission Problem:
If anyone sends a package on a wire, stays the package on the wire until the next comes or is it only there for a moment?
I'm using "~" and it works, but could someone read the package after my first read?
I'd be glad for any answer. And sorry for not-so-correct grammar.
KFAF
I'm not entirely sure that I understand what you mean.
But whatever is sent through a wire in wiremod, stays there until something else is sent. Meaning, the inputs of expressions will always remember their last input.
However, if you refer to Expression1 PACKETS, the ones that are used with send/recv, then they will over time be overwritten with other packages. So they are not safe to be read after initially received. Often there is no problem, but from a critical perspective, they must only be read during ~, they are not guaranteed to return the correct values after that.
Also, if you haven't moved to Expression 2, I would suggest doing so, there is very little difference and it has a proper editor and is simply better in every way.
PS. Your grammar is good![]()
hey, im really new to expression 2 and i have used it to build like only 2 contraptions, but i based them mainly around if and elseif commands.
i thought id try something easy and new and im stuck on the first thing i try...
i wrote: "Input * 10 = output" and it wont validate unless i make it "Input * 10 == output" which doesnt work at all.
please help, this has been frustrating me for hours, i just need the input to multiply and give an output. what am i doing wrong![]()
Before an = you can only have a single variable.
Output = Input * 10
(For clarification of this "just woken up" post, look below.)
Last edited by Bull; 01-21-2010 at 09:32 PM.
A=B, A is assigned the value of B. (Bull's explanation didn't seem very clear)
(\__/) <- Put this bunny in your sig and help him to rule the world!
(='.'=) PM me code and I'll send it back optimized if possible. (I find it fun dammit!)
(")_(") Expression Gate 2 Wiki Help us update the wiki! Together we can make it more up to date than the SVN! ...
Bookmarks