Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Trying to import Tiled

Author
Message
DMJ
13
Years of Service
User Offline
Joined: 6th Sep 2011
Location: Australia
Posted: 27th Feb 2017 18:20
Please help!

I'm trying to just import a tiled map. I've tried all the importers on the forums and I get errors. Is there anything current that loads tmx?

Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 27th Feb 2017 18:29
Last week I checked the tiled importer and it was okay.
What errors do you get, and what importers did you use?

[/url]
DMJ
13
Years of Service
User Offline
Joined: 6th Sep 2011
Location: Australia
Posted: 27th Feb 2017 18:34
Which one did you use?
DMJ
13
Years of Service
User Offline
Joined: 6th Sep 2011
Location: Australia
Posted: 27th Feb 2017 18:35
I tried them, it didn't work - returning -1 for index, or not loading at all.
Wilf
Valued Member
18
Years of Service
User Offline
Joined: 1st Jun 2006
Location: Gone to Unity.
Posted: 28th Feb 2017 09:34
I swear by the Phaelax/Clonkex Tiled Tmx Importer 2.0 from here: https://forum.thegamecreators.com/thread/209341
Works great in AGK2.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 28th Feb 2017 13:14
Can you upload your TMX file and I'll take a look at it. Is it unencrypted XML?

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
DMJ
13
Years of Service
User Offline
Joined: 6th Sep 2011
Location: Australia
Posted: 28th Feb 2017 22:13 Edited at: 1st Mar 2017 12:55
I got tons of errors. I fixed the mod problem because it looks like it was written for AGK. Now it doesnt run, asking that the maps be xml or tmx. Im using the current version of Tiled.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st Mar 2017 14:53 Edited at: 1st Mar 2017 14:53
I need to know what kind of errors or I can't help. My code was written in AppGameKit 1, so it's possible using it in AGK2 can cause a few errors. I know arrays are defined differently. I have AGK2 now, so I can test this myself.

Have you tried other TMX files?

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
DMJ
13
Years of Service
User Offline
Joined: 6th Sep 2011
Location: Australia
Posted: 1st Mar 2017 15:33
The mod thing was a easy fix, instead of 3 mod 4 you write mod(3,4)
What I couldn't figure out was the default for Tiled is CSV now. You have to make a map, and in map properties, set it from CSV to XML. Thanks for your prompt help.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st Mar 2017 17:38
You must have an old version of the code, because I added CSV support.

I think I'm going to revisit the code now that I have AGK2.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
DMJ
13
Years of Service
User Offline
Joined: 6th Sep 2011
Location: Australia
Posted: 2nd Mar 2017 01:23
That would be really nice of you! Especially for all the new people that are coming to AGK2, may I suggest that you add collision support please.

Login to post a reply

Server time is: 2024-11-24 19:35:55
Your offset time is: 2024-11-24 19:35:55