[Error] First Setup

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 098.

Moderator: POL Developer

Post Reply
equinox80
New User
Posts: 4
Joined: Mon Oct 24, 2011 8:14 am

[Error] First Setup

Post 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.
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: [Error] First Setup

Post 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.
equinox80
New User
Posts: 4
Joined: Mon Oct 24, 2011 8:14 am

Re: [Error] First Setup

Post 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
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: [Error] First Setup

Post 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
equinox80
New User
Posts: 4
Joined: Mon Oct 24, 2011 8:14 am

Re: [Error] First Setup

Post by equinox80 »

Thank you, and I love you.
equinox80
New User
Posts: 4
Joined: Mon Oct 24, 2011 8:14 am

Re: [Error] First Setup

Post by equinox80 »

*Creates a new character*

Hey wait a minute....

A skill number is out of range? o.O
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: [Error] First Setup

Post 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
Post Reply