• GMod 13 and Require problem
    10 replies, posted
I am working on fixing up a gamemode, and for some reason when I call require("tmysql") or require("rawio") it errors into console saying: Loading rawio module... [ERROR] gamemodes/----/gamemode/sv_----.lua:14: Couldn't find function in library! 1. require - [C]:-1 2. unknown - gamemodes/----/gamemode/sv_----.lua:14 3. include - [C]:-1 4. unknown - gamemodes/----/gamemode/init.lua:6 On line 14 is : require("rawio") All the .dll files are in /lua/bin/ and all have the gmsv_ or gmcl_ prefix and all have _win32 suffix. Any help is appreciated. Thank you!
You're missing libmysql for tmysql.
[QUOTE=Teddi Orange;38255362]You're missing libmysql for tmysql.[/QUOTE] I have libmysql.dll in my /garrysmod/ directory. And I'm getting the same error with RawIO.
It belongs to [I]garrysmod/garrysmod/lua/includes/modules[/I].
[QUOTE=RP-01;38262589]It belongs to [I]garrysmod/garrysmod/lua/includes/modules[/I].[/QUOTE] No, binary modules now belong in [i]garrysmod/garrysmod/lua/bin[/i], except for libmysql which should be in the [i]garrysmod/[/i] directory. Either your libmysql module is outdated (try getting the latest one), or rawio and tmysql are outdated. I know that tmysql is outdated for a fact, so if you still want to use it you should get tmysql 4.
[QUOTE=Jocken300;38262664]No, binary modules now belong in [i]garrysmod/garrysmod/lua/bin[/i], except for libmysql which should be in the [i]garrysmod/garrysmod[/i] directory. Either your libmysql module is outdated (try getting the latest one), or rawio and tmysql are outdated. I know that tmysql is outdated for a fact, so if you still want to use it you should get tmysql 4.[/QUOTE] libmysql should be in garrysmod/ not garrysmod/garrysmod
libmysql should be in orangebox/ with srcds.exe
[QUOTE=Drakehawke;38262682]libmysql should be in garrysmod/ not garrysmod/garrysmod[/QUOTE] Whoops, sorry. My mistake. [QUOTE=KingofBeast;38262788]libmysql should be in orangebox/ with srcds.exe[/QUOTE] Yes, if you're running a server. If you're testing something in SP it goes in garrysmod/.
no. if you are testing on a listen server it goes with hl2.exe, if you are testing on a dedi it goes with srcds.exe (for libmysql.dll) for the actual module it goes in lua/bin
If anyone is running their own server they might want to chuck libmysql in system32 (although don't overwrite anything if other programs are using a different version).
[QUOTE=mdew355;38255373]I have libmysql.dll in my /garrysmod/ directory. And I'm getting the same error with RawIO.[/QUOTE] RawIO is outdated, you nead to wait for a fix
Sorry, you need to Log In to post a reply to this thread.