+ Reply to Thread
Page 40 of 40 FirstFirst ... 30383940
Results 391 to 399 of 399

Thread: Expression Gate Documentation

  1. #391
    Wire Sofaking Beer's Avatar
    Join Date
    Jul 2007
    Location
    Dallas, Texas
    Posts
    1,357

    Default Re: Expression Gate Documentation

    Quote Originally Posted by Syranide View Post
    Yeah, I'll make it so that it saves to a temporary file every minute if something has changed to the expression.

    I know exactly what you mean as well, I virtually never ever saved a single expression I made, I either duped the contraption or just left it behind when I was done. So yeah, when something did happen in the mean time, it was all lost.
    Great, thanks. I just realized I posted my question in the wrong thread :huh:

  2. #392
    Wire Noob Quathan's Avatar
    Join Date
    Apr 2009
    Posts
    4

    Default Re: Expression Gate Documentation

    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.

  3. #393
    Spucatum Tauri Bull's Avatar
    Join Date
    Jun 2008
    Location
    Finland
    Posts
    6,005

    Default Re: Expression Gate Documentation

    Press enter after writing a line.
    My signature has a point.
    Quote Originally Posted by Squeakyneb View Post
    when l3ulletje says do it, do it.
    That

    Quote Originally Posted by Anticept View Post
    By the way, Bull is in charge.

  4. #394
    Wire Noob Quathan's Avatar
    Join Date
    Apr 2009
    Posts
    4

    Default Re: Expression Gate Documentation

    Quote Originally Posted by l3ulletje View Post
    Press enter after writing a line.
    You're a genius, thanks! It worked.

  5. #395
    Wire Noob Kfaf's Avatar
    Join Date
    May 2009
    Posts
    19

    Default Re: Expression Gate Documentation

    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

  6. #396
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: Expression Gate Documentation

    Quote Originally Posted by Kfaf View Post
    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

  7. #397
    Wire Noob wildybill's Avatar
    Join Date
    Jan 2010
    Posts
    1

    Default Re: Expression Gate Documentation

    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

  8. #398
    Spucatum Tauri Bull's Avatar
    Join Date
    Jun 2008
    Location
    Finland
    Posts
    6,005

    Default Re: Expression Gate Documentation

    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 10:32 PM.
    My signature has a point.
    Quote Originally Posted by Squeakyneb View Post
    when l3ulletje says do it, do it.
    That

    Quote Originally Posted by Anticept View Post
    By the way, Bull is in charge.

  9. #399
    Wire Tutor chinoto's Avatar
    Join Date
    Apr 2008
    Location
    Brooklyn Park, MN. Lost my thumbdrive yet again...
    Posts
    1,983

    Default Re: Expression Gate Documentation

    A=B, A is assigned the value of B. (Bull's explanation didn't seem very clear)
    (\__/) Expression 2 Resources: E2 Beginner's Guide | E2 Formatting Guide | E2 Function Reference | E2 Examples | Me
    (='.'=) PM me code and I'll send it back optimized if possible. (I find it fun dammit!)
    (")_(") Drunkie referring to an E2: "It's obvious that Chinoto made this, his coding style is all over it."

+ Reply to Thread
Page 40 of 40 FirstFirst ... 30383940

Similar Threads

  1. !!!OLD!!! Documentation of hi-speed devices
    By Black Phoenix in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 98
    Last Post: 02-10-2011, 07:41 PM
  2. !!!OLD!!! ZGPU Documentation
    By Black Phoenix in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 38
    Last Post: 11-29-2010, 04:54 PM
  3. !!!OLD!!! ZCPU Documentation
    By Black Phoenix in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 144
    Last Post: 09-05-2010, 03:46 AM
  4. Moongate Documentation
    By BlackNecro in forum Wiremod Addons & Coding
    Replies: 24
    Last Post: 04-22-2009, 01:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots