+ Reply to Thread
Results 1 to 6 of 6

Thread: Expression 2 Bug? - help

  1. #1
    Wire Noob Itsab's Avatar
    Join Date
    Jan 2010
    Posts
    3

    Question Expression 2 Bug? - help

    Hello,

    I have a problem with the Expression 2 Gate. I already explained my problem in the german Garry's Mod forum, but it seems that nobody undestands what my problem is.
    So here's my problem (It came up first, after updating wiremod via TortoiseSVN two days ago.):

    Everytime I use paranthesis (), I get the validation error: "Right paranthesis ()) without matching left paranthesis."

    It doesn't matter in which context I use them (if-structures or something else). I can even just open a new E2 delete everything and write "()" and I get the same validation error. But strangely it doesn't happen with older projects and they contain tons of paranthesis. But as soon as I edit the old projects and insert paranthesis I get the error again.

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

    Default Re: Expression 2 Bug? - help

    Post some code showing where you get errors.

  3. #3
    Wire Amateur zinen's Avatar
    Join Date
    Jun 2007
    Location
    DK
    Posts
    48

    Default Re: Expression 2 Bug? - help

    You properly just wrote something wrong, post the code if you want help.

    If you can fly too, say Weeeee

  4. #4
    Wire Noob Itsab's Avatar
    Join Date
    Jan 2010
    Posts
    3

    Default Re: Expression 2 Bug? - help

    It doesn't matter.
    I just write:
    Code:
    @name
    @inputs
    @outputs
    @persist
    @trigger all
    
    ()
    Or with an if statement. It really doesn't matter. As soon as paranthesis are in the code I get the error.

  5. #5
    billywitchdoctor.com Whosdr's Avatar
    Join Date
    Dec 2008
    Posts
    2,300

    Default Re: Expression 2 Bug? - help

    () on its own does not work. try (0).
    .siht daer ot gniyrt emit detsaw ev'uoY

  6. #6
    Wire Noob Itsab's Avatar
    Join Date
    Jan 2010
    Posts
    3

    Default Re: Expression 2 Bug? - help

    Ok forgive me. I made a mistake. I did some research and noticed it only comes up with if-statements. For example with:
    Code:
    @name test
    @inputs Input
    @outputs Output
    @persist
    @trigger all
    
    if (Input)
    {
        Output =  1
    }
    else
    {
        Output = 0
    }
    
    #This example is without error:
    Output = 1*(Output - 1)
    But if I validate old projects with if-statements, there are no errors as long as I don't add a new if-statement.

    EDIT: The problem seems to be solved. I don't know how, because the same Expression that didn't work some hours ago, is now without errors. Sorry
    Last edited by Itsab; 01-24-2010 at 06:43 AM.

+ Reply to Thread

Similar Threads

  1. Need help with expression for hoverdrive controller - first expression
    By BuddyTheSquirrel in forum Expression 2 Discussion & Help
    Replies: 3
    Last Post: 10-18-2009, 12:09 PM
  2. Expression Gate : Can't save expression
    By m0nday in forum Bug Reports
    Replies: 2
    Last Post: 08-06-2008, 12:29 PM

Tags for this Thread

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