Garry's Mod Logo
schedule 16 August 2012
Devblog

GMod Beta - Update 31

I know what you’re thinking. How did we get to 31? Well - there’s been other bug fixing patches that weren’t announced. That’s how. So lets build a bridge and get over it.

So there’s a few goodies in this patch. And a few baddies.

Changes

  • Fixed Lua errors after calling Trace functions
  • timer.IsTimer renamed to timer.Exists
  • Renamed Material:[Get|Set]Material* to Material:[Get|Set]*
  • Angle/Vector defaults to 0, 0, 0
  • Fixed DeriveGamemode causing Lua errors
  • Renamed NewMesh to Mesh
  • Added Player:IsWorldClicking() (shared)
  • Removed Player:GetCursorAimVector()
  • Added Panel:SetWorldClicker()
  • Removed hook ‘ContextScreenClick’ (now redundant)
  • Removed hook ‘CallScreenClickHook’
  • Can now use all weapons from context screen
  • Can now use widgets from context screen
  • Fixed Network vars not working properly
  • Added aspect option to RenderView
  • Fixed crashes in Shutdown hook
  • Fixed crouch speed being inconsistent
  • Removed gm_clearfonts (now redundant)
  • Changed to surface.CreateFont( name, table )
  • Added OnReloaded hook to gamemode and entities - called when it has been reloaded by auto * refresh
  • Fixed SuperDOF issues
  • Fixed drag n drop error
  • Fixed spawnlists not saving properly
  • Fixed not being able to browse garrysmod folder in spawnlist
  • Addons now get mounted before new downloads
  • Addons now detect download slow/failure and skip to next
  • Server list now refreshes as you’d expect
  • Server list now shows players on selected server
  • Fixed not being able to type into menu screen

So here’s some details on some stuff.

surface.CreateFont

This is one for the developers. I changed surface.CreateFont to use a table instead of 8 parameters that no-one could ever remember. This means that any code that uses surface.CreateFont needs to be changed - which sucks - but to sweeten the deal I got rid of gm_clearfonts.. so there’s no need for all that stupid crap when you change a font and want to see what it looks like.

Here’s a video of me editing a script in another window. As you can see the font in the top left if updated instantly!

World Clicking

I made world clicking better. It was done in a hacky unpredicted way before - it’s something that has haunted me for years. Now it works in a nice clean generic way.. which means it works with all weapons and widgets too. You can check out this video if you want to see it in action.

Mac

The mac version should work again.

Server List

I made a couple of changes to the new server list. It’s still not done.. but I made it show a player list when you click on the server. Pressing refresh works like you’d expect it to now too.

Spawnlists

You can save your spawnlists again now. I fixed a few errors in that area. I also added a couple of extra default spawnlists - since people were missing the phx props.