+ Reply to Thread
Page 11 of 31 FirstFirst ... 91011121321 ... LastLast
Results 101 to 110 of 308

Thread: Expression Gate

  1. #101
    Forgotten Lapsus's Avatar
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    239

    Thumbs down

    Thanks!

    But, I'm not sure about that error, that really shouldn't happen, are you running Beta 6? I will have to look into it but I'm a little short of time at the moment and I know that it takes a little work to get GMod10 running in dedicated (not like CSS etc). If anyone else is running dedicated and haven't had any problem please tell me.[/b]
    Wow, that was a fast reply :3

    Okay, I think that I&#39;ve found the problem. The fix for the ulx commands breaking over time bug conflicts with this addon! As far as I know, it stops other files from modifying the "_" variable. I&#39;ll post the source since it&#39;s really small <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>_ = nil -- Make sure we&#39;re starting out right.
    local old__newindex = _G.__newindex
    setmetatable( _G, _G )
    function _G.__newindex( t, k, v )
    if k == "_" then
    -- If you care enough to fix bad scripts uncomment this following line.
    error( "attempt to modify global variable &#39;_&#39;", 2 )
    return
    end

    if old__newindex then
    old__newindex( t, k, v )
    else
    rawset( t, k, v )
    end
    end</div>

    I don&#39;t know how to work around this, but some solution would be nice. As of now I&#39;m taking the broken ulx over the broken expression gate, but I hope to see them both working sometime in the future o.o
    Lick the capacitor, lose your tongue, visual cortex and heart function.
    -SkilletAudio

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

    Default

    Wow, that was a fast reply :3

    Okay, I think that I&#39;ve found the problem. The fix for the ulx commands breaking over time bug conflicts with this addon! As far as I know, it stops other files from modifying the "_" variable. I&#39;ll post the source since it&#39;s really small <div class='codetop'>CODE
    <div class='codemain' style='height:200px;white-spacere;overflow:auto'>_ = nil -- Make sure we&#39;re starting out right.
    local old__newindex = _G.__newindex
    setmetatable( _G, _G )
    function _G.__newindex( t, k, v )
    if k == "_" then
    -- If you care enough to fix bad scripts uncomment this following line.
    error( "attempt to modify global variable &#39;_&#39;", 2 )
    return
    end

    if old__newindex then
    old__newindex( t, k, v )
    else
    rawset( t, k, v )
    end
    end</div>

    I don&#39;t know how to work around this, but some solution would be nice. As of now I&#39;m taking the broken ulx over the broken expression gate, but I hope to see them both working sometime in the future o.o[/b][/quote]

    it&#39;s quite hilarious if it works now... I&#39;m posting the beta 7 with a small fix... if it works now I&#39;ll tell you what was wrong and laugh my ass of at the same time

    Huge thanks btw, this explains the problem someone else was having with ULX too.

    [attachment=156:WireModExpessionBeta7ULXFix.zip]

    Here is a rediculous fix I did, please tell me if you get the same error or something else. (Note it might still not work correctly, but it should fail on another line now instead, but seriously, what should be the purpose of disallowing modification of _?)
    NOTE: This is beta 7, and it has not been polished although it seems to work correctly.
    Attached Files Attached Files

  3. #103
    Forgotten Lapsus's Avatar
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    239

    Cool

    it&#39;s quite hilarious if it works now... I&#39;m posting the beta 7 with a small fix... if it works now I&#39;ll tell you what was wrong and laugh my ass of at the same time

    Huge thanks btw, this explains the problem someone else was having with ULX too.

    [attachment=156:WireModExpessionBeta7ULXFix.zip]

    Here is a rediculous fix I did, please tell me if you get the same error or something else. (Note it might still not work correctly, but it should fail on another line now instead, but seriously, what should be the purpose of disallowing modification of _?)
    NOTE: This is beta 7, and it has not been polished although it seems to work correctly.[/b]
    Okay, I&#39;ve just tested it out, and it works, alongside the ulx fix no less
    The only error that I get is from an unexpected ; in one of my files for it :3

    I&#39;ve got no idea as to why ULX would disallow modification of the _ variable, but it does stop the commands from breaking, so I don&#39;t mind either way. Thanks a million, I didn&#39;t expect the future to come so soon

    So then, what was it that was wrong, and why is it so funny?
    Lick the capacitor, lose your tongue, visual cortex and heart function.
    -SkilletAudio

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

    Default

    Okay, I&#39;ve just tested it out, and it works, alongside the ulx fix no less
    The only error that I get is from an unexpected ; in one of my files for it :3

    I&#39;ve got no idea as to why ULX would disallow modification of the _ variable, but it does stop the commands from breaking, so I don&#39;t mind either way. Thanks a million, I didn&#39;t expect the future to come so soon

    So then, what was it that was wrong, and why is si so funny?[/b]
    Well, uhm, I had comments for each grammar, but real comments become some horribly hard to read in notepad++ so I thought, why not just put them in a string and shove them into _ for now instead ...

    But apparently, that was not appreciated then.

  5. #105
    Wire Noob Dimencia's Avatar
    Join Date
    Mar 2007
    Location
    North Carolina
    Posts
    25

    Default

    Haha, this should fix the problems I&#39;ve been having too, then? I guess something in ULX would change the _ variable when it shouldn&#39;t ... and they tried to fix it? xD

  6. #106
    Age
    Age is offline
    Wirererer Age's Avatar
    Join Date
    Mar 2007
    Location
    Ukraine
    Posts
    159

    Default

    Could someone explain me meaning of these symbols: %, +=, ==, =, !
    I&#39;m new to expression gate and I dont know what do they mean(

  7. #107
    Age
    Age is offline
    Wirererer Age's Avatar
    Join Date
    Mar 2007
    Location
    Ukraine
    Posts
    159

    Default

    Code:
    N@Locker
    I@A B C CLOSE1 CLOSE2 OPENED LOCKED OPEN
    O@STATUS LENGTH
    A==1 -> Z=1;
    B==1 -> X=1;
    C==1 -> Y=1;
    J=Z+X+Y
    J==3 -> LENGTH=OPENED, STATUS=1;
    J<3 -> LENGTH=LOCKED, STATUS=0;
    J>3 -> LENGTH=LOCKED, STATUS=0;
    (CLOSE1+CLOSE2)>=1 -> Z=0, X=0, Y=0;
    OPEN==1 -> Z=1, X=1, Y=1;
    Hehe! My first program for Expression gate
    Thank you, Syranide!

  8. #108
    Wirererer XeonXT's Avatar
    Join Date
    Mar 2007
    Posts
    199

    Default

    Hey Syranide is there no such thing as "multi-lined" edits in the GMod GUI? It would be really nice to not have to click on the next edit box when you want a new line. I am aware that you can use a pipe to separate lines, but it would still look cleaner if we could have a multi-line edit.

    Thanks
    "As far as I can remember, Garry has always had this pissy, elitist attitude towards others. "I&#39;m better than you all." That&#39;s his philosophy. And that&#39;s why he&#39;s hated. If he had been nice and respectful in the first place, he wouldn&#39;t have a bunch of pissed-off enemies biting at his ass every chance they get."

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

    Default

    Could someone explain me meaning of these symbols: %, +=, ==, =, !
    I&#39;m new to expression gate and I dont know what do they mean([/b]
    & is modulo (17 / 5 = 3*5 + 2 ... so the answer is 2... the remainder of the division)
    += addition assignment (A+=2 .. A becomes A+2)´
    == equality (2==2 (becomes 1) ... 5==0 (becomes 0))
    = assignment (A = 2, assign 2 to A so that A becomes 2)
    ! not (!5 = 0, !1 = 0, !0 = 1)

    Code:
    N@Locker
    I@A B C CLOSE1 CLOSE2 OPENED LOCKED OPEN
    O@STATUS LENGTH
    A==1 -> Z=1;
    B==1 -> X=1;
    C==1 -> Y=1;
    J=Z+X+Y
    J==3 -> LENGTH=OPENED, STATUS=1;
    J<3 -> LENGTH=LOCKED, STATUS=0;
    J>3 -> LENGTH=LOCKED, STATUS=0;
    (CLOSE1+CLOSE2)>=1 -> Z=0, X=0, Y=0;
    OPEN==1 -> Z=1, X=1, Y=1;
    Hehe! My first program for Expression gate
    Thank you, Syranide! [/b]
    !

    Hey Syranide is there no such thing as "multi-lined" edits in the GMod GUI? It would be really nice to not have to click on the next edit box when you want a new line. I am aware that you can use a pipe to separate lines, but it would still look cleaner if we could have a multi-line edit.

    Thanks [/b]
    Believe me, there is nothing else I would want to implement, but I have no idea how, I think it is possible somehow (and would allow for wider windows too, I will definately look into this when I have more time because it would truly step it up a notch in usability and ease of use.)

  10. #110
    Wire Sofaking tomb332's Avatar
    Join Date
    Mar 2007
    Location
    Birmigham,UK
    Posts
    1,377

    Default

    Believe me, there is nothing else I would want to implement, but I have no idea how, I think it is possible somehow (and would allow for wider windows too, I will definately look into this when I have more time because it would truly step it up a notch in usability and ease of use.)[/b]
    I know black pheonix was requesting them a bit ago and garry said &#39;You can code them yourselves using whats there&#39; or something like that anyway
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

    Super Easy Wire Download

+ Reply to Thread
Page 11 of 31 FirstFirst ... 91011121321 ... LastLast

Similar Threads

  1. Expression Gate : Can't save expression
    By m0nday in forum Bug Reports
    Replies: 2
    Last Post: 08-06-2008, 12:29 PM
  2. Expression Gate help
    By Unsavory in forum Installation and Malfunctions Support
    Replies: 3
    Last Post: 06-10-2007, 05:25 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