+ Reply to Thread
Page 32 of 37 FirstFirst ... 223031323334 ... LastLast
Results 311 to 320 of 361

Thread: E2 User Defined Functions

  1. #311
    Wire Noob GhostBuster's Avatar
    Join Date
    Oct 2007
    Posts
    13

    Default Re: E2 User Defined Functions

    Quote Originally Posted by ShadowBrain View Post
    Sounds good, got any ETA on the official support?
    The fact that it is a week as of this post and we still havent got a reply isnt a promising sign, sadly as I am looking forward to the full release. Out of interest, what needs to be achieved before this can deployed, whats holding it back?

  2. #312
    aka Colonel Never Online Colonel Thirty Two's Avatar
    Join Date
    Oct 2009
    Posts
    2,683
    Blog Entries
    5

    Default Re: E2 User Defined Functions

    Quote Originally Posted by GhostBuster View Post
    The fact that it is a week as of this post and we still havent got a reply isnt a promising sign, sadly as I am looking forward to the full release. Out of interest, what needs to be achieved before this can deployed, whats holding it back?
    To answer his question: When it's done.
    Things that need to be done are outlined on the bottom of page 24 of this thread, but most of them are already implemented.
    The only thing that is holding it back is my recent lack of interest to work on it, or anything gmod related.

  3. #313
    Wire Noob echo1001's Avatar
    Join Date
    Mar 2008
    Posts
    7

    Default Re: E2 User Defined Functions

    Hey, the compiler for this seems to be broken with the latest wire update. Could someone fix this?

  4. #314
    aka Colonel Never Online Colonel Thirty Two's Avatar
    Join Date
    Oct 2009
    Posts
    2,683
    Blog Entries
    5

    Default Re: E2 User Defined Functions

    Quote Originally Posted by echo1001 View Post
    Hey, the compiler for this seems to be broken with the latest wire update. Could someone fix this?
    The only update to any E2 compiler files is the wrong line fix, which isn't essential, and if you installed this before the update, you can just update your wiremod and SVN will merge the two changes to tokenizer.lua.

    EDIT: SVN Update: Merged with Syranide's patch.
    Last edited by Colonel Thirty Two; 08-22-2010 at 09:04 AM.

  5. #315
    ส็็็็็็็็็็็็็็็็ส็็ ็็็็็ Dav1d's Avatar
    Join Date
    May 2009
    Posts
    1,118

    Default Re: E2 User Defined Functions

    When using this code:
    Code:
    virtCompile("function Test(){selfDestruct()}")
    print(virtLastError())
    This is printed:
    Code:
    ...lua\entities\gmod_wire_expression2\base\compiler.lua:124: attempt to index local 'origin' (a nil value)
    Seems like functions cannot into virtualised E2.
    (And yes, functions work perfectly outside of virtualised code. Everything is installed correctly and this is definitely a bug.)

  6. #316
    Mario, hard at work Filipe's Avatar
    Join Date
    Jun 2007
    Location
    Portugal - Lisbon
    Posts
    401
    Blog Entries
    1

    Default Re: E2 User Defined Functions

    I also can't pass functions as arguments to another function:

    Code:
    function MyFunc(F:function) {
    
    }
    This seems to be a collision with the function() function.
    Last edited by Filipe; 09-10-2010 at 05:28 AM.
    beep boop

  7. #317
    Wire Noob MoPaZ's Avatar
    Join Date
    Mar 2007
    Posts
    6

    Default Re: E2 User Defined Functions

    I don't know if anyone else has reported this already, but i think i found a bug.

    Code:
    @name Test
    @inputs Write
    @outputs Val
    @persist Test:function
    @trigger none
    
    interval(100)
    
    if(first()){
        Val = 0
        
        function Test(){
            
            print("Test"+" "+Val)
            Val++
            
        }
    }
    
    if(Write){
        Test()
    }
    The print outputs it right, with Val increasing every time Input Write goes 1.
    But the E2 chip itself doesn't change it's output variable, it just changes to one and stays there.

    Or maybe i'am doing something wrong?
    Anyways great work on this!

  8. #318
    Wire Amateur Maxpm's Avatar
    Join Date
    Sep 2010
    Posts
    33

    Default Re: E2 User Defined Functions

    This won't work on a server without this installed, will it?
    Code:
    Declare variables, not war.

  9. #319
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,662
    Blog Entries
    1

    Default Re: E2 User Defined Functions

    You need this addon on the server to be able to use it. E2 is server-side.

  10. #320
    Wire Amateur Ph3wl's Avatar
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    32

    Default Re: E2 User Defined Functions

    this addition to E2 gonna be forgotten? lmao
    Beta:
    CBNS (Centralized Bank Network System)
    RSA Public-Key Cryptography

    Alpha:
    GPU/EGP/E2 WYSIWYG & IDE Editor
    NS2 (Network System 2) - Network equipment and Standards for Wiremod. Highly improved from NS1 used in CBNS.

    Upcoming:
    RingZero - An OS Kernel for Wiremod.

+ Reply to Thread
Page 32 of 37 FirstFirst ... 223031323334 ... LastLast

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