GMod Coding

Man I’ve been coding all day. Well not coding. More grafting.

When Valve broke GMod the other day they’d changed an interface that no-one was really using. But GMod was. The fix was simple, update the header file. Done.

But then another bug appeared. They’d also changed the format of the particles. GMod was using the old loading code, which meant a lot of particles weren’t totally working. I’d normally have said “fuck it, next update” but the particles were all spawning at 0,0,0 in the middle of the world, forming one huge super particle that knocked the frame rate down to under 5fps.

So the fix to this was to include the new particles.lib. But then it turned out that Valve’s source control server was having problems so I used the file from the the SDK. But I hadn’t merged with Valve’s code since February so there were a few other headers and stuff that needed updating. But I managed to sew it all together and throw it out.

After the patch people reported that the files had invalid Lua. Like it was overwriting the file but leaving the end of the file still there, resulting in a load of spazz at the end. I haven’t experienced this myself but people have been telling me my code is wrong and from what they’ve pasted it looks like that’s the case. I dunno though.

Today I merged with Valve’s latest code. Which turned out to be a mission and a half because once I’d done it was crashing almost randomly. In the end, after about 10 hours wrangling with it I think it was because I hadn’t deleted some files that Valve had deleted, so it must have been getting a wrong/moved header or some shit. I dunno, it’s working now so fuck it all in the ear.