• GMod - What are you working on? October 2014 (#38)
    706 replies, posted
I started to learn Lua a couple weeks ago. already got a good grasp on the basics so I'm starting to do a gamemode. It's using CS:GO sweps and its gonna be kinda based off of Battlefield 4. I'm gonna try to code cars/tanks and maybe add in WAC? All to make a big BF4 like game, on Evocity. Siege of Evocity folks.
[QUOTE=animegirl127;46128155]I started to learn Lua a couple weeks ago. already got a good grasp on the basics so I'm starting to do a gamemode. It's using CS:GO sweps and its gonna be kinda based off of Battlefield 4. I'm gonna try to code cars/tanks and maybe add in WAC? All to make a big BF4 like game, on Evocity. Siege of Evocity folks.[/QUOTE] About to crush your dreams :/ Gamemodes are not something that is recommended for beginners just because of the amount of lua you need to know and be able to debug. Those are very big projects and take up tons of time and I can guarantee it will be near impossible for a newbie, I have a decent grasp on Lua and I still dont feel too confident about a gamemode. Start smaller with SWEPS, ENTS, or some lua/autorun stuff
[QUOTE=Exho;46128236]About to crush your dreams :/ Gamemodes are not something that is recommended for beginners just because of the amount of lua you need to know and be able to debug. Those are very big projects and take up tons of time and I can guarantee it will be near impossible for a newbie, I have a decent grasp on Lua and I still dont feel too confident about a gamemode. Start smaller with SWEPS, ENTS, or some lua/autorun stuff[/QUOTE] I'm already started on a TDM gamemode base, if I never finish it oh well. It's already been a learning opportunity so far
[QUOTE=Exho;46128236]About to crush your dreams :/ Gamemodes are not something that is recommended for beginners just because of the amount of lua you need to know and be able to debug. Those are very big projects and take up tons of time and I can guarantee it will be near impossible for a newbie, I have a decent grasp on Lua and I still dont feel too confident about a gamemode. Start smaller with SWEPS, ENTS, or some lua/autorun stuff[/QUOTE] While I somewhat agree it can be daunting to finish a gamemode, I've tried my hand at 'em before and made some decent strives. Not really too hard with general lua knowledge.
I tidy'd up the feel of TTT's grenades. They now can explode based on their bounce count. This makes them a little more Counter-Strike Like. The timer is still there as a backup. [video=youtube;UEMozqVTMQ0]http://www.youtube.com/watch?v=UEMozqVTMQ0&[/video]
[QUOTE=Exho;46128236]About to crush your dreams :/ Gamemodes are not something that is recommended for beginners just because of the amount of lua you need to know and be able to debug. Those are very big projects and take up tons of time and I can guarantee it will be near impossible for a newbie, I have a decent grasp on Lua and I still dont feel too confident about a gamemode. Start smaller with SWEPS, ENTS, or some lua/autorun stuff[/QUOTE] My very first Lua project was a gamemode. To this day I have only created 1 simple SWEP. 99% of my GLua experience is gamemodes.
Ok... 9:40 of combat and such, demonstrating the less realistic heart. [video=youtube;u8-rRCx9MSY]http://www.youtube.com/watch?v=u8-rRCx9MSY[/video] [editline]2nd October 2014[/editline] [sp]Nookyava, why do you always rate me dumb? Emphasis on the always.[/sp] [editline]2nd October 2014[/editline] I understand, it's a little crazy to throw in a 9:41 video for something this simple, but I also tried to preview my w.i.p. sweps. The ironsights might be broken, that's the big thing I need to work on.
Pretty sure I'm mostly done with the chatbox - you're able to modify colors by typing {color:colorname}, and add icons by typing {icon:category/alias:name}. So if you want to add icon16/wand.png, you'd just type {icon:small:wand}, or {icon:s:wand}. For colors, you can either do {color:red} or {color:255,0,0}. While this may take up a bit more text space, I also increased the text limit from 126 to 376 (though not just to make it easier to add colors/emotes). Oh, and for TTT you can type {last_seen} to get the name of the person you last saw inserted into your text. Helps for making binds that normally would need a player to hit their radio bind to show who they're talking about and then their custom one. As for the buttons on the bottom right, the contrast button toggles between the chat being slightly transparent and a solid background, and the color swatch and emoticon buttons open their respective color/icon menu. [img]http://i2.minus.com/irNcly3euPA1I.PNG[/img]
Even with a cartoon heart, It doesn't really fit. I suggest having some heart rate monitor like Battlefield 4 has, it both looks better, and acts better.
[IMG]http://i.imgur.com/hDCF2dO.jpg[/IMG] Nuff said.
[t]http://s30.postimg.org/llurnbs5r/Dark_RP_HUD_Up_Close.jpg[/t] (You failed your image) Looks very promising, like the clean sleek style. How did you do the shadow behind the HUD, though? Is it photoshopped, or made in Lua?
[QUOTE=Author.;46131603][t]http://s30.postimg.org/llurnbs5r/Dark_RP_HUD_Up_Close.jpg[/t] (You failed your image) Looks very promising, like the clean sleek style. How did you do the shadow behind the HUD, though? Is it photoshopped, or made in Lua?[/QUOTE] it's probably something to do with postimg, imgur all the wayyyyy also not that it's [i]really[/i] fitting here but im working on actually learning lua and doing stuff with it and trying to stick with it rather than giving up after a day [thumb]http://i.imgur.com/FycJg4z.png[/thumb]
[QUOTE=Smt;46131826]it's probably something to do with postimg, imgur all the wayyyyy also not that it's [i]really[/i] fitting here but im working on actually learning lua and doing stuff with it and trying to stick with it rather than giving up after a day [/QUOTE] You got to start somewhere :V
[QUOTE=Author.;46130516]Even with a cartoon heart, It doesn't really fit. I suggest having some heart rate monitor like Battlefield 4 has, it both looks better, and acts better.[/QUOTE] That's an idea, but in Battlefield 4 you also have a number in the right corner of the screen for your health. I really like using a real heart (again, at least for the sake of horror scenarios, mess with psychology), but you do make a good point. I did imagine having a heart rate monitor, and I guess people like that better all 'round, so I'll remove the cartoonish heart option, and replace it with an option for a heart rate monitor. I'll do this whenever garry's mod actually decides to launch again... it keeps crashing right after it opens. [editline]2nd October 2014[/editline] My current method for changing it is a console command, but I really feel like I should find an easier way, something you can do while you're still playing.
Finally finished working on GMod Lua support for Atom. [t]http://i.imgur.com/uhi0YCN.png[/t] I know Atom's not exactly one of the more well used editors, but it was a nice to try my hand at more complex regexes, while making something I'd use. Now all I need to make is something to automatically generate library functions in a format for syntax highlighting and completions.. (Package name is language-gmod-lua if anyone's curious (yeah who am I kidding))
[QUOTE=Lixquid;46133492]Finally finished working on GMod Lua support for Atom. -img- I know Atom's not exactly one of the more well used editors, but it was a nice to try my hand at more complex regexes, while making something I'd use. Now all I need to make is something to automatically generate library functions in a format for syntax highlighting and completions.. (Package name is language-gmod-lua if anyone's curious (yeah who am I kidding))[/QUOTE] I was looking for a glua package for atom literally last night, am I just blind? Either way I see it now and this is awesome
[QUOTE=Lixquid;46133492]Finally finished working on GMod Lua support for Atom. [t]http://i.imgur.com/uhi0YCN.png[/t] I know Atom's not exactly one of the more well used editors, but it was a nice to try my hand at more complex regexes, while making something I'd use. Now all I need to make is something to automatically generate library functions in a format for syntax highlighting and completions.. (Package name is language-gmod-lua if anyone's curious (yeah who am I kidding))[/QUOTE] Weird timing. I was coding with Atom last night, and had to install Sublime Text 2 last night due to the lack of any useful Lua language.
[t]http://cloud-4.steampowered.com/ugc/37477190599779763/91797BFCBA383456B6249A9168A5799C5BC08158/[/t] Holoclocks! .. ofc it changed the weather to "Rain" as I took the picture. - Added holo-clocks, because why not? (Toggle on/off with +use). - Fixed more sync errors. - Supports any map now. Made the addon turn off functions when missing map-entities. - Added AMD.SetTimeSpeed(number multiply) that speeds up everything .. including clouds. (Still buggy at 400+%) - Fixed clouds not spawning. - Fixed clouds not spawning with velocity. - Fixed (as good as I could) small skyboxes being cramped. - Made it render a box around the skybox if its visible from inside the map. Map-devs don't place the skybox inside/over the map :\. Todo: - Rain & Thunder - SkyPaint - More render stuff Haven't been able to do much else .. so much work. Yay 12 hour work shifts!
I've been breathing some life into Evolve and experimenting with derma, solving my number one gripe with it: The lack of a [url=https://github.com/Xandaros/evolve/issues/25#issuecomment-57087004]settings tab[/url]. edit: image removed I started off on this as an easy way for Evolve plugins to register some settings and expanded it as a way to quickly build an interface for addons that didn't have a spawnmenu settings page like atmos and hitnumbers. I probably should have spent more time looking at how the [url=https://github.com/garrynewman/garrysmod/blob/master/garrysmod/lua/autorun/utilities_menu.lua]base game[/url] handled [url=https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/sandbox/gamemode/spawnmenu/controlpanel.lua#L119]building sets of panel controls[/url] before I got too deep, but I didn't think to, so now I am sitting on a reimplementation of AddControl. :v: On the plus side, I have more control over the controls so it's easier to provide a uniform experience between two plugins without relying on them worrying about how their options are presented. On the other side, I'm responsible for how ugly everything looks and I gotta individually wrap each control. :downs: I'm also working a bit on yet another DarkRP HUD because I couldn't find one minimalist enough that gave emphasis to the important elements. [thumb]http://i.imgur.com/LqXTQyo.png[/thumb][thumb]http://i.imgur.com/zETz99D.png[/thumb][thumb]http://i.imgur.com/PmnMaFU.png[/thumb] Money and job details are positioned there temporarily until I write more guff to make them a bit more compact. I went a little overboard because keeping up with the positioning math between moving everything around was tedious; instead I opted to make the elements objects with update / draw functions and the ability to inherit properties. This is all laying the foundation so that eventually I can have fancy pulsing animations and easily move around elements without having to change absolutely everything. It also makes noises each time the variables they are monitoring decrease beneath a certain value, because unintentional starvation was increasingly common amongst my users.
I can't use a heart rate monitor in my gamemode (which shall play heavily on horror), at least for the fact that it would remove some gameplay elements I planned to incorporate. There are many functions of my heart that you have yet to see, and shall never see [sp]until at least one piece of that gamemode set is released[/sp] I know everyone doubts that I'll ever come out with this gamemode I speak so much about. Everyone believes that I have put too much on my plate, which I have. I have a bad habit of doing that to myself. This is why I'm carrying this project onward, sticking with it, and have chosen that I will release it in a working state long before it is completed, likely as competitive multiplayer, kinda like a BETA that actually works... [B]Please, I'll just ask for it this time, rate me dumb now.[/B] [editline]2nd October 2014[/editline] HOWEVER... if I am to release a version to the public, I can do a heart rate monitor. I would end up getting rid of a huge majority of the features I have not shown to you, like the way it acts when you receive poisonous / toxic / etc. types of damage, which has already been scripted. I can only think of one other feature that I have not showcased right now.
[QUOTE=WalkingZombie;46134514]I know everyone doubts that I'll ever come out with any of these gamemodes I speak so much about.[/QUOTE] Wrong! Nobody gives a crap. Now, back to what this topic is really about - posting screenies. Here's a quick peek at a very early stage of my 'TheGuilds' mod. ( I couldn't pick the right theme, my favourite is the one with salmon-kinda color, but others didn't like it ) [img_thumb]http://puu.sh/bWKNR/5b0e684166.png[/img_thumb][img_thumb]http://puu.sh/bWKrb/7126b278cd.png[/img_thumb][img_thumb]http://puu.sh/bWJlv/9d0d7004d3.png[/img_thumb][img_thumb]http://puu.sh/bWLEC/3b01465386.png[/img_thumb] Pick your favourite. [img]http://www.facepunch.com/fp/ratings/heart.png[/img] - Red one [img]http://www.facepunch.com/fp/ratings/information.png[/img] - Blue one [img]http://www.facepunch.com/fp/ratings/lua_helper.png[/img] - Green one [img]http://www.facepunch.com/fp/ratings/rainbow.png[/img] - Salmon-ish
Well cool, no one cares. I shan't do the heart rate monitor, as it would require me to do way more than I wish to, including research, complex math, timers, etc, etc... unless I wanted to use numbers, but a huge goal in the first place was to get rid of numbers! [editline]2nd October 2014[/editline] Yeah... I like to keep it real.
Made a colorful countdown timer, my plan for it is that you die and this displays only for Traitors and counts down until you can no longer be revived. Of course doing that would require me to code my own defib or edit the current ones to work how I want it to. Unfortunately I cannot record the effect as using Fraps slows the color change (CPU usage?) and the timer ends on Yellow, its very weird... The heartbeat image fades over time at a similar pace to the bar [t]http://i.imgur.com/2Y04DyK.jpg[/t] [t]http://i.imgur.com/59cacY1.jpg[/t] [t]http://i.imgur.com/5dSXQwD.jpg[/t] I honestly had no idea how to change colors and just made this up with trial and error. I discovered ChangeRate by setting the timer to 35s and changing the the math.Approach decimal until it flowed nicely and then used 8th grade math to make it work with any time. Theres probably an easier way to do this but oh well. [code] local TIMER_TIME = 15 local ChangeRate = 7 / TIMER_TIME -- Divide 7 by the time and you get a decimal that changes at the right speed ChangeRate = math.Round(ChangeRate, 5) -- Round to 5 places hook.Add( "Tick", "BouncyBall2s", function() if not Counting then return end -- Constantly counting is bad, as learned from Hover Stats if cycle == 0 then -- Approach Yellow from Green r = math.Approach(r, 255, ChangeRate) g = math.Approach(g, 255, ChangeRate) if r + g >= 510 then cycle = 1 end elseif cycle == 1 then -- Approach Red from Yellow r = math.Approach(r, 255, ChangeRate) g = math.Approach(g, 0, ChangeRate) end -- Stay red end) [/code] Took me a while but this is how I have the countdown bar, I need to redo my slightly broken TTT cloak and use this. I was pretty proud of myself for doing this lol although its basic math, it took me way too long [code] local TimeBase = TIMER_TIME -- Grab a baseline local TimeL = math.Clamp( math.Round( timer.TimeLeft("TestTimer") or 0, 1), 0, TimeBase) -- Time left in the timer, clamped and rounded local Seg = Height / TimeBase -- Segments: Height of the bar divided by each second in the timer local Bar = math.Clamp(TimeL * Seg, 0, Height) -- BarHeight: Clamp the bar height to prevent negatives and multiply the Time Left by Segments [/code]
Finally all biplanes have been added to [URL="http://facepunch.com/threads/1160981"]Microplanes[/URL]. These are all of them: [t]http://i.imgur.com/sicGA9N.jpg[/t] [t]http://i.imgur.com/f7K1VTP.jpg[/t] And these are the last ones i worked on during this week: Arado Ar 197 [t]http://puu.sh/bWQIM/006641850e.png[/t] Bristol Bulldog [t]http://puu.sh/bWQQk/4884260e1d.png[/t] Hawker Demon [t]http://puu.sh/bWR2C/318a8f5f9a.png[/t] Polikarpov I15bis [t]http://puu.sh/bWRcC/29f86990dd.png[/t] Next week i will start working on the good ol' WW2 fighters, so i'll stick around and post some more progress. Also, i will do 4 streams, each one featuring the porting process of the most iconic fighter of each nation (P-51, IL-2, Bf-109 and Spitfire). I'll post here my twitch channel right before streaming in case anyone is interested. It's quite a long process though, but i will try to make it as fast as possible (without messing up that is :v:)
[QUOTE=Exho;46135236]I cannot record the effect as using Fraps slows the color change (CPU usage?) and the timer ends on Yellow, its very weird... [code] local TIMER_TIME = 15 local ChangeRate = 7 / TIMER_TIME -- Divide 7 by the time and you get a decimal that changes at the right speed ChangeRate = math.Round(ChangeRate, 5) -- Round to 5 places hook.Add( "Tick", "BouncyBall2s", function() if not Counting then return end -- Constantly counting is bad, as learned from Hover Stats if cycle == 0 then -- Approach Yellow from Green r = math.Approach(r, 255, ChangeRate) g = math.Approach(g, 255, ChangeRate) if r + g >= 510 then cycle = 1 end elseif cycle == 1 then -- Approach Red from Yellow r = math.Approach(r, 255, ChangeRate) g = math.Approach(g, 0, ChangeRate) end -- Stay red end) [/code][/QUOTE] This is because you are adjusting by a constant amount instead of by one scaled to your framerate. You should look at [url=http://wiki.garrysmod.com/page/Global/FrameTime]FrameTime[/url]. The idea is that you would Approach by a delta based on your FrameTime multiplied against the amount of change per second, rather than adjusting by a fixed amount.
Decided to finish my jukebox from the last waywo thread. [IMG]http://i.gyazo.com/658372708af55d753039b273867bd378.png[/IMG] [IMG]http://i.gyazo.com/1f15b84246e159cc1d737361f277f021.gif[/IMG]
[QUOTE=Netheous;46134635]Shit[/QUOTE]Stop being a rating whore.
[QUOTE=CoreBase;46138348]Stop being a rating whore.[/QUOTE] stop caring about ratings
[QUOTE=Pigbear;46138415]stop caring about ratings[/QUOTE] I think the only rating he cares about is the excess dumb ratings he's getting.
[QUOTE=mib999;46139114]I think the only rating he cares about is the excess dumb ratings he's getting.[/QUOTE]I actually feel flattered that you guys care to rate me.
Sorry, you need to Log In to post a reply to this thread.