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

Can't load some files #230

Closed
albertzb opened this issue Mar 3, 2019 · 2 comments
Closed

Can't load some files #230

albertzb opened this issue Mar 3, 2019 · 2 comments
Labels
Milestone

Comments

@albertzb
Copy link

albertzb commented Mar 3, 2019

Using utiliti editor v0.4.15 alpha on Linux Debian 9. I cannot import through Project menu or Map menu of certain files. The problem seems to be related to case paths containing upper and lower case characters.

I can load the *.litdata file itself even though it is in a path with upper and lower case characters. I cannot import a resource if it has a path with upper case characters. When trying to load a spritesheet, from /home/me/NetBeansProjects/bolo/src/main/resources/sprites/redtank.png the following is shown in the console:

INFO /home/me/netbeansprojects/bolo/src/main/resources/sprites/redtank.png could not be found.
SEVERE Game crashed! :(

The editor continues. My suspicion is raised by the difference in the capitalization of NetBeansProjects. Drag and drop also does not work.

A workaround is to move the resources to a path without capitalization e.g. /home/me. From there I can import a spritesheet. But that workaround does not work for *.tmx files (I am using 0.7.15 of Tiled - not the latest - because it is in the Debian repository). Then the response is:

SEVERE Could not load the game resource.
WARNING could not load map from file /home/me/bolo.tmx

@albertzb
Copy link
Author

albertzb commented Mar 5, 2019

The development code of March 4 does not have an issue with the capitalization of the path. I am sorry for the confusion, but you can probably close this issue.

@albertzb
Copy link
Author

albertzb commented Mar 5, 2019

Very, very, very old versions of tiled apparently did not have a tiledversion attribute in the xml. Hence, a line like String[] ver = this.tiledversion.split("\."); (line 632 of de.gurkenlabs.litiengine.environment.tilemap.xml.Map.java) can result in a null pointer exception.

@albertzb albertzb closed this as completed Mar 5, 2019
steffen-wilke added a commit that referenced this issue Mar 6, 2019
@steffen-wilke steffen-wilke added this to the v0.4.16-alpha milestone Mar 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants