Script Error in 'pkg/commands/trainee/go.ecl' PC=1460:
Call to function GetConfigStringArray:
Parameter 0: Expected datatype ApplicObj, got datatype Error
and when I searched for that in the .lst file of the script I find out exactly which of my 3 calls to GetConfigStringArray it was in the script.
I added some Print to check what they really return like this:
Code: Select all
function GoCategoryGump( character, realm_string )
var cfg;
Print( realm_string );
case ( realm_string )
"Felucca": cfg := "Go_Felucca";
"Trammel": cfg := "Go_Trammel";
"Ilshenar": cfg := "Go_Ilshenar";
"Malas": cfg := "Go_Malas";
"Tokuno": cfg := "Go_Tokuno";
default:
SysLog( "No such realm string in Go command." + realm_String );
DebugLog( GetPid(), "No such realm string in Go command." + realm_string );
return 0;
endcase
var cfg_file := ReadConfigFile( ":Commands:" + cfg );
Print( "Category Gump " + cfg_file );
var cfg_elem := FindConfigElem( cfg_file, realm_string );
Print( "Category Gump " + cfg_elem );
var cfg_array := GetConfigStringArray( cfg_elem, "Category" );
but... my Print return always for both cfg_file and cfg_elem that they are of type ApplicObj:ConfigFileRef and ApplicObj:ConfigElemRef
That's why I dont understand anymore what could cause this, and I'm asking for some advices here.
Anyone having advices or ideas what could possibly cause that error to debug.log ?