Grocel / 3D-Stream-Radio

It is an spawnable scripted entity for Garry's Mod that allows you to play online streams and local files as 3D world sound.
https://steamcommunity.com/sharedfiles/filedetails/?id=246756300
17 stars 4 forks source link

Server side error on server start that breaks addon (workshop version) #14

Closed storm37000 closed 1 year ago

storm37000 commented 1 year ago

An error prints to console on server start since the latest major workshop update.

[3D Stream Radio] lua/weapons/gmod_tool/stools/streamradio.lua:16: attempt to call field 'GetDefaultModel' (a nil value)
  1. unknown - lua/weapons/gmod_tool/stools/streamradio.lua:16
   2. include - [C]:-1
    3. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/stool.lua:154
     4. include - [C]:-1
      5. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:372
       6. include - [C]:-1
        7. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/init.lua:10
Grocel commented 1 year ago

Thanks for reporting. This error was caused by the server being outdated.

I just released an update that adjust the version check to support the server version 230628 or newer. Additionally the patch comes with a better error handling, which will reduce the likeliness of error spam.

If the addon does not load, it it will show you why when you try to use it. Spawned radio entities will be disabled, instead of spamming errors, etc.

The newest change also brings some optimizations and other bug fixes.

Grocel commented 1 year ago

Closing as fixed in 921a58fcbe2cb7a03c4e7cf259b6c69e44735d28