• GMod - What are you working on? August 2017 (#72)
    224 replies, posted
[QUOTE=raubana;52581278]How is it embarrassing?? :s:[/QUOTE] [URL="https://www.dropbox.com/s/olcy19qf2tzb7bk/deleted.png?dl=0"]Not entirely sure you can see this as a blue member.[/URL]
[QUOTE=MDave;52583546][URL="https://www.dropbox.com/s/olcy19qf2tzb7bk/deleted.png?dl=0"]Not entirely sure you can see this as a blue member.[/URL][/QUOTE] God damn it.
Working on clouds with light support. [t]https://cdn.discordapp.com/attachments/298193993781477383/347890356819591190/unknown.png[/t] Without shaders .. and since stencils don't take alpha. This is damn hard to make doable. Might look into materials instead.
i made a new HUD for metastruct in 5 minutes [t]http://i.imgur.com/Poo8T0E.jpg[/t] everyone loved it [t]http://i.imgur.com/y2P70YM.png[/t] [t]http://i.imgur.com/nNhW6N4.png[/t] [t]http://i.imgur.com/Fy3FxR8.png[/t] [t]http://i.imgur.com/YugU4LV.png[/t] [URL="https://gist.github.com/SwadicalRag/1d289744d30fec176001b374ecc4252c"]here is the code[/URL]
[QUOTE=Nak;52585412]Working on clouds with light support. [t]https://cdn.discordapp.com/attachments/298193993781477383/347890356819591190/unknown.png[/t] Without shaders .. and since stencils don't take alpha. This is damn hard to make doable. Might look into materials instead.[/QUOTE] this sounds retarded, but I wonder what would happen if you'd use bumpmaps by making the cloud one big bump
It most likely not work since iirc you can only use bumped maps and translucency with refracted textures
[URL="https://facepunch.com/showthread.php?t=1575434"]I got inspired[/URL] to try out Discord Webhooks, and I know it's probably been done a million times before, but I thought they were pretty cool: [video=youtube;POJicM83qE8]https://www.youtube.com/watch?v=POJicM83qE8[/video] All you need is a Webhook ID and token, which are easy to find on the website [t]http://i.imgur.com/SXfwNpt.png[/t] [CODE] hook.Add( "PlayerSay", "Discord", function( ply, text ) http.Post( "https://discordapp.com/api/webhooks/WEBHOOK_ID_HERE/WEBHOOK_TOKEN_HERE", { content = text, username = ply:Nick() } ) end ) [/CODE]
For anyone interested, [URL="https://discordapp.com/developers/docs/resources/webhook#execute-webhook"]there's more parameters here[/URL] [editline]19th August 2017[/editline] automerge has failed me yet again
if you feel fancy you can also override the webhooks avatar and get the steam avatar using the xml option on the profile. [t]http://techbot.xyz/ShareX/screenshots/2017/08/20/explorer_18-07-35.png[/t] [editline]20th August 2017[/editline] [code]function discordrelay.util.GetAvatar(steamid, callback) local commid = util.SteamIDTo64(steamid) if discordrelay.AvatarCache[commid] then callback(discordrelay.AvatarCache[commid]) else http.Fetch("http://steamcommunity.com/profiles/" .. commid .. "?xml=1", function(content, size) local ret = content:match("<avatarFull><!%[CDATA%[(.-)%]%]></avatarFull>") or "http://i.imgur.com/ovW4MBM.png" discordrelay.AvatarCache[commid] = ret callback(ret) end, function(err) discordrelay.log(3,"GetAvatar failed for:",steamid,err) end) end end[/code] [editline]20th August 2017[/editline] probably not the best way to do it but it works v:v:v
[QUOTE=Techbot;52593403]if you feel fancy you can also override the webhooks avatar and get the steam avatar using the xml option on the profile. [code]function discordrelay.util.GetAvatar(steamid, callback) local commid = util.SteamIDTo64(steamid) if discordrelay.AvatarCache[commid] then callback(discordrelay.AvatarCache[commid]) else http.Fetch("http://steamcommunity.com/profiles/" .. commid .. "?xml=1", function(content, size) local ret = content:match("<avatarFull><!%[CDATA%[(.-)%]%]></avatarFull>") or "http://i.imgur.com/ovW4MBM.png" discordrelay.AvatarCache[commid] = ret callback(ret) end, function(err) discordrelay.log(3,"GetAvatar failed for:",steamid,err) end) end end[/code] [editline]20th August 2017[/editline] probably not the best way to do it but it works v:v:v[/QUOTE] Why not use the ISteamUser API for getting the avatar link? [code]local avatars = {} local PostChat = function(avatar, name, txt) http.Post("https://discordapp.com/api/webhooks/" .. id .. "/" .. token, { content = txt, username = name, avatar_url = avatar, }) end local SendChat = function(ply, txt) local id = ply:SteamID64() local name = ply:Nick() if (avatars[id]) then PostChat(avatars[id], name, txt) else http.Fetch("http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=" .. key .. "&steamids=" .. id, function(content) local tbl = util.JSONToTable(content) local avatar = tbl.response.players[1].avatarfull avatars[id] = avatar PostChat(avatar, name, txt) end, function() end ) end end [/code]
[QUOTE=txike;52594217]Why not use the ISteamUser API for getting the avatar link?[/QUOTE] Why use a token if you don't have to?
I've been working for monolith again, I really wanted to have a radar, those that uses render view JUST sucks...I wanted to use a 2d image, and wow...I can't believe the amount of hours and random numbers it took me to get it done... [vid]https://dl.dropboxusercontent.com/s/nrgoylzgbk9hdu4/2017-08-21_07-09-07.mp4[/vid] I just don't understand how, but it works! As simple it looks, it were my nightmares in the past 4 days
[QUOTE=gonzalolog;52595944]I've been working for monolith again, I really wanted to have a radar, those that uses render view JUST sucks...I wanted to use a 2d image, and wow...I can't believe the amount of hours and random numbers it took me to get it done... [vid]https://dl.dropboxusercontent.com/s/nrgoylzgbk9hdu4/2017-08-21_07-09-07.mp4[/vid] I just don't understand how, but it works! As simple it looks, it were my nightmares in the past 4 days[/QUOTE] Oh my! It looks so much better than what I saw yesterday, those icons really add to the feel of it.
I've been working on my own game-mode, I've got a model shop going. Sorry about the mic. [video]https://youtu.be/Y0K_bAPQ3FM[/video] [B]Edit:[/B] I've done the one thing that nobody asked for. [video=youtube;DBpl20tkk6o]https://www.youtube.com/watch?v=DBpl20tkk6o[/video]
currently an advanced server administration system and a tweaks pack that will help server owners have both more performance and more control over their own server
[QUOTE=BanterChicken;52596804]facial[/QUOTE] I want a facial.
[QUOTE=Techbot;52593403]if you feel fancy you can also override the webhooks avatar and get the steam avatar using the xml option on the profile. ... probably not the best way to do it but it works v:v:v[/QUOTE] [DEL]I used [url=https://lab.xpaw.me/steam_api_documentation.html#ISteamUser_GetPlayerSummaries_v2]GetPlayerSummaries[/url] to do it. It's nice because you can give multiple inputs and it outputs to JSON.[/DEL] [editline]oops[/editline] I should probably finish reading the thread before I reply. :boxhide:
While I wait on someone at Facepunch to fix [URL="https://github.com/Facepunch/garrysmod-issues/issues/3268"]this issue[/URL], I've been working on the music a bit for my gamemode. Here's the new song that plays when you die. [url]https://soundcloud.com/raubana/youhaveperished/s-iQZfX[/url]
[QUOTE=raubana;52601503]While I wait on someone at Facepunch to fix [URL="https://github.com/Facepunch/garrysmod-issues/issues/3268"]this issue[/URL], I've been working on the music a bit for my gamemode. Here's the new song that plays when you die. [url]https://soundcloud.com/raubana/youhaveperished/s-iQZfX[/url][/QUOTE] Dear god that first bit scared me to death. Apart from that it's a good song keep up the good work; but if it's for somebody dying shouldn't it be just a short sound or are you planning on having a "game over" screen or something?
[QUOTE=txike;52601520]Dear god that first bit scared me to death. Apart from that it's a good song keep up the good work; but if it's for somebody dying shouldn't it be just a short sound or are you planning on having a "game over" screen or something?[/QUOTE] Yeah, there's an animation that plays when you die. It should make more sense once you see it. [video]https://youtu.be/iBm40vZyyPU[/video]
[QUOTE=raubana;52601538]Yeah, there's an animation that plays when you die. It should make more sense once you see it. [video]https://youtu.be/iBm40vZyyPU[/video][/QUOTE] scary sounds and loud noises :cry:
[QUOTE=MPan1;52595708]Why use a token if you don't have to?[/QUOTE] Because steam api isn't often unreachable, steam community is.
Some painful math later. Fixed the light-direction of the clouds to the moon/sun. [t]https://cdn.discordapp.com/attachments/298193993781477383/349675504980459520/unknown.png[/t] [t]https://cdn.discordapp.com/attachments/298193993781477383/349675586140241921/unknown.png[/t] However, I need to turn down the light for the moon.
[QUOTE=Nak;52601908]Some painful math later. Fixed the light-direction of the clouds to the moon/sun. [t]https://cdn.discordapp.com/attachments/298193993781477383/349675504980459520/unknown.png[/t] [t]https://cdn.discordapp.com/attachments/298193993781477383/349675586140241921/unknown.png[/t] However, I need to turn down the light for the moon.[/QUOTE] Really adoring the work you've done so far on this project, looking fantastic so far!
I liked the carvings so much that I re-made these. Just a little menu that lets you put together a sentence and drop an entity that displays the combination of words. The images were a little big when I previewed them in the post, so here is the direct link. [url]http://imgur.com/a/eJYsf[/url] [B]Edit:[/B] I was working on this as well. The idea is that you travel using the bonfires you find around town. [video=youtube;_HGa3NQ_6pQ]https://www.youtube.com/watch?v=_HGa3NQ_6pQ[/video]
[QUOTE=Nak;52601908]Some painful math later. Fixed the light-direction of the clouds to the moon/sun. [t]https://cdn.discordapp.com/attachments/298193993781477383/349675504980459520/unknown.png[/t] [t]https://cdn.discordapp.com/attachments/298193993781477383/349675586140241921/unknown.png[/t] However, I need to turn down the light for the moon.[/QUOTE] Curious as to what you did here, are these actually illuminated clouds?
[QUOTE=VIoxtar;52604165]Curious as to what you did here, are these actually illuminated clouds?[/QUOTE] Kinda .. kinda not. Its a trick using the mesh color options and some math. Only added 1 cloud so far, going to add a few more. If only I could use shaders for volumetric clouds, or stencils with alpha option.
I'm making a noncompliant SVG renderer [img]https://i.imgur.com/NqQDAmM.jpg[/img] Reference rendering: [t]https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/acid.svg[/t] Engine level antialiasing is turned on in the screenshot.
[QUOTE=!cake;52606905]I'm making a noncompliant SVG renderer [img]https://i.imgur.com/NqQDAmM.jpg[/img] Reference rendering: [t]https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/acid.svg[/t] Engine level antialiasing is turned on in the screenshot.[/QUOTE] Lua or C++?
[QUOTE=bobbleheadbob;52606922]Lua or C++?[/QUOTE] Lua
Sorry, you need to Log In to post a reply to this thread.