Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loader.path and relative images path on .tmx not working #40

Open
vitto opened this issue Jan 4, 2015 · 1 comment
Open

Loader.path and relative images path on .tmx not working #40

vitto opened this issue Jan 4, 2015 · 1 comment

Comments

@vitto
Copy link

vitto commented Jan 4, 2015

I'm trying to load a .tmx file with this files structure:

gfx/locations/walls.png
stages/locations/LocationName.tmx
stages/Stage.lua

Inside the .tmx files the images point to gfx/locations/:

<image source="../../gfx/stages/temple-maya/walls.png" ...

Basically, Stage.lua uses ATL to load the .tmx file and this is the script I use

ATL.Loader.path = 'stages/locations/'
local map = ATL.Loader.load(name)
map.useSpriteBatch = true

LOVE now throws this error:

Error:
... Could not open file stages//..gfx/stages/temple-maya/walls.png.
Does not exists.

It seems that ALT have some problem parsing on relative paths if I don't want to keep different assets and code resources in the same location, does exists a way to fix it?

@Kadoba
Copy link
Owner

Kadoba commented Jan 5, 2015

I haven't had a problem with relative paths before but ATL has been out of development for a while so it is probably very error prone now. Are you sure the image source in your tmx file is correct? It doesn't match up with what you listed as your directory structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants