Hey.
So with an addon I'm working on, it appears I get ulib errors on some of ulib's functions, for some reason. I'll provide each line of code for the error.
addons/ulib/lua/ulib/shared/misc.lua:30 (ULib Code)
local newpos, endpos = str:find( separator, curpos ) -- find the next separator in the string
addons/ulib/lua/ulib/shared/misc.lua:696 (ULib Code)
local lines = ULib.explode( "\r?\n", data )
addons/imbans/lua/autorun/server/ulx_sv_mysql.lua:915 (My Code)
local bans, error3 = ULib.parseKeyValues( ULib.removeCommentHeader( ULib.fileRead( ULib.BANS_FILE ), "/" ) )
lua/includes/modules/concommand.lua:54 (Garry's Mod Dedicated Server Code)
CommandList[ LowerCommand ]( player, command, arguments, args )
I'm a bit confused as to why it's erroring out there. (I've provided the error below)
My ULib/ULX versions (run "ulx version" in console):
ULib v2.61 (latest as of now)
ULX v3.71 (latest as of now)
Game mode(s) I am having this problem on: Not relevant: any gamemode.
Lua errors shown in console, if any:
[ERROR] addons/ulib/lua/ulib/shared/misc.lua:30: attempt to index local 'str' (a
nil value)
1. explode - addons/ulib/lua/ulib/shared/misc.lua:30
2. removeCommentHeader - addons/ulib/lua/ulib/shared/misc.lua:696
3. unknown - addons/imbans/lua/autorun/server/ulx_sv_mysql.lua:915
4. unknown - lua/includes/modules/concommand.lua:54
Any help or suggestions with this would be greatly appreciated. If this is an actual issue on ULib's side, I'll create a bug report.