Ikael
July 19th, 2011, 21:02
I encountered (strange) behavior in extension loading with certain ruleset's directory structure. I have no idea if this is an issue or feature, but it prevents extensions from getting loaded up in the laucher. When ruleset is loading up an error is shown 'ERROR: Could not load included file xxx'. And the xxx file is always one from ruleset itself...
I made few test cases by creating different directory structure and moving 3 files in different levels:
Base.xml includes graphics.xml, which includes next file graphics_frames.xml. In addition there is one file in extension called updated_frames.xml and it's included inside extension.xml.
Test cases are shown below and the difference is that these three files are either inside one folder in ruleset's base directory or not (and extension's file is either inside extension base directory or inside one folder).
base.xml
------------------------------------------------------
<includefile source="graphics/graphics.xml" />
graphics/graphics.xml
------------------------------------------------------
<includefile source="graphics_frames.xml" />
extension.xml
------------------------------------------------------
<includefile source="graphics/updated_frames.xml" />
--> works
base.xml
------------------------------------------------------
<includefile source="graphics/graphics.xml" />
graphics/graphics.xml
------------------------------------------------------
<includefile source="graphics_frames.xml" />
extension.xml
------------------------------------------------------
<includefile source="updated_frames.xml" />
--> works
base.xml
------------------------------------------------------
<includefile source="graphics/graphics.xml" />
graphics/graphics.xml
------------------------------------------------------
<includefile source="graphics/graphics_frames.xml" />
extension.xml
------------------------------------------------------
<includefile source="updated_frames.xml" />
--> ERROR: Could not load included file (graphics_frames.xml)
base.xml
------------------------------------------------------
<includefile source="graphics/graphics.xml" />
graphics/graphics.xml
------------------------------------------------------
<includefile source="graphics/graphics_frames.xml" />
extension.xml
------------------------------------------------------
<includefile source="graphics/updated_frames.xml" />
--> ERROR: Could not load included file (graphics_frames.xml)
base.xml
------------------------------------------------------
<includefile source="graphics.xml" />
graphics.xml
------------------------------------------------------
<includefile source="graphics_frames.xml" />
extension.xml
------------------------------------------------------
<includefile source="graphics/updated_frames.xml" />
--> Works
base.xml
------------------------------------------------------
<includefile source="graphics.xml" />
graphics.xml
------------------------------------------------------
<includefile source="graphics/graphics_frames.xml" />
extension.xml
------------------------------------------------------
<includefile source="graphics/updated_frames.xml" />
--> Works
Anyone else experienced similar behavior? Is it a feature or a bug?
EDIT: I am using FGII v2.8 test release
I made few test cases by creating different directory structure and moving 3 files in different levels:
Base.xml includes graphics.xml, which includes next file graphics_frames.xml. In addition there is one file in extension called updated_frames.xml and it's included inside extension.xml.
Test cases are shown below and the difference is that these three files are either inside one folder in ruleset's base directory or not (and extension's file is either inside extension base directory or inside one folder).
base.xml
------------------------------------------------------
<includefile source="graphics/graphics.xml" />
graphics/graphics.xml
------------------------------------------------------
<includefile source="graphics_frames.xml" />
extension.xml
------------------------------------------------------
<includefile source="graphics/updated_frames.xml" />
--> works
base.xml
------------------------------------------------------
<includefile source="graphics/graphics.xml" />
graphics/graphics.xml
------------------------------------------------------
<includefile source="graphics_frames.xml" />
extension.xml
------------------------------------------------------
<includefile source="updated_frames.xml" />
--> works
base.xml
------------------------------------------------------
<includefile source="graphics/graphics.xml" />
graphics/graphics.xml
------------------------------------------------------
<includefile source="graphics/graphics_frames.xml" />
extension.xml
------------------------------------------------------
<includefile source="updated_frames.xml" />
--> ERROR: Could not load included file (graphics_frames.xml)
base.xml
------------------------------------------------------
<includefile source="graphics/graphics.xml" />
graphics/graphics.xml
------------------------------------------------------
<includefile source="graphics/graphics_frames.xml" />
extension.xml
------------------------------------------------------
<includefile source="graphics/updated_frames.xml" />
--> ERROR: Could not load included file (graphics_frames.xml)
base.xml
------------------------------------------------------
<includefile source="graphics.xml" />
graphics.xml
------------------------------------------------------
<includefile source="graphics_frames.xml" />
extension.xml
------------------------------------------------------
<includefile source="graphics/updated_frames.xml" />
--> Works
base.xml
------------------------------------------------------
<includefile source="graphics.xml" />
graphics.xml
------------------------------------------------------
<includefile source="graphics/graphics_frames.xml" />
extension.xml
------------------------------------------------------
<includefile source="graphics/updated_frames.xml" />
--> Works
Anyone else experienced similar behavior? Is it a feature or a bug?
EDIT: I am using FGII v2.8 test release