Is it really that time again?
Here goes. [sp]Posts taken from the first / last few pages. Let me know via PM if I need to add something else[/sp]
Highlights from the previous thread
it’s probably something to do with postimg, imgur all the wayyyyy
also not that it’s really 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
http://i.imgur.com/FycJg4z.png
In the process of recoding mysqloo.
Hopefully my version is going to fix all of the horrible problems mysqloo currently has.
It also brings new features like prepared statements.
[LUA]
local query = Database:prepare(“UPDATE users SET online = ?, lastplayed = ?, nick = ? WHERE steamid = ?”)
query.onSuccess = function(qu, data)
print(“success”)
end
query.onError = function(qu, err)
print(err)
end
query:setBoolean(1, true)
query:setNumber(2, os.time())
query:setString(3, player.GetAll()[1]:Nick())
query:setString(4, player.GetAll()[1]:SteamID())
query:start()
[/LUA]
And let’s face it, you all freaking suck at escaping strings, so hopefully that is going to help.
(It’s really not possible to make it easier and safer)
The polyvox documentation said you could “probably get away with” multithreading mesh generation, so that’s what I did, and it runs beautifully. I could probably get it to run even faster on a better computer, but mine only has two cores so I limited the amount of worker threads to one.
For anyone concerned about the FPS:
The chunks are smaller this time… The optimal size seems to be 32, I used 16 in the video.
This is way, way, WAY larger a volume than I would expect to be rendering under normal conditions. It’s 800x800x100 blocks. For this size I would normally cap the render distance.
There are several culling algorithms I could apply to the chunks to make it faster.
I got physics working now. Mostly. Polysoup is awesome. I scaled the blocks up by about 20 times because collisions with single unit wide voxels were going to cause issues no matter what. Physical meshes generate pretty quickly, and I should be able to improve it some by threading it like I thread the visual mesh generation. Basically, anything that doesn’t require traces seems to work. Player/NPC physics use hull traces internally (I think!). There don’t seem to be any more issues with crashes or objects randomly getting stuck, so it’s a huge improvement.
I also have this wonderful, cringe-worthy snippet I wrote because I couldn’t figure out how to get the worldspawn (or any other) CBaseEntity:
IPhysicsEnvironment* env = source_physics->GetActiveEnvironmentByIndex(0);
int obj_count;
const IPhysicsObject** objects = env->GetObjectList(&obj_count);
CBaseEntity* ownerEnt=NULL;
for (int i = 0; i < obj_count; i++) {
CBaseEntity* ent = (CBaseEntity*)objects*->GetGameData();
if (ent != NULL && strcmp(ent->GetClassname(), "worldspawn") == 0) {
ownerEnt = ent;
break;
}
}
Jvs and me started working a module to bring Leap Motion support to gmod
(sorry for it being sideways and the weird music :v:)
We still need to bind some things and figure garbage collection out, but then we should be able to start making some awesome things in gmod.
I’m working on a gamemode based on The Ship; hunt a person while someone else hunts you, but you also have needs to attend to
It’s the first gamemode I’m making that isn’t on the fretta base and creating a round system was a lot easier than expected!
All I’ve really done so far is the HUD and then mainly serverside stuff:
http://i.imgur.com/D33uvEXl.jpg
http://i.imgur.com/BWxMCEXl.png
I know the globe is too big although it fuckin shouldn’t be because I did everything with a 10 pixel border
The HUD icons will turn a darker shade of red as they run out, which is kinda horrible and feels unefficient atm as it’s basically a bunch of if satements
This was originally a mod I was making for Noobonic Plague before I drove the server into the ground.
(the video syncs with the music, so if you’re listening to Spotify or whatever, just keep that in mind first)
Dubbed “Photon,” it’s designed to add “cinematic” lighting to cars (specifically emergency lighting), but I just recently added general car lighting support as well. The plan is to release it on Workshop when it gets far enough along. Right now it only supports the Impala, so I have a ways to go.
It is deliberately coded to have a minimal FPS impact and work on multiplayer, but I still gotta test it a lot more because it’s still pretty terrible at some things.
Rubat
(Rubat)
October 31, 2014, 11:43pm
#2
Suggestions?
Current output is
GM:AdjustMouseSensitivity
Should it have the icon in output? Should I separate the library name and function name like so:
GM :AdjustMouseSensitivity ?
Do we even need this?
I think that would be awesome if you return the side color (Server-Client)
I’d use it. I miss the old wiki’s bbcode crap.
Huh, i tought that the orange square was an image,
What i meant it’s show the side of the function, like an orange square if it’s clientside, i think that would be more useful than the gmod wiki favicon
So, i’m very new to coding lua. It’s actually the only language I have taken on. So I have only made a couple things but here they are:
I Changed the model and HUD on the Spray Paint addon, and I also made that HUD.
I am also working on a Police NPC for DarkRP. I just need a new model is all. That was the first time I ever messed around with Derma:
Also take note that the HUD below and the Spray Paint HUD was the first time I have ever messed around with HUDs. So if it’s ugly then sorry!
So yeah. Feedback would be cool
One of these days I should beat you to a new post!
Made it into the highlights for a reason that wasn’t pointing at my monitor
Success!
Rubat
(Rubat)
November 1, 2014, 12:19am
#10
So, i’m very new to coding lua. It’s actually the only language I have taken on. So I have only made a couple things but here they are:
I Changed the model and HUD on the Spray Paint addon, and I also made that HUD.
http://imgur.com/dVO5aKP,NEyp76E
I am also working on a Police NPC for DarkRP. I just need a new model is all. That was the first time I ever messed around with Derma:
http://imgur.com/dVO5aKP,NEyp76E#1
Also take note that the HUD below and the Spray Paint HUD was the first time I have ever messed around with HUDs. So if it’s ugly then sorry!
So yeah. Feedback would be cool
Use direct links in [img] tags, like “http://i.imgur.com/dVO5aKP.jpg ”
01:12 - Divran: http://stackoverflow.com/questions/17527870/how-does-trello-access-the-users-clipboard
01:12 - Divran: this looks like another possible solution
01:16 - Divran: or
01:16 - Divran: if you want it to be clearer
01:16 - Divran: what you could do is
01:16 - Divran: when the person hovers over that "copy to clipboard" icon you have
01:16 - Divran: you replace the text to the right of that icon
01:16 - Divran: with a text entry field
01:16 - Divran: and use javascript to select it
01:17 - Divran: allowing them to hit ctrl+c
01:17 - Divran: then when they stop hovering over the icon
01:17 - Divran: it flips back to text
01:17 - Rubat: heh, that's a cute idea
what do you guys think? agree/disagree/etc
I’ve been working on a gamemode of mine in Gmod, I just got off a hectic shift though at Pizza Hut (shift manager, horrible…) so I’ll post my progress tomorrow.
Just one thing - Versus Saxton Hale (posted about it before)
I’ve been working on a gamemode of mine in Gmod, I just got off a hectic shift though at Pizza Hut (shift manager, horrible…) so I’ll post my progress tomorrow.
Just one thing - Versus Saxton Hale (posted about it before)
I just started working on my own gamemode today, I like to think I’ve had the skills to make one for a while now but never had any motivation to do it. I want to make a good looking, working public release gamemode. I have stacked up on drinks and food and I’m going to do an all nighter.
This is the first time that I’ve ever really planned out an idea, normally, since I do addons which are normally small, I wing it.
Hey, I’m starting another gamemode too. It’s going to be BuildRP without the RP.
Will you call it Sandbox?
I always thought BuildRP was defined as sandbox with rp.
For me, it’s Sandbox with fall damage and money.