Some Error

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.
Post Reply
Ultimate`
New User
Posts: 23
Joined: Fri Jul 07, 2006 9:54 pm

Some Error

Post by Ultimate` »

I get this error when i run pol.exe now.. fixed the uoconvert.

Code: Select all

Loading package in pkg/tools/gmtools/
Loading package in pkg/tools/motd/
Error loading script pkg/foundations/hooks/regen.ecl: Recompile required. Bad version number 3
Unable to read script 'pkg/foundations/hooks/regen.ecl'
Error reading script pkg/foundations/hooks/regen.ecl
Error reading configuration file pkg/foundations/hooks//vitals.cfg:
	Export Script pkg/foundations/hooks/regen.ecl not found
	Element: Vital Life, found on line 1
Server Shutdown: load_vitals_cfg: load_packed_cfgs
Execution aborted due to: Configuration file error
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

Compile all of your scripts... again...
Ultimate`
New User
Posts: 23
Joined: Fri Jul 07, 2006 9:54 pm

Post by Ultimate` »

I did ecompile.exe but didnt help..

can you guide me please? :)
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

make a file called ecompile.bat
and open it in a text editor and paste this
@ECHO OFF

REM - $Id: ECompile.bat 373 2006-06-17 18:27:33Z austinheilman $

REM -- If a special path is needed to ecompile.exe set it here
REM -- Path is considered to be run from the root if started by starthere.bat
SET ECOMPILE_PATH=scripts\ecompile.exe
REM ----------

GOTO :MENU()

REM -- MENU FUNCTION
:MENU()
CLS
ECHO Ecompile.bat (V 1.0) by Austin
ECHO ==============================
ECHO Command Purpose
ECHO [ a ] - Compile a specific script.
ECHO [ b ] - Compile a directory.
ECHO [ c ] - Compile all .src scripts.
ECHO [ d ] - Compile all scripts and output to ecompile.log
ECHO.
ECHO [ x ] - Back

SET /p CMD=Command:

IF /i "%CMD%" == "a" GOTO :COMPILE_SCRIPT()
IF /i "%CMD%" == "b" GOTO :COMPILE_DIRECTORY()
IF /i "%CMD%" == "c" GOTO :COMPILE_ALL_SCRIPTS()
IF /i "%CMD%" == "d" GOTO :COMPILE_ALL_SCRIPTS_OPTXT()
IF /i "%CMD%" == "x" GOTO :QUIT()

ECHO.
ECHO Invalid command.
GOTO :RETURN_TO_MENU()

REM -- RETURN_TO_MENU() FUNCTION
:RETURN_TO_MENU()
PAUSE
GOTO :MENU()

REM -- COMPILE_SCRIPT() FUNCTION
:COMPILE_SCRIPT()
SET /p CMD="Path to script to compile:"
%ECOMPILE_PATH% %CMD%
GOTO RETURN_TO_MENU()

REM -- COMPILE_DIRECTORY() FUNCTION
:COMPILE_DIRECTORY()
SET /p CMD="Path to DIRECTORY:"
%ECOMPILE_PATH% -A -b -f %CMD%
GOTO RETURN_TO_MENU()

REM -- COMPILE_ALL_SCRIPTS() FUNCTION
:COMPILE_ALL_SCRIPTS()
%ECOMPILE_PATH% -A -b -f
GOTO RETURN_TO_MENU()

REM -- COMPILE_ALL_SCRIPTS_OPTXT() FUNCTION
:COMPILE_ALL_SCRIPTS_OPTXT()
%ECOMPILE_PATH% -A -b -f >ecompile.log
ECHO.
ECHO Compilation complete.
GOTO RETURN_TO_MENU()

REM -- QUIT FUNCTION
:QUIT()
Or you could download the basic-setup for 097 distro and extract that batch file and well... run it and... you'll get the idea...
Ultimate`
New User
Posts: 23
Joined: Fri Jul 07, 2006 9:54 pm

Post by Ultimate` »

I got an error in that..

Code: Select all

Didn't find '.src', '.hsr', or '.asp' extension on source filename 'C:\Pol\Pkg\f
oundations\hooks\vitals.cfg'!
Execution aborted due to: Error in source filename
Press any key to continue . . .
SMJ
Grandmaster Poster
Posts: 113
Joined: Wed May 10, 2006 5:15 pm

Post by SMJ »

You can't compile *.cfg files. They're supposed to be fulltext reference files; kind of like an intermediate medium between you and the server before the server is powered up.

Do you have a "vitals.cfg" in "/pol/pkg/foundations/hooks" ?

If so, check to make sure that you have the right file located, meaning that there is, indeed, a "regen.src" in that directory. If there is, but it's not compiled, compile that directory:

Open a dos prompt (Start->Run->"CMD" if you're using WindowsXP).
Navigate to your POL Scripts directory ("CD "+Drive+"\"+POL Directory+"\scripts")
Compile that directory:
"ecompile.exe -r ../pkg/foundations/hooks/".

If you're regen.src is in a different directory, you either need to move it and compile it there; or you need to change the configuration to reflect it's new location.

If you don't have a vitals.cfg in the directory, then you need to make and configure one.
Ultimate`
New User
Posts: 23
Joined: Fri Jul 07, 2006 9:54 pm

Post by Ultimate` »

Hmm.. think i fixed it.. i just get this now..

Code: Select all

Error reading configuration file config/repsys.cfg:
	Property 'Invulnerable' was not found.
	Element: NameColoring , found on line 1
Error reading configuration file config/repsys.cfg:
	Mandatory section type 'General' not found
	Element started on line: 1
grrs.. damn errors :<
SMJ
Grandmaster Poster
Posts: 113
Joined: Wed May 10, 2006 5:15 pm

Post by SMJ »

Open up /pol/config/repsys.cfg in your favorite text editor.

By default, it looks like this:

Code: Select all

NameColoring
{
    Murderer        38
    Criminal        905
    Attackable      905
    Innocent        90
    GuildAlly       68
    GuildEnemy      44
}

General
{
    CriminalFlagInterval 120
    AggressorFlagTimeout 120
}
What's wrong with this? Nothing... if you're the core. However, if a script is reading any- and I mean any config file, it is absolutely imperative that every field have a "Element Type" (That usually doesn't matter) and an "Element Identifier". The format for this is:

Code: Select all

[TYPE] [NAME]
{
    [VARIABLE] [VALUE]
    ...
}
In this case, all you really have to do (and, actually, what I reccomend you do) is duplicate the "Type" to create an "ID".

Change "General" to "General General" and "NameColoring" to "NameColoring NameColoring", and that should fairly well fix the problem in, to my knowledge, every version of POL.

Code: Select all

NameColoring NameColoring
{
    Murderer        38
    Criminal        905
    Attackable      905
    Innocent        90
    GuildAlly       68
    GuildEnemy      44
}

General General
{
    CriminalFlagInterval 120
    AggressorFlagTimeout 120
}
I hope this was useful :)
Ultimate`
New User
Posts: 23
Joined: Fri Jul 07, 2006 9:54 pm

Post by Ultimate` »

Thanks for that :)..

I tried launching pol again.. but still =[

Code: Select all

Error loading script pkg/foundations/hooks/regen.ecl: Recompile required. Bad version number 3
Unable to read script 'pkg/foundations/hooks/regen.ecl'
Error reading script pkg/foundations/hooks/regen.ecl
Error reading configuration file pkg/foundations/hooks//vitals.cfg:
        Export Script pkg/foundations/hooks/regen.ecl not found
        Element: Vital Life, found on line 1
Server Shutdown: load_vitals_cfg: load_packed_cfgs
Execution aborted due to: Configuration file error
SMJ
Grandmaster Poster
Posts: 113
Joined: Wed May 10, 2006 5:15 pm

Post by SMJ »

Are you absolutely sure that you have recompiled /pol/foundations/hooks/regen.src with your current compiler? If not, do it again, and make SURE that you have compiled the correct src file.
Ultimate`
New User
Posts: 23
Joined: Fri Jul 07, 2006 9:54 pm

Post by Ultimate` »

Yeah i am.. i just tried what you said..

Code: Select all

Error reading configuration file config/repsys.cfg:
        Property 'Invulnerable' was not found.
        Element: NameColoring NameColoring, found on line 1
Error reading configuration file config/repsys.cfg:
        Mandatory section type 'General' not found
        Element started on line: 1
SMJ
Grandmaster Poster
Posts: 113
Joined: Wed May 10, 2006 5:15 pm

Post by SMJ »

Sorry, I was thinking 095... use this file:

repsys.cfg

Code: Select all

# $Id: repsys.cfg 375 2006-06-17 19:26:32Z austinheilman $
#
#
#####################################
# REPSYS.CFG - Reputation System Configuration
#
# Used by Core
#
#####################################

General General
{
	CriminalFlagInterval	120		# Time, in seconds, for which you will be marked criminal
	AggressorFlagTimeout	120		# Time, in seconds, for which you will be marked an aggressor
}

NameColoring NameColoring
{
	Murderer		38
	Criminal		905
	Attackable		905
	Innocent		90

	GuildAlly		68
	GuildEnemy		44

	Invulnerable		53
}
Ultimate`
New User
Posts: 23
Joined: Fri Jul 07, 2006 9:54 pm

Post by Ultimate` »

Thanks, that got fixed, fixed some other files that needed recompiling, but there's the animal.src that wont compile..

Code: Select all

Compiling: C:\pol\scripts\ai\animal.src
Warning: local variable 'oldprio' not used.
File: C:/pol/scripts/ai/combat/fight.inc, Line 7
Warning: local variable 'opponent' not used.
File: C:/pol/scripts/ai/combat/defaultCombatEvent.inc, Line 31
Error compiling statement at C:\pol\scripts\ai\animal.src, Line 30
Error in function 'CloseDistance', File: C:\pol\scripts\ai\animal.src, Line 30

Error in function 'CloseDistance'.
File: C:\pol\scripts\ai\animal.src, Line 30
Execution aborted due to: Error compiling file
Shinigami
Former Developer
Posts: 308
Joined: Mon Jan 30, 2006 9:28 am

Post by Shinigami »

looks like you're trying to try to upgrade an ancient script base just by compiling to Pol096... better to read core-changes.txt first and to modify your script base step by step as described in the changes.

your lst error looks like "case closedist()" where u have to add brackets like "case (closedist())"...

Shinigami
Ultimate`
New User
Posts: 23
Joined: Fri Jul 07, 2006 9:54 pm

Post by Ultimate` »

ok thanks alot.. i will try that :)
Ultimate`
New User
Posts: 23
Joined: Fri Jul 07, 2006 9:54 pm

Post by Ultimate` »

hmmm.. i cant seem to understand it. would rather just like some help on that file.
Ultimate`
New User
Posts: 23
Joined: Fri Jul 07, 2006 9:54 pm

Post by Ultimate` »

someone please help :<
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

core-changes.txt is a very long file that will make you have to change a ton of things in your scriptbase. It literally took me months to convert and stabilize my scriptbase on 096 when converting from 095. You have to look for the line --095-- in the core-changes.txt and start going up from there step by step. This isn't a 10-15 step process, a good majority if not your entire scriptbase needs to be changed according to what core-changes.txt says.
Ultimate`
New User
Posts: 23
Joined: Fri Jul 07, 2006 9:54 pm

Post by Ultimate` »

I tried compiling...

Code: Select all

Compiling: C:/pol/scripts/ai/animal.src
Warning: local variable 'oldprio' not used.
File: C:/pol/scripts/ai/combat/fight.inc, Line 11
Warning: local variable 'opponent' not used.
File: C:/pol/scripts/ai/combat/defaultCombatEvent.inc, Line 34
Error compiling statement at C:\pol\scripts\ai\animal.src, Line 30
Error in function 'CloseDistance', File: C:\pol\scripts\ai\animal.src, Line 30

Error in function 'CloseDistance'.
File: C:\pol\scripts\ai\animal.src, Line 30
That script is pissing me off....

Code: Select all

  data/npcs.txt:Warning! scripts/ai/animal.ecl does not exist!
Exception caught while loading script scripts/ai/animal.ecl: Unable to open scripts/ai/animal.ecl for reading.
Unable to read script 'scripts/ai/animal.ecl'
Unable to read script scripts/ai/animal.ecl for NPC a hind(0x1006e0)
Server Shutdown: reading data
Leftover objects in objecthash: 753
Leaking a copy of the objecthash in order to avoid a crash.
Execution aborted due to: Error loading NPCs
Ultimate`
New User
Posts: 23
Joined: Fri Jul 07, 2006 9:54 pm

Post by Ultimate` »

ok i fixed that.. just something else... sec...

Code: Select all

Wiping merchant storage
Initializing teleporters
.
Initializing moongates
syslog [pkg/items/moongates/start.ecl]: Creating moongates.
Assertion Failed: param < fparams.size() (Script Error in 'pkg/items/moongates/start.ecl: Less Parameter than expected. You should use *.em-files shipped with this Core and recompile ALL of your Scripts _now_! RTFM), .\executor.cpp, line 303
Aborting due to assertion failure.
thats my new error..
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

apparently you used the wrong .em files or you didnt recompile that script under the new ecompile and em files. Remember to recompile after replacing ALL of the files that come with the core download because every single one is important even if it seems like its an exact copy of the last version. Also, when recompiling, remember to delete all .ecl files in your POL directory to ensure they all recompile.
Post Reply