Page 1 of 1

Problems with includes and class paths

Posted: 23 Dec 2010, 12:44
by Squla
Hi all,

first of all, smartfox is really great!! I enjoy working with it!
But ... we have choosen the 1.6.9 version of SFS, because of the AS extensions.

Now i have all my code in 1 file for an extension. But this horrible to work with :-)

So i tried to #include a file in my extension. But everytime i get the same error: Can't include file, not in classpath.

It's just another .as file and i tried several paths, but it is still not working.
The files 'm trying to include are just in the sfsExtension directory.

What am i doing wrong here? :)

Posted: 23 Dec 2010, 16:57
by BigFIsh
It should be something like:

Code: Select all

@include "example.as"

Posted: 23 Dec 2010, 19:51
by Squla
Hi BigFish

thanks for your reply, but that is what i do. That's when i get the error message.

Posted: 23 Dec 2010, 20:22
by BigFIsh
Are both of the files located inside the same directory - that is ..\Server\sfsExtensions\ ?

Also, the file names are case sensitive.

Furthermore, please include the full error dump.

Posted: 29 Dec 2010, 07:14
by Squla
sorry for the late reply with the holidays and all.
But i checked everything. Case sensitive, same directory (i tried it in several places)

and i still get this error:

2010/12/29 09:43:07.503 - [ SEVERE ] [id: 16] (JavascriptExtension.loadScript): Error loading extension. Can't load include file: Shared/results.as; -> 18

Posted: 29 Dec 2010, 19:34
by BigFIsh
Replied via pm