• GMod - What are you working on? January 2015 (#41)
    781 replies, posted
[QUOTE=EthanTheGreat;46854565][video=youtube;VKDd9haEV7Q]http://www.youtube.com/watch?v=VKDd9haEV7Q[/video] Getting this weird stencil issue in the radar. In the background that changes color is suppose to be solid black. Seems like stencils are conflicting with each other. I use [B]render.RenderView[/B] and [U][B]render.PushCustomClipPlane[/B][/U] Tried [B]render.StencilEnable, render.Clear, render.EnableClipping, etc....[/B] It would be interesting to understand why it changes like that.[/QUOTE] That's not a stencil issue, that happens because you are clipping the map. Happened to me too.
A while ago, Divran (using a 3D2D vgui wrapper made by Overv) made an entity that displayed derma inside a 3D2D. We where using this entity in an old spacebuild gamemode of mine, but eventually scrapped it, because it was buggy. Over the last few days I've gone back to it and the result is this (old video). [video=youtube;TmL3hdcqHwk]http://www.youtube.com/watch?v=TmL3hdcqHwk[/video] [URL="https://github.com/Rusketh/ExpAdv2/blob/master/lua/entities/expadv_scr_vgui.lua"]Source Code (github)[/URL]
Went ahead and decided to really make it iPhone-like and add movable icons! I did have to redo how I added apps, wasn't fun, and how I made the homescreen, not fun either, and then finally tie it into the Config file so it would save which actually was pretty nice cause it was easy. The icons are set up in such a way that it will sort the apps from your config file first and then throw any new ones on the end and it will save across servers. It would be really cool if I made the icons sort themselves in real time and I know how I would do it too (invisible panels!) but I fear that would make the homescreen very prone to Lua errors. My only remaining issue is that Drag and Drop doesn't really seem to like children so I'm stuck with only moving the app image instead of the image and text. My D&D code is here: [url]https://github.com/Exho1/gPhone/blob/master/lua/gphone/cl_phone.lua#L201[/url] Oh and a little clip of the 2D game I am working on, I am not an artist at all clearly. But making the character have a jump sprite made my day though. His hat flies off! [video=youtube;o6D7rK72DW8]http://www.youtube.com/watch?v=o6D7rK72DW8[/video]
[QUOTE=Exho;46858846]Went ahead and decided to really make it iPhone-like and add movable icons! I did have to redo how I added apps, wasn't fun, and how I made the homescreen, not fun either, and then finally tie it into the Config file so it would save which actually was pretty nice cause it was easy. The icons are set up in such a way that it will sort the apps from your config file first and then throw any new ones on the end and it will save across servers. It would be really cool if I made the icons sort themselves in real time and I know how I would do it too (invisible panels!) but I fear that would make the homescreen very prone to Lua errors. My only remaining issue is that Drag and Drop doesn't really seem to like children so I'm stuck with only moving the app image instead of the image and text. My D&D code is here: [url]https://github.com/Exho1/gPhone/blob/master/lua/gphone/cl_phone.lua#L201[/url] Oh and a little clip of the 2D game I am working on, I am not an artist at all clearly. But making the character have a jump sprite made my day though. His hat flies off! [video=youtube;o6D7rK72DW8]http://www.youtube.com/watch?v=o6D7rK72DW8[/video][/QUOTE] Is there an easy way to handle drag n' drop in GLua? Or do you have to do everything from the click event?
aaoa [media]http://www.youtube.com/watch?v=getfjZWOhvs[/media]
[QUOTE=KoolSnake;46859881]Is there an easy way to handle drag n' drop in GLua? Or do you have to do everything from the click event?[/QUOTE] there is a dragndrop library I have no idea if it even works or if it's meant to be user friendly/applicable
There's built-in draggable/receivable functionality in Panel objects. [lua] panel:Draggable(name) panel:Receiver(name, func, menu) [/lua] The built-in functionality is nice, though instead of using the Receiver function I use panel's OnStopDragging function override and vgui.GetHoveredPanel() because I don't like the way the built-in Receiver system works.
[QUOTE=KoolSnake;46859881]Is there an easy way to handle drag n' drop in GLua? Or do you have to do everything from the click event?[/QUOTE] Maybe NutScript 1.1's Drag and Drop Item could be helpful? [url]https://github.com/Chessnut/NutScript/blob/1.1/gamemode/core/derma/cl_inventory.lua[/url]
[QUOTE=KingofBeast;46859941]There's built-in draggable/receivable functionality in Panel objects. [lua] panel:Draggable(name) panel:Receiver(name, func, menu) [/lua] The built-in functionality is nice, though instead of using the Receiver function I use panel's OnStopDragging function override and vgui.GetHoveredPanel() because I don't like the way the built-in Receiver system works.[/QUOTE] I always wondered how people keep making those nice menus. Now I know. Thanks a bunch. EDIT: Looks like there's a ton of methods available. As always, let's go for the easy one...
[QUOTE=KingofBeast;46859941]There's built-in draggable/receivable functionality in Panel objects. [lua] panel:Draggable(name) panel:Receiver(name, func, menu) [/lua] The built-in functionality is nice, though instead of using the Receiver function I use panel's OnStopDragging function override and vgui.GetHoveredPanel() because I don't like the way the built-in Receiver system works.[/QUOTE] I'm curious, what exactly don't you like about the receiver functionality?
[QUOTE=Exho;46858846]Went ahead and decided to really make it iPhone-like and add movable icons! I did have to redo how I added apps, wasn't fun, and how I made the homescreen, not fun either, and then finally tie it into the Config file so it would save which actually was pretty nice cause it was easy. The icons are set up in such a way that it will sort the apps from your config file first and then throw any new ones on the end and it will save across servers. It would be really cool if I made the icons sort themselves in real time and I know how I would do it too (invisible panels!) but I fear that would make the homescreen very prone to Lua errors. My only remaining issue is that Drag and Drop doesn't really seem to like children so I'm stuck with only moving the app image instead of the image and text. My D&D code is here: [URL]https://github.com/Exho1/gPhone/blob/master/lua/gphone/cl_phone.lua#L201[/URL] Oh and a little clip of the 2D game I am working on, I am not an artist at all clearly. But making the character have a jump sprite made my day though. His hat flies off! [video=youtube;o6D7rK72DW8]http://www.youtube.com/watch?v=o6D7rK72DW8[/video][/QUOTE] Awesome! What about folders? When I drag one icon on top of another and hold it there, that lets me make a folder with up to 9 icons in it. There's also, in the real iphone, a thing where the lock screen will fade black before the main background pops up, but I can't figure out how that maths, and dont think its that important really. I also think your weapon should holster when you pull up the phone, or perhaps do it like the context menu, if you click off the phone, you fire. I guess another idea is, idk if you can do anything similar to ironsights outside of a SWEP or general Weapon itself, but if the gun doesnt holster, it would ironsight below the screen, but if you pop your mouse off the phone it would ironsight back to normal. Holstering seems the easiest option. Lol, I throw so many ideas at you for your own creation... but I think you could also make it load images in as the background, like .png files. Maybe if the file doesn't exist, use a default, but let people know what file they should save is called so they could change it.
Folders are my next idea because I currently have no ideas on how to make sideways sliding look good or be easy so I need a place to put more apps. Fade to black is possible, not real high on my to do list though. Which reminds me I need to make it fade to black when you put the phone down. [editline]5th January 2015[/editline] [QUOTE=vexx21322;46861472]I'm curious, what exactly don't you like about the receiver functionality?[/QUOTE] I don't like that I cannot get the children of a panel to move with the panel that I am moving
I tried overwriting 2 spawnlists and I got this nice wave formation. [img]https://dl.dropboxusercontent.com/u/67402346/GifCam/wavespawnlist.gif[/img]
-Wrong thread
[QUOTE=LUModder;46862171]I tried overwriting 2 spawnlists and I got this nice wave formation. [img]https://dl.dropboxusercontent.com/u/67402346/GifCam/wavespawnlist.gif[/img][/QUOTE] That has happened to me a few times using spawnmenu_reload after saving spawnlist changes.
[QUOTE=Robotboy655;46862410]That has happened to me a few times using spawnmenu_reload after saving spawnlist changes.[/QUOTE] Yeah, I used spawnmenu_reload when I tried to overwrite the two spawnlists. So it might be a factor of spawmenu_reload or attempting to overwrite a list, or both.
[QUOTE=rebel1324;46859919]aaoa [media]http://www.youtube.com/watch?v=getfjZWOhvs[/media][/QUOTE] Looks like a pretty solid gamemode, I like it.
[t]http://i.imgur.com/1kqiDbz.png[/t] [t]http://i.imgur.com/rwQLyGD.png[/t]
[t]http://i.imgur.com/tL80pCu.jpg[/t] (nothing new graphically really) finally remade a lot of code, now it doesn't set an nwint every second, it uses curtime and local html instead of a webserver so much cleaner for netgraph!
I have my SWEP Base open in Notepad++, working on it here and there, but very recently I've decided I wanna make a simple radar. It would function much like Halo's motion tracker. I wrote this up today. It's currently running in Autorun. I purposefully made it loop, vanishing every 2 seconds to appear again. I'm also randomly moving around cus why not? [video=youtube;prw8DlR-G9M]http://www.youtube.com/watch?v=prw8DlR-G9M[/video] I really need to figure out how to use RT textures though, and how to clip said texture into a circle... in order to make the actual functional radar part.
[QUOTE=Giraffen93;46864378][t]http://i.imgur.com/tL80pCu.jpg[/t] (nothing new graphically really) finally remade a lot of code, now it doesn't set an nwint every second, it uses curtime and local html instead of a webserver so much cleaner for netgraph![/QUOTE] Asians girls huddled around a bottle of toothpaste.... Sounds like my kind of RP server!
I just fiddled around with the code a little more. Now it doesn't look like it's rolling out from a static point, but rather, it reminds me of pacman. I'll make a clip when I can, I recorded it in 3 or 4 directions of flow. I am interested and curious to hear which style of appearance the community thinks looks the best. I'll then need to come up with a nice way to make it disappear too. Well, and of course, the actual "radar" part, but I need to learn how to use RT textures, and clip them to a circle too, before I can do that.
Dynamically generated organization chart [t]http://i.gyazo.com/8a691b0d87c9711d2e982df22c85b41e.png[/t]
You sure have a lot of people in positions.
he has [URL="http://skiddiecentral.com/hallofautism"]fpspurple[/URL] which means everything is lost
[QUOTE=zzaacckk;46866014]Dynamically generated organization chart [t]http://i.gyazo.com/8a691b0d87c9711d2e982df22c85b41e.png[/t][/QUOTE] Shit Server? No players? Make up for it in admins! [highlight](User was permabanned for this post ("Proxy, probably a gimmick" - SteveUK))[/highlight]
[QUOTE=mih11109;46868089]Shit Server? No players? Make up for it in admins![/QUOTE] First post, already failed miserably.
[QUOTE=LennyPenny;46868012]he has [URL="http://skiddiecentral.com/hallofautism"]fpspurple[/URL] which means everything is lost[/QUOTE] as co-owner no less
[QUOTE=mih11109;46868089]Shit Server? No players? Make up for it in admins![/QUOTE] Lol, that was not what I meant. Maybe he has a lot players? If the server is constantly full, you need a lot of admins.
[QUOTE=freakyy;46868250]Lol, that was not what I meant. Maybe he has a lot players? If the server is constantly full, you need a lot of admins.[/QUOTE] But fpspurple
Sorry, you need to Log In to post a reply to this thread.