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

Thread: GPULib Screen Switcher tool

  1. #1
    Bug Buster TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,796

    Default GPULib Screen Switcher tool

    I made a small tool that switches a GPULib screen to render elsewhere, on a different prop/entity.

    Unfortunately there are some Z order issues I cannot easily resolve.
    Maybe one of you can, so I'm posting this as is.

    Edit: Problems fixed, SVNed
    Last edited by TomyLobo; 12-28-2009 at 09:44 PM.
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    Lífið læðist lúmskt áfram

  2. #2
    billywitchdoctor.com Schilcote's Avatar
    Join Date
    Jan 2009
    Location
    There.
    Posts
    2,006

    Default Re: GPULib Screen Switcher tool

    I don't exactly understand what this does. Does it just allow you to change the prop that a console screen or digital screen and whatnot is?

    On a slightly unrelated note, the graphics tablet needs an update. I want to make a remote drone that allows me to select entites on the RT screen (feed the GT coordinates into a ranger) but I can't seem to find a way to pair up a tablet and an RT screen (it only works with the props listed in the drop-down menu, any other prop, and I mean ANY other prop just dosn't work, and the RT version of the large wire screen is a different size than the non-RT verison for some reason and the small version is just too darned small to use).


    [19:16:47]Client "rcdraco" spawned in server
    [19:17:10]rcdraco: hamburgertime
    [19:18:04]rcdraco was killed by worldspawn
    [19:21:50]Dropped "rcdraco" from server

  3. #3
    Bug Buster TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,796

    Default Re: GPULib Screen Switcher tool

    nope, it allows you to put the screen on any existing entity you want, like a button or something. I plan to make this useful once it works by making a couple of GPULib screens that can be used as buttons.

    edited OP to clarify
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    Lífið læðist lúmskt áfram

  4. #4
    Wire Sofaking Grocel's Avatar
    Join Date
    Mar 2008
    Location
    Germany, NRW, Remscheid
    Posts
    751

    Exclamation Re: GPULib Screen Switcher tool

    Error report:

    When you remove the linked entity then you get an error spam:
    wire/client/cl_gpulib.lua:167: Tried to use a NULL entity!

    Wire rev. 1984, updated 29.12.2009 at 2:10 am (GMT+1).

    An if valid check should fix this.
    Quote Originally Posted by Wizard of Ass View Post
    The secret phrase in gmod is: Rusty bullet hole
    Im a molecule!

  5. #5
    Bug Buster TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,796

    Default Re: GPULib Screen Switcher tool

    Testing a fix atm

    PS: I committed this tool, just to be clear.
    The z order problems are not fixed btw, but I found out they only occur on transparent props (or props with transparent skins)

    Edit: fix is working, committing it
    I also found out that the screen entity has to be in your PVS (potentially visible set) or the screen won't be drawn.
    Last edited by TomyLobo; 12-28-2009 at 10:31 PM.
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    Lífið læðist lúmskt áfram

  6. #6
    Wire Sofaking Grocel's Avatar
    Join Date
    Mar 2008
    Location
    Germany, NRW, Remscheid
    Posts
    751

    Default Re: GPULib Screen Switcher tool

    And if you change the alpha of the screen entity to 0, will the screen not be drawn too?
    Quote Originally Posted by Wizard of Ass View Post
    The secret phrase in gmod is: Rusty bullet hole
    Im a molecule!

  7. #7
    billywitchdoctor.com Schilcote's Avatar
    Join Date
    Jan 2009
    Location
    There.
    Posts
    2,006

    Default Re: GPULib Screen Switcher tool

    Quote Originally Posted by TomyLobo View Post
    nope, it allows you to put the screen on any existing entity you want, like a button or something. I plan to make this useful once it works by making a couple of GPULib screens that can be used as buttons.

    edited OP to clarify
    Oh heck, that's awesome!

    Thank you TomyLobo!


    [19:16:47]Client "rcdraco" spawned in server
    [19:17:10]rcdraco: hamburgertime
    [19:18:04]rcdraco was killed by worldspawn
    [19:21:50]Dropped "rcdraco" from server

  8. #8
    Bug Buster TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,796

    Default Re: GPULib Screen Switcher tool

    i can only think of the SBEP buttons. if anyone can think of something else that's a good button/screen combination, shoot
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    Lífið læðist lúmskt áfram

  9. #9
    Bug Buster TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,796

    Default Re: GPULib Screen Switcher tool

    works with (advanced) duplicator now
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    Lífið læðist lúmskt áfram

  10. #10
    Wire Sofaking Azrael's Avatar
    Join Date
    Aug 2007
    Posts
    1,946

    Default Re: GPULib Screen Switcher tool

    Quote Originally Posted by TomyLobo View Post
    I also found out that the screen entity has to be in your PVS (potentially visible set) or the screen won't be drawn.
    Well yeah, that's the whole point of the PVS -- anything not in it can't be seen by the player and so it doesn't have to be drawn. Why, have you faced some problems in which you should be able to see the screen but the entity's not in your PVS?

    You could do some stuff with SetRenderBounds if the screen is bigger than the entity to make sure that it's visible.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Wire Text Screen tool issue
    By jaycedog in forum Installation and Malfunctions Support
    Replies: 2
    Last Post: 08-04-2009, 11:01 AM
  2. input switcher
    By natedogith1 in forum Ideas & Suggestions
    Replies: 6
    Last Post: 02-02-2008, 01:23 AM
  3. Target Finder Target Switcher
    By jjb123 in forum Installation and Malfunctions Support
    Replies: 4
    Last Post: 12-30-2007, 07:50 AM
  4. Switcher
    By llivavin in forum Ideas & Suggestions
    Replies: 1
    Last Post: 06-09-2007, 12:32 PM
  5. Screen Tool not working properly :(
    By Quimbo in forum Installation and Malfunctions Support
    Replies: 6
    Last Post: 04-05-2007, 11:24 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