ValentinFunk / LibK

Library for fast gmod addon development
MIT License
53 stars 21 forks source link

UseMysql not work #41

Closed RomanXseven closed 2 years ago

RomanXseven commented 2 years ago

downloaded the latest version addons only libk ps2 pac3 database working darkrp connects to it

[libk] addons/libk/lua/libk/server/sv_libk_database.lua:283: attempt to call method 'connect' (a nil value)
  1. ConnectToMySQL - addons/libk/lua/libk/server/sv_libk_database.lua:283
   2. getDatabaseConnection - addons/libk/lua/libk/server/sv_libk_database.lua:356
    3. unknown - addons/libk/lua/libk/server/sv_versioning.lua:16
     4. include - [C]:-1
      5. unknown - addons/libk/lua/autorun/_libk_loader.lua:36

[LibK] MANUAL: Loading file: libk/shared/sh_KPlayer.lua
LibK by Kamshak loaded
[BricksServer SQLLite] bricks_server_currencies table validated!
[PAC3] Loaded total 15 particle systems

[libk] addons/libk/lua/libk/shared/sh_addonloader.lua:151: attempt to call field 'updateAddon' (a nil value)
  1. InitializeAddon - addons/libk/lua/libk/shared/sh_addonloader.lua:151
   2. unknown - addons/ps2/lua/autorun/pointshop2_init.lua:23

[libk] addons/libk/lua/libk/shared/sh_addonloader.lua:151: attempt to call field 'updateAddon' (a nil value)
  1. InitializeAddon - addons/libk/lua/libk/shared/sh_addonloader.lua:151
   2. unknown - addons/ps2/lua/autorun/ps2_kinv_init.lua:1

Trying to create entities too early! (env_physexplosion)

[libk] addons/libk/lua/libk/server/sv_libk_database.lua:283: attempt to call method 'connect' (a nil value)
  1. ConnectToMySQL - addons/libk/lua/libk/server/sv_libk_database.lua:283
   2. getDatabaseConnection - addons/libk/lua/libk/server/sv_libk_database.lua:356
    3. DBInitialize - addons/libk/lua/libk/server/sv_libk_server.lua:38
     4. func - addons/libk/lua/libk/server/sv_libk_server.lua:42
      5. f - addons/libk/lua/libk/shared/1_sh_promises.lua:30
       6. Resolve - addons/libk/lua/libk/shared/1_sh_promises.lua:184
        7. func - addons/libk/lua/libk/server/sv_libk_server.lua:11
         8. unknown - lua/includes/modules/hook.lua:241
ValentinFunk commented 2 years ago

Just merged a MysqlOO pull request, please redownload the newest libk, delete fully and upload again. Make sure you install the newest mysqloo from here https://github.com/FredyH/MySQLOO#install-instructions