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

Attempt to fix java tile type bug #2704

Merged
merged 3 commits into from
Dec 18, 2019

Conversation

Phlosioneer
Copy link
Contributor

This code should work, but I'm unable to compile & test it with my
setup. I don't understand how jaxb is setup. The main possible failure
is if the .getTile() function isn't actually generated by jaxb.

Closes #2128 if merged.

This code *should* work, but I'm unable to compile & test it with my
setup. I don't understand how jaxb is setup. The main possible failure
is if the .getTile() function isn't actually generated by jaxb.

Closes mapeditor#2128
Copy link
Member

@bjorn bjorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this issue!

Indeed the fix looks fine, though I think the code could use some unification because it's becoming really ugly that "tiles with an image" are a different branch than those without.

But I'd merge this anyway if you fix the indentation. :-)

@bjorn
Copy link
Member

bjorn commented Dec 18, 2019

This code should work, but I'm unable to compile & test it with my
setup. I don't understand how jaxb is setup.

What error are you getting exactly? I personally am having trouble compiling libtiled-java as well, but that's probably because my system has Java 11 so I'm running into #2048.

Copy link
Contributor Author

@Phlosioneer Phlosioneer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a working command-line copy of maven, so I can't even start the build. Maven fails to install because it gets confused - I have both java 8 and java 11 installed, and manually set up IDE's to resolve conflicts. Can't do that with command line tools.

@bjorn bjorn merged commit dda11a4 into mapeditor:master Dec 18, 2019
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

Successfully merging this pull request may close these issues.

libtiled-java writeTileSet() didn't write Tile.type attribute
2 participants