Lua Errors

Thursday, November 8, 2012

A couple of updates ago I started reporting Lua errors back to our servers. This was to serve a few purposes.

  • Show us workshop addons that were erroring, so we could warn/remove them
  • Show me where my scripts were erroring, so I could fix them
  • Show me where something in an update caused problems with addons, so I could retain compatibility

So I got a rudimentary site up here, and it's working pretty well, serving its purpose.

One thing that was apparent was that people were getting Lua errors that they shouldn't have been getting. For example..

lua/postprocess/morph.lua:6: attempt to call method 'SetMaterialTexture' (a nil value)

This shouldn't have been happening because morph.lua isn't included in GMod anymore. This file must have got left over somehow. (one of my theorys is that it's still on some dedicated servers - but at the time my stats didn't reveal whether error reporting clients were connected to servers). So I added some code to delete the file if it found it.. and the errors faded out.

The fact that they faded out instead of just dying dead suggests to me that they were probably being sent by servers. Since the server update was optional, the servers might not have restarted for hours - but clients could still join and get the old Lua files.

To prove this theory, here's another graph. This error was happening when people loaded an old save with a camera in it, a bug I fixed with yesterday's update. As you can see, the error dies straight away.

So it's working out pretty good. I'm going to expand the system so that we can show all the errors created by a particular gamemode, addon or addon author. Maybe one day we will have a GMod where players don't have to live with an error notification on their screen while they play.

More Rubbish

Your Portfolio Gave Me Diarrhea

Friday, October 1, 2021


Friday, September 24, 2021

We got married

Thursday, September 16, 2021

Unity Quiz

Sunday, September 6, 2020

Everything We Watched In Lockdown

Thursday, September 3, 2020

Optimising GMod

Tuesday, October 30, 2012

Texture Filtering

Saturday, October 27, 2012

Toybox Torrent

Tuesday, October 23, 2012

Toybox Disabled

Monday, October 22, 2012

Snack Chair

Saturday, October 20, 2012