uen / Leveling-System

Leveling system in gLua (For DarkRP)
Other
34 stars 22 forks source link

DarkRPVar not registered #76

Closed ahnok closed 6 years ago

ahnok commented 6 years ago

Hello,

I am using the github version and not the workshop version. However I am still recieving the error which states, that the DarkRPVars "xp" and "level" have not been registered. If it helps, this is the code for the sv_data.lua however it's exactly the same as here on github.

`[ERROR] A runtime error has occurred in "lua/darkrp_modules/levels/sv_data.lua" on line 14. The best help I can give you is this:

Warning! DarkRPVar 'xp' wasn't registered! Please contact the author of the DarkRP Addon to fix this. Until this is fixed you don't need to worry about anything. Everything will keep working. It's just that registering DarkRPVars would make DarkRP faster.

Hints:

The responsibility for the error above lies with (the authors of) one (or more) of these files:

  1. lua/darkrp_modules/levels/sv_data.lua on line 14
  2. gamemodes/starwarsrp/gamemode/libraries/mysqlite/mysqlite.lua on line 305
  3. lua/darkrp_modules/levels/sv_data.lua on line 14
  4. lua/darkrp_modules/levels/sv_data.lua on line 23
  5. lua/darkrp_modules/levels/sh_core.lua on line 200
  6. lua/ulib/shared/hook.lua on line 109 ------- End of Simplerr error -------

[ERROR] A runtime error has occurred in "lua/darkrp_modules/levels/sv_data.lua" on line 14. The best help I can give you is this:

Warning! DarkRPVar 'level' wasn't registered! Please contact the author of the DarkRP Addon to fix this. Until this is fixed you don't need to worry about anything. Everything will keep working. It's just that registering DarkRPVars would make DarkRP faster.

Hints:

The responsibility for the error above lies with (the authors of) one (or more) of these files:

  1. lua/darkrp_modules/levels/sv_data.lua on line 14
  2. gamemodes/starwarsrp/gamemode/libraries/mysqlite/mysqlite.lua on line 305
  3. lua/darkrp_modules/levels/sv_data.lua on line 14
  4. lua/darkrp_modules/levels/sv_data.lua on line 23
  5. lua/darkrp_modules/levels/sh_core.lua on line 200
  6. lua/ulib/shared/hook.lua on line 109 ------- End of Simplerr error ------- `
uen commented 6 years ago

They are registered here: https://github.com/vrondakis/Leveling-System/blob/master/addons/darkrpmodification/lua/darkrp_modules/levels/sh_config.lua#L216-L218

Possibly you have both the workshop version and github version installed, or you deleted the lines from the config file

ahnok commented 6 years ago

Exactly the same and I am not subscribed to the workshop version. Just in case I deleted all my addons.

Edit: It seems there were still some files from the workshop version installed. At least it works now, thank you.