+ Reply to Thread
Page 21 of 40 FirstFirst ... 11192021222331 ... LastLast
Results 201 to 210 of 399

Thread: Expression Gate Documentation

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

    Default Re: Expression Gate Documentation

    Quote Originally Posted by Kirk View Post
    A word of warning... if you edit your script inside the GUI after having written it outside the GUI make sure it's not longer than 60 lines because anything over that will be deleted.

    [edit] On that note, is it actually possible to have a script longer than 60 lines? My gate is suspiciously complaining a ';' is missing around line 59... [/edit]
    That is due to a bug in gmod that causes random garbage to be entered into empty lines. Nothing I can do really, either use the in-game notepad or an out-of-game notepad.

  2. #202
    Wire Amateur Kirk's Avatar
    Join Date
    Feb 2008
    Location
    The Netherlands
    Posts
    60

    Default Re: Expression Gate Documentation

    No, I mean that my outside-gmod script apparently cannot be longer than 60 lines. I shortened it to less then 60 lines and then it worked.
    Quote Originally Posted by LuaPineapple
    WTF does it mean "unable to read int expected int but got int"?

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

    Default Re: Expression Gate Documentation

    Quote Originally Posted by Kirk View Post
    No, I mean that my outside-gmod script apparently cannot be longer than 60 lines. I shortened it to less then 60 lines and then it worked.
    Ah yes, but I was referring to the error you were having in-game (line 59)

  4. #204
    Wire Amateur Kirk's Avatar
    Join Date
    Feb 2008
    Location
    The Netherlands
    Posts
    60

    Default Re: Expression Gate Documentation

    I wasn't having the error because I saved in-game... When I saved in-game after just changing some value it just truncated the script to 60 lines and the script still "worked" (it just didn't do anything, since its outputs were not given a value anymore).

    When I appended to my file again afterwards outside the game the error came up. It also seems to only come up if there is a conditional spanning over the 60 line limit... I didn't have any trouble before I started using the conditional.
    Quote Originally Posted by LuaPineapple
    WTF does it mean "unable to read int expected int but got int"?

  5. #205
    Wire Sofaking Fatal_Exception's Avatar
    Join Date
    Oct 2007
    Location
    New Zealand
    Posts
    412

    Default Re: Expression Gate Documentation

    As I understand it, each line is stored in a cvar, of which there are 60, which gives the hard limit of lines per script.

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

    Default Re: Expression Gate Documentation

    Exactly as fatal said, anything over 60 lines will dissappear because there are no CVARs allocated for those lines. The reason it works when you don't have a conditional span over the last line is because anything else won't cause an error, but will simply just dissappear instead.

  7. #207
    Wire Amateur Kirk's Avatar
    Join Date
    Feb 2008
    Location
    The Netherlands
    Posts
    60

    Default Re: Expression Gate Documentation

    Ok, thanks, I'll have to keep that in mind.
    Quote Originally Posted by LuaPineapple
    WTF does it mean "unable to read int expected int but got int"?

  8. #208
    Wire Amateur nutsandy's Avatar
    Join Date
    Feb 2008
    Posts
    69

    Default Re: Expression Gate Documentation

    Could anyone please explain to me the use of the concommand function? I've used it to do a few things but i can't for the life of me work out how to get it to say a variable. Please could someone make me an example that works? because i've tried everything i can think of.

    BTW, Awesome chip, i don't think i'd ever be able to use the old chips at all after this

  9. #209
    Wire Sofaking Fatal_Exception's Avatar
    Join Date
    Oct 2007
    Location
    New Zealand
    Posts
    412

    Default Re: Expression Gate Documentation

    concommand('say $Var') should say whatever the variable Var is.

  10. #210
    Wire Amateur nutsandy's Avatar
    Join Date
    Feb 2008
    Posts
    69

    Default Re: Expression Gate Documentation

    Quote Originally Posted by Fatal_Exception View Post
    concommand('say ') should say whatever the variable Var is.
    Nope.

    N@TestExpression
    I@Button
    O@
    Var=1234
    Button->concommand('say $Var');

    All the above did was make me say "Var" not the "1234" that i had assigned to Var.

+ Reply to Thread
Page 21 of 40 FirstFirst ... 11192021222331 ... LastLast

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