Page 1 of 1

[Error] First Setup

Posted: Mon Oct 24, 2011 8:44 am
by equinox80
Hi, just getting back into UO again. Normally I use RunUO because I am great at C#, however I am testing my eScript capabilities.

Sooo, during my first setup I get 3 script errors, can yous help me with them, so I can test my custom scripts Ima make.

I installed the POL097 Distro and used the POL098 Core.

Since I never seen any POL098 Distro.

Thanks guys!

:bacondance: Sincerely, Azden :bacondance:

Code: Select all


Error compiling statement at D:/POL098/pkg/skills/lumberjacking/include/lumberJack.inc, Line 340
Error compiling statement at D:/POL098/pkg/skills/lumberjacking/include/lumberJack.inc, Line 337
Error in function 'ChopFurniture', File: D:/POL098/pkg/skills/lumberjacking/include/lumberJack.inc, Line 340

var created := {};
	foreach serial in the_serials <---- Line 337
		// We search both flags, in case a key exists for the furniture,
		// and needs to be found and destroyed!
		var part := SystemFindObjectBySerial( serial, SYSFIND_SEARCH_OFFLINE_MOBILES + SYSFIND_SEARCH_STORAGE_AREAS ); <----- Line 340
		if( part )
			created.append( part );
		endif
	endforeach
	if( !len(created) )
		return 0;
	endif

Error in function 'ChopFurniture'.
File: D:/POL098/pkg/skills/lumberjacking/include/lumberJack.inc, Line 340



Compiling: D:/POL098/pkg/utils/gumps/autoClose.src
Error: expected identified after 'program', got 'Func(2,3): CloseGump'
Error detected in program body.
Error occurred at D:\POL098\pkg\utils\gumps\autoClose.src, Line 7

/* $Id: autoClose.src 799 2006-09-13 01:19:02Z austinheilman $
 *
 */

include ":gumps:gumps_ex";

program CloseGump(params) <------- Line 7
	var mobile	:= params[1];
	var pid		:= params[2];
	var timer	:= params[3];
	var ret_val	:= params[4];
	params := 0; // Not needed anymore.

	Sleep(CInt(timer));

	GFCloseGump(mobile, pid, ret_val);
endprogram

Variable SYSFIND_SEARCH_STORAGE_AREAS has not been declared on line 495.
Error compiling statement at D:\POL098\pkg\utils\servmgmt\www\objviewer.src, Line 495
Error in function 'ShowSerialInfo', File: D:\POL098\pkg\utils\servmgmt\www\objviewer.src, Line 495

Error in function 'ShowSerialInfo'.
File: D:\POL098\pkg\utils\servmgmt\www\objviewer.src, Line 495

"function ShowSerialInfo(serial)
	var object := SystemFindObjectBySerial(serial, SYSFIND_SEARCH_STORAGE_AREAS+SYSFIND_SEARCH_OFFLINE_MOBILES); <---------- 495
	if ( object.errortext )
		DoError("Could not find serial "+serial+"<BR> "+object.errortext);
		return 0;
	endif

	if ( object.IsA(POLCLASS_MOBILE) )
		ShowCharacterInfo(object);
	else
		ShowItemInfo(object);
	endif

	ShowCPropInfo(object);

	return 1;
endfunction"

Compilation Summary:
    Compiled 682 scripts in 20444 ms.
    3 of those scripts had errors.

Re: [Error] First Setup

Posted: Mon Oct 24, 2011 9:09 am
by Tomi
core change from 098
02-07-2009 Turley:
Removed: SystemFindObjectBySerial() flag SYSFIND_SEARCH_STORAGE_AREAS (was obsolete since years)

And the CloseGump error is because there was added to 098 a core function with the same name as you have the program there.
Just change the name of the program to something else and the problem is fixed.

Re: [Error] First Setup

Posted: Mon Oct 24, 2011 9:39 am
by equinox80
Alright. THe first 2 are fixed, tried using:

Code: Select all

program closeOtherGump(params)
	var mobile	:= params[1];
	var pid		:= params[2];
	var timer	:= params[3];
	var ret_val	:= params[4];
	params := 0; // Not needed anymore.

	Sleep(CInt(timer));

	GFcloseOtherGump(mobile, pid, ret_val);
endprogram
though, and it never worked, still has the error

Re: [Error] First Setup

Posted: Mon Oct 24, 2011 9:56 am
by Tomi
Dont change the name of the GF function or you have to change it in the .inc file aswell
Try with only changing name of the program

Re: [Error] First Setup

Posted: Mon Oct 24, 2011 10:58 am
by equinox80
Thank you, and I love you.

Re: [Error] First Setup

Posted: Mon Oct 24, 2011 11:53 am
by equinox80
*Creates a new character*

Hey wait a minute....

A skill number is out of range? o.O

Re: [Error] First Setup

Posted: Tue Oct 25, 2011 1:14 pm
by Tomi
That message is sent when some of the skills you choose in char creation has a bigger skillid than you have defined the MaxSkillID in uoclient.cfg