Vurv78 / WebAudio

A safe, efficient and powerful replacement for Streamcore that adds playing & manipulating URL streams through IGmodAudioChannel/BASS
https://steamcommunity.com/sharedfiles/filedetails/?id=2466875474
MIT License
18 stars 3 forks source link

Newest release errors -attempt to index local 'Common' (a nil value) #29

Closed ghost closed 3 years ago

ghost commented 3 years ago
There was an error loading the custom/webaudio.lua extension. Please report this to its developer.
entities/gmod_wire_expression2/core/custom/webaudio.lua:9: attempt to index local 'Common' (a nil value)

Looks like WebAudio.Common isn't initialised with a value on first run for whatever reason

Edit: Another error cropped up whilst testing:

[webaudio-main] addons/webaudio-main/lua/autorun/webaudio.lua:66: attempt to call method 'disassemble' (a nil value)
  1. unknown - addons/webaudio-main/lua/autorun/webaudio.lua:66

Seems like the functions are being called for in the code before they are defined

Vurv78 commented 3 years ago

Can you test it out now? It seems something on your server didn't let webaudio load the first time, which made disassemble not exist, and we tried to call it. I made it check for disassemble so it should let you debug it now. Also E2 checks if webaudio is loaded, if not then it includes it. (Will probably strip that out if this is just a server bug.)

ghost commented 3 years ago

Latest push works with no issues - everything works as intended.