hyperandroid / CAAT

Canvas Advanced Animation Toolkit
hyperandroid.github.com/CAAT
MIT License
727 stars 117 forks source link

Path problems in 0.5 #103

Closed arnuschky closed 11 years ago

arnuschky commented 11 years ago

I am still having some path problems when using the non-compile version of CAAT. Basically I have to create two links:

src/Module -> src/Modules
src/Foundation/Box2D -> src/Foundation/Box2d

After creating these links, everything works fine. Without them, CAAT does not find some classes. (I could alternatively specify this in the loader mapping but that seems messy to me)

hyperandroid commented 11 years ago

The Box2d was an error. CAAT.Foundation.Box2d.* classes are pointing to CAAT.Foundation.Box2D. For some reason, my MBP takes them as the same folder. I've renamed CAAT.Foundation.Box2d to CAAT.Foundation.Box2D and now it is ok. Other solution would be change references in Box2d modules from Box2D to Box2d, but just in case someone had already extended these classes i renamed the folder.

The dependency from Box2D modules to the Box2dweb file has been removed too, so you should take care of loading the box2dweb file.

About the other folder, you're missing the point that the loader abstracts Class names from its OS files counterparts. You should not do that, you should define a ModulePath like:

ModuleManager.setModulePath("CAAT.Module",            "Modules")

It is intended that all Module components be logically available under CAAT.Module. For example there exists a folder Modules/Image/ but i intend to keep all modules under CAAT.Module, that's why you should also define

setModulePath("CAAT.Module.Preloader",  "Modules/Image/Preloader").

CAAT internally references modules as CAAT.Module, and physically they could be stored in a Folders/testing/stable folder. the setModulePath call would take care of it.

Thanks.

2012/12/2 arnuschky notifications@github.com

I am still having some path problems when using the non-compile version of CAAT. Basically I have to create two links:

src/Module -> src/Modules src/Foundation/Box2D -> src/Foundation/Box2d

After creating these links, everything works fine. Without them, CAAT does not find some classes. (I could alternatively specify this in the loader mapping but that seems messy to me)

— Reply to this email directly or view it on GitHubhttps://github.com/hyperandroid/CAAT/issues/103.