Hi everyone, first post here.
I'm using Pol 098.2. I've compiled all the scripts/pkg's with no errors, but pol can't read the ecl files.
Exception caught while loading script pkg/items/debris/:debris:debris/method.ecl: Unable to open pkg/items/debris/:debris:debris/method.ecl for reading.
Unable to read script 'pkg/items/debris/:debris:debris/method.ecl'
Error reading script pkg/items/debris/:debris:debris/method.ecl
The path to the script is right, since the the file is in pkg/items/debris/debris/method.ecl
The itemdesc of this pkg shows the correct path too.
Someone know what can be the problem here?
Thank you.
Unable to read script
Moderator: POL Developer
-
- Grandmaster Poster
- Posts: 136
- Joined: Thu Feb 02, 2006 7:29 am
- Location: Livorno, Italy
- Contact:
Re: Unable to read script
When does the error occur?
If you are using start_script you must remove the ".ecl"
You must enable the package too
In pkg.cfg
the name between the colon is the name in the pkg.cfg, not the real directory name.
You can rename your debris folder in "beautifulldebrispackage" and still access it with :debris:
If you are using start_script you must remove the ".ecl"
Code: Select all
var script := Start_Script(":debris:debris/method");
In pkg.cfg
Code: Select all
Enabled (0/1)
Name (string package name)
[Requires (string package name) [(int version)] ...]
[Replaces (string package name) ...]
[Conflicts (string package name) ...]
[Version (string version number)]
[CoreRequired (int core version without leading 0, or full version string)]
[ProvidesSystemHomePage (0/1)]
[Maintainer (string name)]
[Email (string email)]
You can rename your debris folder in "beautifulldebrispackage" and still access it with :debris:
Re: Unable to read script
It occurs after loading the packages.
...(Pkg loading)
Loading package in pkg/utils/worldSaver/
INSTALLING: Exported Vital - RegenRate and MaxValue functions ...
Exception caught while loading script pkg/items/debris/:debris:debris/method.ecl: Unable to open pkg/items/debris/:debris:debris/method.ecl for reading.
Unable to read script 'pkg/items/debris/:debris:debris/method.ecl'
Error reading script pkg/items/debris/:debris:debris/method.ecl
Exception caught while loading script pkg/items/deed/:deed:deed/method.ecl: Unable to open pkg/items/deed/:deed:deed/method.ecl for reading.
Unable to read script 'pkg/items/deed/:deed:deed/method.ecl'
Error reading script pkg/items/deed/:deed:deed/method.ecl
Exception caught while loading script pkg/items/deed/:deed:deed/method.ecl: Unable to open pkg/items/deed/:deed:deed/method.ecl for reading.
Unable to read script 'pkg/items/deed/:deed:deed/method.ecl'
Error reading script pkg/items/deed/:deed:deed/method.ecl
Exception caught while loading script pkg/items/deed/:deed:deed/method.ecl: Unable to open pkg/items/deed/:deed:deed/method.ecl for reading.
Unable to read script 'pkg/items/deed/:deed:deed/method.ecl'
Error reading script pkg/items/deed/:deed:deed/method.ecl
Exception caught while loading script pkg/items/deed/:deed:deed/method.ecl: Unable to open pkg/items/deed/:deed:deed/method.ecl for reading.
Unable to read script 'pkg/items/deed/:deed:deed/method.ecl'
Error reading script pkg/items/deed/:deed:deed/method.ecl
Exception caught while loading script pkg/items/deed/:deed:deed/method.ecl: Unable to open pkg/items/deed/:deed:deed/method.ecl for reading.
Unable to read script 'pkg/items/deed/:deed:deed/method.ecl'
Error reading script pkg/items/deed/:deed:deed/method.ecl
...
As you can see it occurs to 90% of pkg's.
The pkg is enabled and Im not using start_scritpt(). In debris pkg for example I the itemdesc.cfg:
Item 0xC2D
{
Name debris
Desc debris
Movable 0
SaveOnExit 0
ControlScript :debris:debris/control
CreateScript :debris:debris/onCreate
MethodScript :debris:debris/method
}
Is there anything wrong here?
Thank you.
...(Pkg loading)
Loading package in pkg/utils/worldSaver/
INSTALLING: Exported Vital - RegenRate and MaxValue functions ...
Exception caught while loading script pkg/items/debris/:debris:debris/method.ecl: Unable to open pkg/items/debris/:debris:debris/method.ecl for reading.
Unable to read script 'pkg/items/debris/:debris:debris/method.ecl'
Error reading script pkg/items/debris/:debris:debris/method.ecl
Exception caught while loading script pkg/items/deed/:deed:deed/method.ecl: Unable to open pkg/items/deed/:deed:deed/method.ecl for reading.
Unable to read script 'pkg/items/deed/:deed:deed/method.ecl'
Error reading script pkg/items/deed/:deed:deed/method.ecl
Exception caught while loading script pkg/items/deed/:deed:deed/method.ecl: Unable to open pkg/items/deed/:deed:deed/method.ecl for reading.
Unable to read script 'pkg/items/deed/:deed:deed/method.ecl'
Error reading script pkg/items/deed/:deed:deed/method.ecl
Exception caught while loading script pkg/items/deed/:deed:deed/method.ecl: Unable to open pkg/items/deed/:deed:deed/method.ecl for reading.
Unable to read script 'pkg/items/deed/:deed:deed/method.ecl'
Error reading script pkg/items/deed/:deed:deed/method.ecl
Exception caught while loading script pkg/items/deed/:deed:deed/method.ecl: Unable to open pkg/items/deed/:deed:deed/method.ecl for reading.
Unable to read script 'pkg/items/deed/:deed:deed/method.ecl'
Error reading script pkg/items/deed/:deed:deed/method.ecl
Exception caught while loading script pkg/items/deed/:deed:deed/method.ecl: Unable to open pkg/items/deed/:deed:deed/method.ecl for reading.
Unable to read script 'pkg/items/deed/:deed:deed/method.ecl'
Error reading script pkg/items/deed/:deed:deed/method.ecl
...
As you can see it occurs to 90% of pkg's.
The pkg is enabled and Im not using start_scritpt(). In debris pkg for example I the itemdesc.cfg:
Item 0xC2D
{
Name debris
Desc debris
Movable 0
SaveOnExit 0
ControlScript :debris:debris/control
CreateScript :debris:debris/onCreate
MethodScript :debris:debris/method
}
Is there anything wrong here?
Thank you.
Re: Unable to read script
Check ecompile and *.em files version.
- what do you have in pkg.cfg for debris?
- what your ecompile.cfg says and what is full path to POL?
If ecompile and *.em files are up to date try recompile all scripts 'ecompile -A'
And hmm... what do you have in your method.src script?
http://docs.polserver.com/pol098/script ... thodScript make sure it has right syntax
Edit: well i think that you can't have method.src script and start it with start_script function. method.src is POL special type of script. Looks like itemdesc entry for MethodScript should be noted with .ecl extension so: MethodScript :debris:debris/method.ecl Rest of entries like Script/OnInsert/OnRemove/Control... should be written without .ecl
- what do you have in pkg.cfg for debris?
- what your ecompile.cfg says and what is full path to POL?
If ecompile and *.em files are up to date try recompile all scripts 'ecompile -A'
And hmm... what do you have in your method.src script?
http://docs.polserver.com/pol098/script ... thodScript make sure it has right syntax
Edit: well i think that you can't have method.src script and start it with start_script function. method.src is POL special type of script. Looks like itemdesc entry for MethodScript should be noted with .ecl extension so: MethodScript :debris:debris/method.ecl Rest of entries like Script/OnInsert/OnRemove/Control... should be written without .ecl
Re: Unable to read script
Ok, using the .em files provided in the 098.2 core package.AsYlum wrote:Check ecompile and *.em files version.
Just a few constants definitions in uo.em and vitals.em
Enabled 1AsYlum wrote:what do you have in pkg.cfg for debris?
Name debris
Its exactly like the file ecompile.cfg.example but with the actual paths to modules, scripts and pkg folders.AsYlum wrote:what your ecompile.cfg says and what is full path to POL?
AsYlum wrote:what do you have in your method.src script?
Code: Select all
use uo;
use os;
program Install()
return 1;
endprogram
exported function IsDebris(item)
return 1;
endfunction
I tried that, didn't work here, no additional errors anyway.AsYlum wrote:MethodScript should be noted with .ecl extension