Page 1 of 1

Possible /item/map pkg error, confirmed

Posted: Sun Mar 04, 2007 6:33 am
by Haos
Problem is described in this thread.

No errors are reported during compilation. Using x86 latest pol build - 097 RC2 4 jan and latest distro version. Ecompile version is 1.08.

Posted: Sun Mar 04, 2007 7:20 am
by Bracco
tried with

MethodScript :maps:/map/method

or just

MethodScript map/method

?

Posted: Sun Mar 04, 2007 8:00 am
by Haos
map/method

This one seems to work (no error appearing during pol startup), but could someone confirm if it solves the problem? And why did the error appear at all, as :maps:map/method seems to be the correct syntax for script pathname, at least thats what i found in documentation...

Posted: Sun Mar 04, 2007 11:59 am
by tekproxy
My guess is that Create, Control and Method scripts don't like to see package names in their definition. If you look at other itemdesc.cfg entries none of them use package names. Maybe this is a bug in the core, but for now I'll fix it in the distro.

Posted: Wed Mar 28, 2007 9:13 pm
by MuadDib
I'd say it's due to the way beginning a path, is handled with the OS's. Same thing with php and web hosting. Using "/" at the beginning can cause problems if the host is not configured correctly (to make YOUR root, be from the location of your html root). Same thing here I would say. It's trying to forcecheck from a different root position in place of the package's root.

Interesting find though, for sure :)

Posted: Wed Apr 04, 2007 3:26 pm
by MuadDib
Is this error only with methodscripts, or does it do the same thing for you with Equipscripts, usescripts, etc?

Posted: Wed Apr 04, 2007 4:21 pm
by MuadDib
From what I am seeing, it is due to the "/" at the beginning of the path. There is a reason for that. It's forcing it to check off pols root from the best I can tell because of it. the format ":pkgname:maps/method.ecl" is that way for a reason. The root is the pkghome. If you add another root mark it confuses it.

Posted: Wed Apr 04, 2007 4:30 pm
by OldnGrey
The relative path answer is fine, but didn't Haos mention it didn't give a compile error?

Posted: Wed Apr 04, 2007 4:38 pm
by MuadDib
Why would it give a compile error? It's under a pkg directory that is enabled. Compiling doesn't check itemdesc.cfg entries.

Posted: Wed Apr 04, 2007 4:54 pm
by OldnGrey
I must be reading it wrong. I thought the whole thread was about the location of method.ecl. Sorry.