Garry's Mod Logo
schedule 26 February 2013
Devblog

GMod Update 158

 

UPDATE: If you’re unable to start a game after this update, if you’re starting a map and it’s kicking you back to the menu.. then you have an incompatible addon installed. Look for errors in your console to work out which one.. or just delete your garrysmod/addons folder. If that doesn’t work then try this.

An update has been sent to Valve. Servers will need to be restarted :)

Fixed Addon Crash

A crash could occur when two addons contained the same filename - and one of them threw a Lua error. This is now fixed.

Fixed invisible player models

A merge error in the last update caused a bug where you couldn’t see your own player model in reflections, or taunts etc. This should now be fixed!

Disable autorefresh

If you’re that way inclined you can now disable lua autorefresh. This won’t affect the huge majority of GMod players out there - but some server admins have requested it asthey feel it slows their servers down (because they’re writing a lot of files all the time). To disable add -disableluarefresh to your command line.

Added bodygroup properties

Open the properties menu on an entity with bodygroups and you’ll be able to edit them! Finally!

Added skin properties

The same as bodygroup properties - but for skins!

Fixed Scenes not finding !player

Sometimes scene sequences in maps couldn’t find an entity called !player. Even though the player was there. This would be mostly happening in multiplayer - and should now be fixed!

Fixed downloads folder

When you join a server and it downloads a bunch of crap, it’s all meant to go into the downloads folder, so your install doesn’t get infected with all the online insanity. This wasn’t happening all the time though. This is now fixed - all the downloads should go to the downloads folder :)

Disable LuaJIT

Some people feel that the JIT part in LuaJIT slows their servers down. You can now start with LuaJIT disabled by running with -nojit.

Added entity callback BuildBonePositions

You can now call AddCallback( “BuildBonePositions”, myfunc ) to add a callback that should work the same as the historic BuildBonePositions hook. A lot of coders have requested this as this hook gives a greater degree of freedom (at the cost of a performance overhead) over the ManipulateBone functions. .

PlayerSwitchWeapon hook return

Returning true in PlayerSwitchWeapon now prevents the switch. This was requested by the community. There is a chance that this could break some weapons that are already out there - but only if they’re returning true for some reason.

Cleaner Kicking

When being kicked from a server it would previously show a message like “Kicked by Console: Blah Blah Blah”. We dropped the kicked by console part - now it will just show “Blah Blah Blah”.

Added Player:ScreenFade

As requested by the community, this function is a 1:1 binding of the UTIL_ScreenFade engine function.

Added Weapon:DrawHUDBackground

A HUD drawing hook for SWEPs that is called before drawing the chat and killicons.

Dedicated Servers use Workshop Collections

Throw away your workshop.vdf file - because you don’t need it. The workshop for dedicated server system now works the same way as CS:GO.

Added CheckPassword hook

A long requested hook that allows Lua to control the join process. This should duplicate the functionality of the gatekeeper module that a lot of servers use - and might even break gatekeeper itself - because the engine no longer calls the functions that it hooks.

Fixed trails crash exploit

It was possible to crash all clients on a server by specifying an invalid material for the trails tool. This has been fixed by locking down the list of usable materials to a list set by the server.

Mount any gma files

GMA files are Garry’s Mod Addon files. You can now copy a GMA into the garrysmod folder (or garrysmod/addons/gma/) and have them mount just like they’d been downloaded from Workshop. This should be useful for people who don’t want to use workshop for some reason, and people who want to test their addons offline before uploading them to workshop.

Legacy Addon Mounting Changes

The Legacy Addon System previously required an addon.txt file in the addon folder. This is no longer the case. This requirement has been removed for ease of use. This means that any GMod 12 addons you have in addons/ will start mounting again. These might cause some problems - so be sure to clean them out before complaining.

Workshop Censorship

If you upload a save, demo or dupe that contains a banned word - it will be marked as private so only your friends can see it. I’m hoping this will reduce the number of naked/sex contributions we’re seeing!

Flechette Gun is back

Something happened somewhere that stopped the flechette from spawning. Robotboy spotted it! He made a pull request that gave it us back!

Added Spawnpoints for most mountable games

Robotboy submitted a pull request that will let you spawn in a bunch of maps that you couldn’t spawn in before.

TTT changes

Fixed scrollbar showing in search when not needed, fixed NPCs leaving DNA traces on corpses. (svdm)

Added admin only icon

Robotboy sorted you out with this fix. Now you can see which entities in the spawnmenu are admin only - so you don’t have to bother trying to spawn them!

Fixed static camera being able to knocked over

Yet another update from Git Pull Superstar Robotboy. This makes it so you can’t knock or shoot the camera over. I’m sure a lot of people will appreciate this! And everyone else will moan that they loved being able to shoot and knock it over. Oh well.

More player model updates

The corpse and charple player models are back! All other colourability textures have been enhanced, fixing the cases where choosing a dark color would turn you into a black blob with gray spots. Animation-wise, the left arm should look a bit less odd when using the SMG1 now. And last but not least, the arctic variant of Dr. Mossman is now available as a player model!

Fixed grass being too bright in certain maps

This was caused by an old material override used by gm_flatgrass in Gmod 12. It wasn’t needed anymore but stuck around; and now it’s gone!

Fixed Addon Crash

A crash could occur when two addons contained the same filename - and one of them threw a Lua error. This is now fixed.

Fixed invisible player models

A merge error in the last update caused a bug where you couldn’t see your own player model in reflections, or taunts etc. This should now be fixed!

Disable autorefresh

If you’re that way inclined you can now disable lua autorefresh. This won’t affect the huge majority of GMod players out there - but some server admins have requested it asthey feel it slows their servers down (because they’re writing a lot of files all the time). To disable add -disableluarefresh to your command line.

Added bodygroup properties

Open the properties menu on an entity with bodygroups and you’ll be able to edit them! Finally!

Added skin properties

The same as bodygroup properties - but for skins!

Fixed Scenes not finding !player

Sometimes scene sequences in maps couldn’t find an entity called !player. Even though the player was there. This would be mostly happening in multiplayer - and should now be fixed!

Fixed downloads folder

When you join a server and it downloads a bunch of crap, it’s all meant to go into the downloads folder, so your install doesn’t get infected with all the online insanity. This wasn’t happening all the time though. This is now fixed - all the downloads should go to the downloads folder :)

Disable LuaJIT

Some people feel that the JIT part in LuaJIT slows their servers down. You can now start with LuaJIT disabled by running with -nojit.

Added entity callback BuildBonePositions

You can now call AddCallback( “BuildBonePositions”, myfunc ) to add a callback that should work the same as the historic BuildBonePositions hook. A lot of coders have requested this as this hook gives a greater degree of freedom (at the cost of a performance overhead) over the ManipulateBone functions. .

PlayerSwitchWeapon hook return

Returning true in PlayerSwitchWeapon now prevents the switch. This was requested by the community. There is a chance that this could break some weapons that are already out there - but only if they’re returning true for some reason.

Cleaner Kicking

When being kicked from a server it would previously show a message like “Kicked by Console: Blah Blah Blah”. We dropped the kicked by console part - now it will just show “Blah Blah Blah”.

Added Player:ScreenFade

As requested by the community, this function is a 1:1 binding of the UTIL_ScreenFade engine function.

Added Weapon:DrawHUDBackground

A HUD drawing hook for SWEPs that is called before drawing the chat and killicons.

Dedicated Servers use Workshop Collections

Throw away your workshop.vdf file - because you don’t need it. The workshop for dedicated server system now works the same way as CS:GO.

Added CheckPassword hook

A long requested hook that allows Lua to control the join process. This should duplicate the functionality of the gatekeeper module that a lot of servers use - and might even break gatekeeper itself - because the engine no longer calls the functions that it hooks.

Fixed trails crash exploit

It was possible to crash all clients on a server by specifying an invalid material for the trails tool. This has been fixed by locking down the list of usable materials to a list set by the server.

Mount any gma files

GMA files are Garry’s Mod Addon files. You can now copy a GMA into the garrysmod folder (or garrysmod/addons/gma/) and have them mount just like they’d been downloaded from Workshop. This should be useful for people who don’t want to use workshop for some reason, and people who want to test their addons offline before uploading them to workshop.

Legacy Addon Mounting Changes

The Legacy Addon System previously required an addon.txt file in the addon folder. This is no longer the case. This requirement has been removed for ease of use. This means that any GMod 12 addons you have in addons/ will start mounting again. These might cause some problems - so be sure to clean them out before complaining.

Workshop Censorship

If you upload a save, demo or dupe that contains a banned word - it will be marked as private so only your friends can see it. I’m hoping this will reduce the number of naked/sex contributions we’re seeing!

Flechette Gun is back

Something happened somewhere that stopped the flechette from spawning. Robotboy spotted it! He made a pull request that gave it us back!

Added Spawnpoints for most mountable games

Robotboy submitted a pull request that will let you spawn in a bunch of maps that you couldn’t spawn in before.

TTT changes

Fixed scrollbar showing in search when not needed, fixed NPCs leaving DNA traces on corpses. (svdm)

Added admin only icon

Robotboy sorted you out with this fix. Now you can see which entities in the spawnmenu are admin only - so you don’t have to bother trying to spawn them!

Fixed static camera being able to knocked over

Yet another update from Git Pull Superstar Robotboy. This makes it so you can’t knock or shoot the camera over. I’m sure a lot of people will appreciate this! And everyone else will moan that they loved being able to shoot and knock it over. Oh well.

More player model updates

The corpse and charple player models are back! All other colourability textures have been enhanced, fixing the cases where choosing a dark color would turn you into a black blob with gray spots. Animation-wise, the left arm should look a bit less odd when using the SMG1 now. And last but not least, the arctic variant of Dr. Mossman is now available as a player model!

Fixed grass being too bright in certain maps

This was caused by an old material override used by gm_flatgrass in Gmod 12. It wasn’t needed anymore but stuck around; and now it’s gone!