Announcement

Collapse

Forum Rules

  • No flaming or derogatory remarks, directly or through insinuation.
  • No discussion, sharing or referencing illegal software such as hacks, keygen, cracks and pirated software.
  • No offensive contents, including but not limited to, racism, gore or pornography.
  • No excessive spam/meme, i.e. copious one liners in a short period of time, typing with all caps or posting meme responses (text/image).
  • No trolling, including but not limited to, flame incitation, user provocation or false information distribution.
  • No link spamming or signature advertisements for content not specific to Dota 2.
  • No Dota 2 key requests, sell, trade etc.
  • You may not create multiple accounts for any purpose, including ban evasion, unless expressly permitted by a moderator.

  • Please search before posting. One thread per issue. Do not create another thread if there is an existing one already.
  • Before posting anything, make sure you check out all sticky threads (e.g., this). Do not create new threads about closed ones.
  • It is extremely important that you post in correct forum section.

  • Balance discussion only in Misc.
  • All art related (such as hero model) feedbacks go to Art Feedback Forum.
  • All matchmaking feedback should go here: Matchmaking Feedback
  • All report/low priority issues should go here: Commend/Report/Ban Feedback
  • No specific workshop item feedback. These should go to workshop page of that item.
  • When posting in non-bugs section (such as this), use [Bugs], [Discussion] or [Suggestion] prefix in your thread name.



In case you object some action by a moderator, please contact him directly through PM and explain your concerns politely. If you are still unable to resolve the issue, contact an administrator. Do not drag these issues in public.



All rules are meant to augment common sense, please use them when not conflicted with aforementioned policies.
See more
See less

[Console] How to echo multiple lines into screen?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Console] How to echo multiple lines into screen?

    How do I echo multiple lines on the screen?
    I used:

    Code:
    developer 1
    con_filter_enable 1
    con_filter_text "!--"
    contimes 8
    con_notifytime 3
    
    //When in game I uses
    echo "!--1 Line"
    echo "!--2 Line"
    echo "!--3 Line"
    echo "!--4 Line"
    but it comes out like this: (Screenshot)

    Code:
    !--1 Line !--2 Line !--3 Line !--4 Line
    I want it to echo multiple lines on the screen.

    No newline tags existed it seems (/n). Changing con_filter and contimes every line doesn't work, and I don't see Wait or Sleep command available to be used. Help would be nice.
    Last edited by zipeater; 08-25-2014, 04:04 PM.

  • #2
    What's wrong with "say" or "say_team" with alias?

    PS: Why do you want to do this

    Comment


    • #3
      use \n
      echo "line1\nline2\nline3"

      Comment


      • #4
        Originally posted by natj View Post
        use \n
        echo "line1\nline2\nline3"
        I found newline doesn't work.


        Setting con_filter_enable 0 will enable multi line echo. But will output anything on the screen. I prefer not to see all the errors and commands on console.


        Writing

        Code:
        con_filter_enable 0
        echo "!--1 Line"
        echo "!--2 Line"
        echo "!--3 Line"
        echo "!--4 Line"
        con_filter_enable 1
        Prints multi line echo for 1 time, and then bugged out into 1 line after that.

        Originally posted by knurlhelm View Post
        What's wrong with "say" or "say_team" with alias?

        PS: Why do you want to do this
        I don't want to "say" help information for my own script to anyone. Check the screenshot for a peek of the script .
        Last edited by zipeater; 08-26-2014, 04:20 AM.

        Comment


        • #5
          How does "con_filter_enable" even work and what does it do?
          See http://steamcommunity.com/sharedfile.../?id=221277004, he is using

          Code:
          con_filter_text "Damage"
          con_filter_text_out "Player:"
          con_filter_enable "2"
          Don't know what the "2" means. But maybe experimenting with this stuff may help you.

          Comment


          • #6
            Originally posted by Typhox View Post
            How does "con_filter_enable" even work and what does it do?
            See http://steamcommunity.com/sharedfile.../?id=221277004, he is using

            Code:
            con_filter_text "Damage"
            con_filter_text_out "Player:"
            con_filter_enable "2"
            Don't know what the "2" means. But maybe experimenting with this stuff may help you.
            Yes. I want it to display like this.



            And from the help;

            Code:
            con_filter_enable 0		Filters console output based on the setting of con_filter_text. 1 filters completely, 2 displays filtered text brighter than ot (incomplete description)
            con_filter_text			Text with which to filter console spew. Set con_filter_enable 1 or 2 to activate.
            con_filter_text_out		Text with which to filter OUT of console spew. Set con_filter_enable 1 or 2 to activate.
            con_filter_enable is just making the output white. Is this a bug?

            Comment

            Working...
            X