Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spam to console "ScriptVmStringFromVariant failed ..." #1

Open
spumer opened this issue Aug 4, 2014 · 7 comments
Open

Spam to console "ScriptVmStringFromVariant failed ..." #1

spumer opened this issue Aug 4, 2014 · 7 comments

Comments

@spumer
Copy link

spumer commented Aug 4, 2014

Hi. When i connect to the server, system periodically spam to console with message:
"ScriptVmStringFromVariant failed to unpack parameter variant type 0"

I think this caused by SaveTale/RestoreTable functions

PS:
The .tbl file in left4dead2/ems folder exists.

@neil-119
Copy link
Member

Can you post the .tbl file here? Thanks.

@spumer
Copy link
Author

spumer commented Aug 20, 2014

Sure!

Errors in player_first_spawn []

AN ERROR HAS OCCURED [the index '7' does not exist]

CALLSTACK
*FUNCTION [GetTeam()] /path/to/server/left4dead2/left4dead2/scripts/vscripts/VSLib/Player.nut line [483]
*FUNCTION [OnGameEvent_player_first_spawn()] /path/to/server/left4dead2/left4dead2/scripts/vscripts/VSLib/EasyLogic.nut line [630]
*FUNCTION [__RunEventCallbacks()] unnamed line [211]
*FUNCTION [__RunGameEventCallbacks()] unnamed line [218]

LOCALS
[this] INSTANCE
[_id] 7
[ents] TABLE
[params] TABLE
[this] TABLE
[funcName] "OnGameEvent_player_first_spawn"
[idx] 1
[useTable] TABLE
[bWarnIfMissing] true
[globalTableName] "GameEventCallbacks"
[prefix] "OnGameEvent_"
[params] TABLE
[event] "player_first_spawn"
[this] TABLE
[params] TABLE
[event] "player_first_spawn"
[this] TABLE
ScriptVmKeyValueFromVariant failed to unpack parameter variant type 0
ScriptVmKeyValueFromVariant failed to unpack parameter variant type 0
ScriptVmKeyValueFromVariant failed to unpack parameter va

Errors in award_earned []

AN ERROR HAS OCCURED [the index '14' does not exist]

CALLSTACK
*FUNCTION [OnGameEvent_award_earned()] /path/to/server/left4dead2/left4dead2/scripts/vscripts/VSLib/EasyLogic.nut line [243]
*FUNCTION [__RunEventCallbacks()] unnamed line [211]
*FUNCTION [__RunGameEventCallbacks()] unnamed line [218]

LOCALS
[idx] 14
[award] 69
[subjectentid] 7
[ents] TABLE
[params] TABLE
[this] TABLE
[funcName] "OnGameEvent_award_earned"
[idx] 1
[useTable] TABLE
[bWarnIfMissing] true
[globalTableName] "GameEventCallbacks"
[prefix] "OnGameEvent_"
[params] TABLE
[event] "award_earned"
[this] TABLE
[params] TABLE
[event] "award_earned"
[this] TABLE
ScriptVmKeyValueFromVariant failed to unpack

/ems/_vslib_global_cache.tbl []

{
_vslInt_1 = {
_ip = "none"
_steam = "BOT"
}
_vslInt_2 = {
_ip = "none"
_steam = "BOT"
}
_vslInt_3 = {
_ip = "none"
_steam = "BOT"
}
_vslInt_4 = {
_ip = "none"
_steam = "BOT"
}
_vslInt_5 = {
_ip = "none"
_steam = "BOT"
}
_vslInt_6 = {
_ip = "none"
_steam = "BOT"
}
_vslInt_7 = {
_ip = "none"
_steam = "BOT"
}
_vslInt_8 = {
_ip = "none"
_steam = "BOT"
}
_vslInt_9 = {
_ip = "none"
_steam = "BOT"
}
_vslInt_10 = {
_ip = "none"
_steam = "BOT"
}
}
^@

neil-119 added a commit that referenced this issue Aug 20, 2014
@neil-119
Copy link
Member

I posted a patch, see if you are still getting the errors.

@spumer
Copy link
Author

spumer commented Aug 21, 2014

@neil-119 No errors occured now. But as before (now only on both round starts) i got spam to console:

ScriptVmKeyValueFromVariant failed to unpack parameter variant type 0
ScriptVmKeyValueFromVariant failed to unpack parameter variant type 0
ScriptVmKeyValueFromVariant failed to unpack parameter variant type 0
ScriptVmKeyValueFromVariant failed to unpack parameter variant type 0
...

/ems/_vslib_global_cache.tbl seems not changed - don't have info about me - human

@neil-119
Copy link
Member

Are you on Linux? Does _vslib_global_cache.tbl have its permissions set? It should be set to 755. If you copied the scripts from a different machine and uploaded it to your server, it might have the wrong permissions.

@spumer
Copy link
Author

spumer commented Aug 21, 2014

@neil-119 Yes, Linux. Are you talking about .nut files permissions? Specific permissions needed for vslib scripts? I'm use VSLib and it works fine, except SaveTable function (which usage spam to console)

I remove _vslib_global_cache.tbl and it created again with the similar content.
ems/ folder created by game and has 744 mode, .tbl file also created by game and has 664 mode.

@neil-119
Copy link
Member

Sorry for the late response; I have been really busy lately. Do you get similar errors on Windows (would it be possible to test your plugin on a windows machine)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants