No more Ddraw?

Discussion in 'Rust Development' started by Larry 2, Oct 4, 2015.

  1. Hey guys,

    I've been using the Ddraw functions to put info up on the screen as I develop my plugin. It seems the recent update got rid of Ddraw.

    Anyone know of another way to draw text or shapes to the screen (at a specific x,y,x) ?

    Thanks!
    Tyler
     
  2. Wulf

    Wulf Community Admin

  3. Thanks Wulf. It seems like it only offers Vector2 UI elements. Are you able to place elements at a Vector3 in world space?
     
  4. Wulf

    Wulf Community Admin

    Not that I know of, sorry.
     
  5. ddraw.* is just broken since last "patch".
    You may see lots of NRE spam in console when attempting to use ddraw.

    From log
    Code:
    NullReferenceException
      at (wrapper managed-to-native) UnityEngine.Material:Internal_CreateWithShader (UnityEngine.Material,UnityEngine.Shader)
      at UnityEngine.Material..ctor (UnityEngine.Shader shader) [0x00000] in <filename unknown>:0
      at UnityEngine.DDraw.CreateLineMaterial () [0x00000] in <filename unknown>:0
      at UnityEngine.DDraw.OnPostRender () [0x00000] in <filename unknown>:0
    (Filename:  Line: -1)
     
  6. Yep i need to fix the zone manager ...
    It was so usefull to do Quick debugs!!!
    [DOUBLEPOST=1443992429][/DOUBLEPOST]Maybe it could be remade in oxide?
     
  7. Is the debug text not working anymore? did they mean to remove it?
    I use it in a few of my mods that have to much text for chat (leaderboards) and since the last update none of them seem to display the text.
    Code:
    baseplayer.SendConsoleCommand("ddraw.text", time, color, position, text);
     
  8. They bring it back?
     
  9. It is just bugged atm, a missing shader on the client, that is why it is throwing the error. Just wait for a client update.
     
  10. Sadly, no.
    I've sent a bug report through new feature (F7 on dev branch).. hope my message won't be ignored.
    You may do the same if you find it necessary.
     
  11. There was a tweet earlier stating that the line shader was fixed for ddraw which is causing the error (RustUpdates on Twitter)
     
  12. Yes, i've seen it, this fix was in the main branch.
    But something is still wrong, right after this ddraw has stopped working. :)
    [DOUBLEPOST=1444145598,1444084691][/DOUBLEPOST]DDraw is now fixed in dev-branch, just checked it - working.
    It's a such vital thing :)