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

Thread: Console Screen Clear

  1. #1
    Wirererer grandpapolly's Avatar
    Join Date
    Aug 2008
    Posts
    283

    Default Console Screen Clear

    First of all, I'm in Steam Web Browser and it hates my shift key.

    Second, I have a code where it finds the closest player to the chip. that works fine. But when another player walk in, it does not clear the name. I have only seen this for the name, but haven't seen it for anything else, including SteamID, Position, etc.


    But I don't really want to have to reset it every time, since that might mess it up. Any suggestions?

  2. #2
    Wirererer Archil's Avatar
    Join Date
    May 2009
    Posts
    110

    Default Re: Console Screen Clear

    you have to clear the screen when you want to remove characters on the screen, or write spaces to them

  3. #3
    Wirererer grandpapolly's Avatar
    Join Date
    Aug 2008
    Posts
    283

    Default Re: Console Screen Clear

    Well I can't write spaces to them. But I did do this:

    if (~PN) {Reset == 1}

    PN is the player name. So if the name changes, it resets the screen. That seems to work. But as time goes on, it fails. Not sure why.

  4. #4
    Wire Sofaking IEF015's Avatar
    Join Date
    Feb 2008
    Location
    London, ON (Canada, eh?)
    Posts
    1,640

    Default Re: Console Screen Clear

    If you use wirelink to the console screen you can use this:
    Screen:writeCell(2039,<Line#>)
    Which will clear a specific line.
    "It's my favourite country song. And I hate it."

  5. #5
    Wirererer grandpapolly's Avatar
    Join Date
    Aug 2008
    Posts
    283

    Default Re: Console Screen Clear

    I'm going to test it now.

    But in theory, I could just do...

    if (~PN) {Screen:writeCell(2039, <Line Here>)}

    ...?



    And what is the 2039? >_>

  6. #6
    Wire Sofaking IEF015's Avatar
    Join Date
    Feb 2008
    Location
    London, ON (Canada, eh?)
    Posts
    1,640

    Default Re: Console Screen Clear

    2039 is the address used to clear a specific row on the console screen.

    Check out this thread:
    http://www.wiremod.com/forum/wiremod...eat-sheet.html
    "It's my favourite country song. And I hate it."

  7. #7
    Wirererer grandpapolly's Avatar
    Join Date
    Aug 2008
    Posts
    283

    Default Re: Console Screen Clear

    Thank you. That is very helpful. Again, testing now...





    EDIT:



    I just tested

    if (~PN) {PlayerInfo:writeCell(2039, 3)}

    And it did not work. I made one person come near me. Then someone with a larger name. It went over the guys smaller name. But when the guy with the small name cam back again, it only covered part of the big name.


    EDIT Again:

    I don't mean to be hasty, but I was thinking about

    XWL:writeString(S,N,N,N,N,N)

    String, X Pos, Y Pos, Color, Color, Flash.

    Well I was wondering if it would be possible for the color to change and it to flash if, let's say, A == 1.
    Although, I'm not sure how I could do that, since I can't just stubstitute N for A.
    Is it possible to change the color, and flash without having to code it in every time?
    Last edited by grandpapolly; 05-27-2009 at 07:09 PM.

  8. #8
    Wirererer grandpapolly's Avatar
    Join Date
    Aug 2008
    Posts
    283

    Default Re: Console Screen Clear

    I've been testing other things, and they still don't work. Any solutions?

  9. #9
    Wire Noob briks's Avatar
    Join Date
    Apr 2009
    Posts
    3

    Default Re: Console Screen Clear

    use the output of the console screen reset to a button lol more than simple and with no e2 XD

  10. #10
    Wire Sofaking Fizyk's Avatar
    Join Date
    Jun 2008
    Location
    Łomianki, Poland
    Posts
    740
    Blog Entries
    1

    Default Re: Console Screen Clear

    You probably cleared the wrong line. Remember, the first line is line number 0, the third one has number 2 (or did you want to clear the fourth line?).

    My programs: BIOS - Alcyone - Calculator - Notepad - Movie Player
    My tutorials: applyTorque - Quaternions - PID controllers
    Some other things I made: FT Chip - RK4 Solar System

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. How do you use a console screen?
    By Whosdr in forum Wiremod General Chat
    Replies: 18
    Last Post: 04-02-2009, 03:00 PM
  2. How do I clear an entity
    By SpectreCat in forum Expression 2 Discussion & Help
    Replies: 4
    Last Post: 03-31-2009, 01:20 PM
  3. How to use the console screen
    By Corewarp2 in forum Installation and Malfunctions Support
    Replies: 5
    Last Post: 01-12-2009, 10:10 AM
  4. Console screen help
    By Nathanmini in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 7
    Last Post: 09-16-2008, 01:31 AM
  5. Console screen
    By wokkel in forum Installation and Malfunctions Support
    Replies: 6
    Last Post: 06-05-2007, 04:26 PM

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