+ Reply to Thread
Results 1 to 8 of 8

Thread: E2 chat response

  1. #1
    Wire Noob [FS] Idyllic's Avatar
    Join Date
    Apr 2010
    Location
    washington
    Posts
    3

    Question E2 chat response

    when i am using a E2 chip with lastSaid() and E:lastSaid() they don't seem to be outputting anything. i am on singleplayer so that may have something to do with it.

    i used
    if(Button == 1) {Ind=1,print(lastSaid()),print("hello sir")}
    print(lastSaid())

    when i pushed the button the indicator went off and it printed "hello sir" to the chat area but it didn't print last said.

    i also tried
    if(lastSaid() == "Hi") {print("hello sir")}
    and that too didn't work. is there something i need to do to make this work? any advice would be apreciated

  2. #2
    Spucatum Tauri Bull's Avatar
    Join Date
    Jun 2008
    Location
    Finland
    Posts
    6,009

    Default Re: E2 chat response

    Hmm, that's weird. Regardless of it being singleplayer, lastSaid() should return the last thing you typed.
    Can you try to add runOnChat(1) ?
    My signature has a point.
    Quote Originally Posted by Squeakyneb View Post
    when l3ulletje says do it, do it.
    That

    Quote Originally Posted by Anticept View Post
    By the way, Bull is in charge.

  3. #3
    Wire Sofaking ktccd's Avatar
    Join Date
    Sep 2009
    Posts
    751

    Default Re: E2 chat response

    IDK about that. lastSaid should work anyway, as long as it runs at all (like runOnTick(1)).

    Also, the above code... the horror!
    Try updating your wiremod to see if it was broken?

  4. #4
    Wire Noob [FS] Idyllic's Avatar
    Join Date
    Apr 2010
    Location
    washington
    Posts
    3

    Default Re: E2 chat response

    well the biggest problem is that it seems to not be retrieving the last thing said. even if runOnChat(1)

  5. #5
    Spucatum Tauri Bull's Avatar
    Join Date
    Jun 2008
    Location
    Finland
    Posts
    6,009

    Default Re: E2 chat response

    Can you post your entire E2 code and a condump.
    I start to think that your wire is broken
    My signature has a point.
    Quote Originally Posted by Squeakyneb View Post
    when l3ulletje says do it, do it.
    That

    Quote Originally Posted by Anticept View Post
    By the way, Bull is in charge.

  6. #6
    Wiremod Helper Lyinginbedmon's Avatar
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,659

    Default Re: E2 chat response

    Alternatively I can sound very patronising and ask: If you're on single player, your chat is the only thing in use. Have you actually tried saying anything before pushing the button?

    The Olympus Technologies drones, totally not SkyNet in Gmod form.
    Cronus: The Ultimate Drone, definitely SkyNet in Gmod form.
    The gBrain Project, the drone controls system that thinks it's better than you

  7. #7
    Wire Sofaking ktccd's Avatar
    Join Date
    Sep 2009
    Posts
    751

    Default Re: E2 chat response

    You mean that he would've expected to see the last thing said without there being any said thing at all?

  8. #8
    Wire Noob [FS] Idyllic's Avatar
    Join Date
    Apr 2010
    Location
    washington
    Posts
    3

    Default Re: E2 chat response

    my code i am running is very straightforward:
    @name Comp control
    @inputs Buttons
    @outputs Ind

    runOnChat(1)
    Said=lastSaid():explode(" ")
    if(Said[2, string] == "hi") {print("hello sir")}
    if(Buttons == 1) {Ind=1,print(lastSaid()),print("hello sir")}
    print(lastSaid())

    all of this is run with something having been said beforehand and it failes to read what was last said. i even updated my wire and all of my other E2 functions work just not lastSaid()

+ Reply to Thread

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