rebel1324 / NutScript

A free role-play framework for Garry's Mod.
http://nutscript.net
MIT License
65 stars 31 forks source link

Thirdparty error #240

Closed RonaldMacdonaldTrump closed 5 years ago

RonaldMacdonaldTrump commented 5 years ago

loading doesn't end :

stack traceback: gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:187: in function '_handle' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:46: in function 'reject' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:178: in function '_handle' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:176: in function '_handle' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:37: in function 'resolve' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:112: in function <gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:111> [C]: in function 'pcall' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:174: in function '_handle' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:37: in function 'resolve' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:285: in function <gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:280> [C]: in function 'pcall' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:174: in function '_handle' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:37: in function 'resolve' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:112: in function <gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:111> [C]: in function 'pcall' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:174: in function '_handle' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:176: in function '_handle' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:176: in function '_handle' gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:66: in function <gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_deferred.lua:64>

brianhang commented 5 years ago

There should be some other error that shows before all of these errors. Can you upload the whole console.log file?

RonaldMacdonaldTrump commented 5 years ago

Not a console.log, but here's video : https://youtu.be/bVZdoavYvRg

You see, I'm using hl2rp scheme, It's latest version.

brianhang commented 5 years ago

The first Lua error was the thing I was looking for.

Try going to nutscript/gamemode/core/libs/sh_item.lua, line 152, and add PrintTable(character.vars.inv). Then, show the whole console output again. It seems like an inventory loaded without an ID.

RonaldMacdonaldTrump commented 5 years ago

Ok, I'm remove the sv.db file, and it's fixed.

brianhang commented 5 years ago

Migrating inventories only works on dedicated servers, so that is probably why.