+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: E2 List of codes in-game

  1. #1
    Wirererer ROFLBURGER's Avatar
    Join Date
    Jun 2009
    Location
    Canada, Eh?
    Posts
    135

    Lightbulb E2 List of codes in-game

    A little button when clicked shows a list of all the E2 commands from owner():setcolor to hint("[insert insulting text here]").
    It would be better instead of pressing Shift+Tab multiple times until you get arthritis. This wire-addon would be great for wire beginners.
    Ŗ?₣ĻḄỰŖĢỆŖ:Kevin you need to get rid of the fire on the C4!!!1
    Kevin: Why
    Bill: hey burger is that your base on fire?
    Also:
    My Steam profile
    [GN]Build Combat Server #2|PHX3|WIRE|Weather

  2. #2
    Wirererer Jeremydeath's Avatar
    Join Date
    Jun 2008
    Location
    Texas, USA
    Posts
    383

    Default Re: E2 List of codes in-game

    Although it has been sugested before, I would support a function list.

    How about an automatic dump of the functions into a file that can be loaded by E2 on startup in a file like "_funclist.txt"

    So like:
    [highlight=E2]
    abs(N)
    rand()
    rand(N)
    rand(N,N)
    randint(N,N,N)
    owner()
    entity()
    applyForce()
    etc....[/highlight]

    EDIT: Also, could someone please update the function highlighting for E2 on the forms? It's really out of date.
    Jeremydeath's Wire Addons - Try Them... NOW!

  3. #3
    Wirererer ROFLBURGER's Avatar
    Join Date
    Jun 2009
    Location
    Canada, Eh?
    Posts
    135

    Default Re: E2 List of codes in-game

    Quote Originally Posted by Jeremydeath View Post
    Very smart shit
    Thats an even better idea to my idea that someone probly thought of before me.
    Ŗ?₣ĻḄỰŖĢỆŖ:Kevin you need to get rid of the fire on the C4!!!1
    Kevin: Why
    Bill: hey burger is that your base on fire?
    Also:
    My Steam profile
    [GN]Build Combat Server #2|PHX3|WIRE|Weather

  4. #4
    Wire Sofaking ShadowBrain's Avatar
    Join Date
    Oct 2008
    Location
    Where you live.
    Posts
    910

    Default Re: E2 List of codes in-game

    Quote Originally Posted by Jeremydeath View Post
    Although it has been sugested before, I would support a function list.

    How about an automatic dump of the functions into a file that can be loaded by E2 on startup in a file like "_funclist.txt"

    So like:
    [highlight=E2]
    abs(N)
    rand()
    rand(N)
    rand(N,N)
    randint(N,N,N)
    owner()
    entity()
    applyForce()
    etc....[/highlight]

    EDIT: Also, could someone please update the function highlighting for E2 on the forms? It's really out of date.
    and then have #*description of function here* behind each one.
    I maek 3D mdoels adn paly veido gaems!

  5. #5
    Developer Matte's Avatar
    Join Date
    Jan 2009
    Location
    Norway
    Posts
    3,109

    Default Re: E2 List of codes in-game

    Just make a function in like HP's function here:
    Code:
    funclist = ""
    for k, _ in pairs(wire_expression2_funclist) do
        funclist = funclist .. k .. " "
        print(k)
    end
    file.Write("_funclist.txt", funclist)
    And put it in a lua file ran at startup.
    "If anybody says he can think about quantum physics without getting giddy, that only shows he has not understood the first thing about them."
    -- Niels Bohr

  6. #6
    Wire Sofaking nescalona's Avatar
    Join Date
    Apr 2007
    Location
    Shoreline, Washington
    Posts
    1,299

    Default Re: E2 List of codes in-game

    Quote Originally Posted by ShadowBrain View Post
    and then have #*description of function here* behind each one.
    :agree:

    Write a script to regenerate the list on every SVN update, and automatically reupload it to the wiki, linked from the E2 guide page.

  7. #7
    Wirererer Jeremydeath's Avatar
    Join Date
    Jun 2008
    Location
    Texas, USA
    Posts
    383

    Default Re: E2 List of codes in-game

    Maybe E2Doc could be incorporated. It's not on tones of functions, but it would be useful for the ones that do have it.
    Jeremydeath's Wire Addons - Try Them... NOW!

  8. #8
    Wire Sofaking nescalona's Avatar
    Join Date
    Apr 2007
    Location
    Shoreline, Washington
    Posts
    1,299

    Default Re: E2 List of codes in-game

    E2Doc? Is that like Javadoc?

  9. #9
    Wirererer Jeremydeath's Avatar
    Join Date
    Jun 2008
    Location
    Texas, USA
    Posts
    383

    Default Re: E2 List of codes in-game

    Quote Originally Posted by nescalona View Post
    E2Doc? Is that like Javadoc?
    No, not really. It's an internal thing that Tommy Lobo wrote. Basicly it generates Wiki documentation from comments in the LUA code of the functions.

    It seems to work like this:
    Code:
    --- Comment Goes Here <ImAVar> [http://www.ImALink.com] [[ImAWikiLink]]
    So you could do like:
    Code:
    --- runs [[string.match]](<this>, <pattern>, <position>) and returns the sub-captures as an array.
    e2function array string:match(string pattern, position)
        local ret = { string.match(this, pattern, position) }
        return ret
    end
    And it would generate:
    Code:
    S:match(S2,N) 	 R 	 runs string.match(S, S2, N) and returns the sub-captures as an array.
    Jeremydeath's Wire Addons - Try Them... NOW!

  10. #10
    Wire Sofaking Wizard of Ass's Avatar
    Join Date
    May 2009
    Location
    Germany Bremerhaven
    Posts
    1,044

    Default Re: E2 List of codes in-game

    I got bored so i made some e2's containing all functions.

    I hope that help a little bit.
    Attached Files Attached Files

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Help? I can't edit my e2 codes.
    By killer bob in forum Off-Topic
    Replies: 6
    Last Post: 08-25-2009, 02:24 AM
  2. Pasting codes?
    By Bamba1293 in forum Off-Topic
    Replies: 10
    Last Post: 08-17-2009, 02:47 PM
  3. long CPU codes is not working in servar
    By hoyo321 in forum Installation and Malfunctions Support
    Replies: 11
    Last Post: 08-08-2009, 01:02 AM
  4. error codes
    By iwasinnamuknow in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 4
    Last Post: 06-21-2009, 01:20 PM
  5. What is the Black List, and what is the White List?
    By vortexnl in forum Expression 2 Discussion & Help
    Replies: 4
    Last Post: 05-21-2009, 03:54 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