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
No more Ddraw?
Discussion in 'Rust Development' started by Larry 2, Oct 4, 2015.
-
Wulf Community Admin
You could use the Rust Community UI, which has been discussed here quite a bit: Community entity UI | Oxide.
Oxide also provides a helper for it: Oxide/RustCui.cs at master · OxideMod/Oxide · GitHub. -
Thanks Wulf. It seems like it only offers Vector2 UI elements. Are you able to place elements at a Vector3 in world space?
-
Wulf Community Admin
Not that I know of, sorry. -
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)
-
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? -
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); -
-
You'll just have to wait until the next client update:
RustUpdates on Twitter -
They bring it back?
-
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.
-
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. -
There was a tweet earlier stating that the line shader was fixed for ddraw which is causing the error (RustUpdates on Twitter)
-
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
