Orx - Portable Game Engine
Welcome, Guest
Please Login or Register.    Lost Password?
Tiled MapEditor to ORX Config Converter Tool
(1 viewing) 1 Guest
Go to bottom
TOPIC: Tiled MapEditor to ORX Config Converter Tool
#5128
iarwain
Administrator
Posts: 3088
graph
User Offline Click here to see the profile of this user
Gender: Male Orx - Portable Game Engine Location: Montreal
Re:Tiled MapEditor to ORX Config Converter Tool 4 Years, 6 Months ago Karma: 71
I believe your tile could truly be empty:

Code:

[MapLevel]
Map = TOP #TOP # #LEFT #RIGHT # #BOTTOM #LEFT # #LEFT #LEFT ##



As for git, that's why I stick with mercurial myself!
 
Logged Logged
 
Want to follow orx's development? Go subscribe to the orx-dev group at: https://groups.google.com/forum/?fromgroups#!forum/orx-dev
  The administrator has disabled public write access.
#5134
sausage
Moderator
Posts: 688
graphgraph
User Offline Click here to see the profile of this user
Gender: Male sausagejohnson http://waynejohnson.net Location: Near Canberra, Australia
Re:Tiled MapEditor to ORX Config Converter Tool 4 Years, 6 Months ago Karma: 3
Hmm mercurial. Problem is, SVN, GIT, don't think I could install a third source controller. I'll check it out though.

Great idea on the empty tile thing. That might be the winner.
 
Logged Logged
 
Indie gamedev with Orx at night. Always feel free to come and say hi over in gitter.im/orx/orx gitter chat or drop me a message.
  The administrator has disabled public write access.
#5140
iarwain
Administrator
Posts: 3088
graph
User Offline Click here to see the profile of this user
Gender: Male Orx - Portable Game Engine Location: Montreal
Re:Tiled MapEditor to ORX Config Converter Tool 4 Years, 6 Months ago Karma: 71
And there it is: bitbucket.org/orx/tiledtoorx

Thanks, sausage!
 
Logged Logged
 
Want to follow orx's development? Go subscribe to the orx-dev group at: https://groups.google.com/forum/?fromgroups#!forum/orx-dev
  The administrator has disabled public write access.
#5149
Peso
Senior Boarder
Posts: 75
graphgraph
User Offline Click here to see the profile of this user
Re:Tiled MapEditor to ORX Config Converter Tool 4 Years, 6 Months ago Karma: 0
iarwain wrote:
As for git, that's why I stick with mercurial myself!

I'm with mecurial too.
 
Logged Logged
  The administrator has disabled public write access.
#5525
sausage
Moderator
Posts: 688
graphgraph
User Offline Click here to see the profile of this user
Gender: Male sausagejohnson http://waynejohnson.net Location: Near Canberra, Australia
Re:Tiled MapEditor to ORX Config Converter Tool 4 Years, 3 Months ago Karma: 3
Version 0.3 uploaded. Changes include:

* Map Only checkbox to allow the conversion of the map data only when you don't want the other information generated. Good for repeat conversion during development.
* Large maps are sectioned into 1024 item length lists, ie:

Code:

[MapLevel]
MapSection1 = F #F #F #F #F..... etc up to 1024 items
MapSection2 = S #S #S #S #S..... etc up to 1024 items
MapSection3 = L #S



File Attachment:
File Name: TiledToOrx-aa539a81521f36a566c840fd899f7e3c.zip
File Size: 30106


(empty tiles is still not supported. This will be in 0.4)
 
Logged Logged
 
Last Edit: 2012/12/03 11:45 By sausage.
 
Indie gamedev with Orx at night. Always feel free to come and say hi over in gitter.im/orx/orx gitter chat or drop me a message.
  The administrator has disabled public write access.
#5548
duenez
Junior Boarder
Posts: 34
graphgraph
User Offline Click here to see the profile of this user
Re:Tiled MapEditor to ORX Config Converter Tool 4 Years, 3 Months ago Karma: 0
I checked out Tiled and decided I shall use it for our game. This is where your converter will come in handy, but I have some questions:

1) Does it work with isometric maps as well as orthogonal ones?

2) Does it import the layer information too? This would be very helpful for having the level designer place a layer with walkable, wall, interactable, etc. regions in the map and have that info available in Orx.

3) Can you change it so it uses the tile ID instead of having to name each and every tile?

I will have a closer look at the code (unfortunately it is currently Windows specific, so I haven't run it... I use a Linux computer). Perhaps, if you would like, I could help with further development of this since it seems like a very handy thing to have around.

Cheers,
 
Logged Logged
 
--
Edgar

"But the nations were not sane — rational, composed, aware, but not sane." -Eon
  The administrator has disabled public write access.
#5549
sausage
Moderator
Posts: 688
graphgraph
User Offline Click here to see the profile of this user
Gender: Male sausagejohnson http://waynejohnson.net Location: Near Canberra, Australia
Re:Tiled MapEditor to ORX Config Converter Tool 4 Years, 3 Months ago Karma: 3
Hi duenez.

duenez wrote:

1) Does it work with isometric maps as well as orthogonal ones?


No, just flat maps. I probably won't be doing anything isometric, but someone else might change the source to do it.


2) Does it import the layer information too? This would be very helpful for having the level designer place a layer with walkable, wall, interactable, etc. regions in the map and have that info available in Orx.


No, just a single layer. Doesn't do multiple layered maps as yet. I might end up adding that but no immediate plans.


3) Can you change it so it uses the tile ID instead of having to name each and every tile?


This might be possible. I'll take a look at the file format to see if the information is available. I assume it is. I'll add this to 0.4.


I will have a closer look at the code (unfortunately it is currently Windows specific, so I haven't run it... I use a Linux computer). Perhaps, if you would like, I could help with further development of this since it seems like a very handy thing to have around.


graag runs it using mono. Check a few replies up this topic. That's why I converted it from .NET 4 to 2. But yes by all means feel free to grab the source and tinker away if you like.
 
Logged Logged
 
Indie gamedev with Orx at night. Always feel free to come and say hi over in gitter.im/orx/orx gitter chat or drop me a message.
  The administrator has disabled public write access.
#8585
sausage
Moderator
Posts: 688
graphgraph
User Offline Click here to see the profile of this user
Gender: Male sausagejohnson http://waynejohnson.net Location: Near Canberra, Australia
Re:Tiled MapEditor to ORX Config Converter Tool 3 Months, 1 Week ago Karma: 3
See thread for the 0.4 version.
 
Logged Logged
 
Indie gamedev with Orx at night. Always feel free to come and say hi over in gitter.im/orx/orx gitter chat or drop me a message.
  The administrator has disabled public write access.
#8618
sausage
Moderator
Posts: 688
graphgraph
User Offline Click here to see the profile of this user
Gender: Male sausagejohnson http://waynejohnson.net Location: Near Canberra, Australia
Re:Tiled MapEditor to ORX Config Converter Tool 2 Months, 1 Week ago Karma: 3
Version 0.5 is out shortly. Interface has been simplified, and support is being added for multiple layers.
 
Logged Logged
 
Indie gamedev with Orx at night. Always feel free to come and say hi over in gitter.im/orx/orx gitter chat or drop me a message.
  The administrator has disabled public write access.
#8628
sausage
Moderator
Posts: 688
graphgraph
User Offline Click here to see the profile of this user
Gender: Male sausagejohnson http://waynejohnson.net Location: Near Canberra, Australia
Re:Tiled MapEditor to ORX Config Converter Tool 1 Month, 3 Weeks ago Karma: 3
Version 0.6 is available in the origin post.

All map formats are now accepted: CSV, XML, Base64, Base64/gzip and Base64/zlib.

orx-project.org/wiki/tutorials/community/sausage/tmx_to_orx
 
Logged Logged
 
Indie gamedev with Orx at night. Always feel free to come and say hi over in gitter.im/orx/orx gitter chat or drop me a message.
  The administrator has disabled public write access.
Go to top