FredyH / MySQLOO

MySQLOO
GNU Lesser General Public License v2.1
140 stars 55 forks source link

The latest garrsmod update of today broke mysqloo #128

Closed MrCoala closed 10 months ago

MrCoala commented 10 months ago

The garrysmod update of today broke mysqloo. It is basically not useable anymore. Can you have a look into that?

WinterPhoenix commented 10 months ago

For context, debug.getregistry was removed, which likely means you just can't get SPECIAL_REG anymore

WinterPhoenix commented 10 months ago

Update: Make sure you've got the latest version of GMod/SRCDS. It looks like mysqloo is working again with it

FredyH commented 10 months ago

I am not sure why mysqloo would be broken by this. I don't use debug.getregistry or SPECIAL_REG anywhere as far as I can see, and my local dev server does not seem affected (but this might be because some hotfix is already out?)

MrCoala commented 10 months ago

Okay, so i am not sure what is happening right now but the latest update suddenly broke mysqloo.

I just installed a fresh gmod-server copy by using steamcmd:

./steamcmd.sh +login anonymous +force_install_dir ./gmod_test/ +app_update 4020 validate +quit

I installed the latest gmsv_mysqloo_linux64.dll into: ./gmod_test/garrysmod/lua/bin Into this directory /garrysmod/lua/includes/modules i put the following files from this repo:

connectionpool.lua mysqloolib.lua tmysql4.lua

These are the lua errors i got:

[sw_helper] Couldn't include file 'includes/modules/mysqloo.lua' - File not found or is empty (@addons/sw_helper/lua/server/sv_mysql.lua (line 1))

  1. unknown - addons/sw_helper/lua/server/sv_mysql.lua:1
    1. include - [C]:-1
    2. Include - addons/sw_helper/lua/autorun/init.lua:57
      1. IncludeFolder - addons/sw_helper/lua/autorun/init.lua:85
      2. unknown - addons/sw_helper/lua/autorun/init.lua:90

[sw_helper] addons/sw_helper/lua/server/sv_mysql.lua:1: Module not found!

  1. require - [C]:-1
    1. unknown - addons/sw_helper/lua/server/sv_mysql.lua:1
    2. include - [C]:-1
      1. Include - addons/sw_helper/lua/autorun/init.lua:57
      2. IncludeFolder - addons/sw_helper/lua/autorun/init.lua:85
      3. unknown - addons/sw_helper/lua/autorun/init.lua:90

For that code:

require('mysqloo')

I am pretty confused right now since this is the exact same setupt as my productive server has but it still fails with the latest gmod server files.

MrCoala commented 10 months ago

OK, I have just found out that for some inexplicable reason the srcds process is now running the 32 bit binaries. I have copied the 32 bit module and it is now working again. But I am still a bit confused as to why it has switched from being 64 bit to being 32 bit.

FredyH commented 10 months ago

Since it appears to work now, I will close the issue. If anyone finds something else wrong with this latest Garry's Mod update, please feel free to re-open.