• PANEL:GetHTMLMaterial() broken for gmod12
    20 replies, posted
It returns nil instead of the material, causes some things such as playx to break. Not sure if I should put that here or into the help section since this is rather related to coding.
Thanks. I was wondering what broke
I guess garry's GM13 menu will be more than fucked. (Why he used HTML in the first place is beyond me)
Garrys ruining gmod! lolz
[QUOTE=BananasRP;36560583]Garrys ruining gmod! lolz[/QUOTE] pls dont say "lolz"
[QUOTE=Not Flapadar;36557312]I guess garry's GM13 menu will be more than fucked. (Why he used HTML in the first place is beyond me)[/QUOTE] The panels themselve work, just not this function.
[QUOTE=Garry]Oh man what a day. I finally got Linux and Mac versions of Garry’s Mod compiling and working properly. I’ve sent the update to Valve so it should hopefully be live quite soon. So Linux dedicated servers and Mac should be working now. I am aware of three issues right now. [b]1. HTML panels sometimes are invisible.[/b] 2. Spawnicons all load at the same time - causing freezing when you open the spawnmenu. 3. GMod 13 Beta isn’t fixed. I’ll hopefully get some time to fix those issues over the weekend and will release a patch early next week. Let me know if there’s any other issues![/QUOTE] Could be related to that.
[QUOTE=zyke34;36560895]pls dont say "lolz"[/QUOTE] lolz
[QUOTE=BananasRP;36565105]lolz[/QUOTE] I wish we still had :frogout: in situations like these.
Garry said that the new update changed the way HTML controls work in the source engine. This should explain all of the errors.
[QUOTE=Wizard of Ass;36565125]I wish we still had :frogout: in situations like these.[/QUOTE] Nope.
[QUOTE=BananasRP;36571658]Nope.[/QUOTE] [img]http://i1.kym-cdn.com/photos/images/original/000/262/539/6f3.gif[/img]
Yeah, I have the same problem with PlayX and other things like the z0r player. Does anyone know by chance when (or if) this will be fixed?
[QUOTE=similarguy;36634171]Yeah, I have the same problem with PlayX and other things like the z0r player. Does anyone know by chance when (of if) this will be fixed?[/QUOTE] No idea hopefully it's fixed soonand we don't need to wait until gmod 13
Can't be fixed until an update.
Is there a fix for this though? I tried to follow an example code from the [url=http://wiki.garrysmod.com/page/Panel/GetHTMLMaterial]wiki[/url]. Can someone help me out? :(
[QUOTE=KvdV96;46173681]Is there a fix for this though? I tried to follow an example code from the [url=http://wiki.garrysmod.com/page/Panel/GetHTMLMaterial]wiki[/url]. Can someone help me out? :([/QUOTE] This thread is from Garry's Mod 12 and is from two years ago; we're currently on version 13.
[QUOTE=WitheredPyre;46173776]This thread is from Garry's Mod 12 and is from two years ago; we're currently on version 13.[/QUOTE] Okay I'm really sorry then. Is there somewhere where I can find better documentation on GetHTMLMaterial because the wiki was the only thing I could find. I'm willing to do effort, but I'm stuck.
[url]http://pastebin.com/xSeKmd0D[/url] usage: local mat = resource.GetHTMLImage(MAT_3);hook.Add("HUDPaint", "asdasd", function() surface.SetDrawColor(255, 255, 255, 255); surface.SetMaterial(mat); surface.DrawTexturedRect(0, 0, mat:Width(), mat:Height());end); [URL="http://facepunch.com/showthread.php?t=1260809&p=41252293&viewfull=1#post41252293"]Source[/URL] This should still work, but didnt got the time to test it yet.
That's a bit different though. What I'm trying to achieve in the end is to stream .mp4's to my server. And not with gamemodes like the Cinema that is limited to YouTube and Twitch etc.. I want to stream my own stuff.
I recommend you use HTML:SetVisible(false) and HTML:PaintAt(x,y,w,h) instead.
Sorry, you need to Log In to post a reply to this thread.