User Tools

Site Tools


en:tutorials:tools:tmx_to_orx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:tutorials:tools:tmx_to_orx [2016/12/30 18:30 (5 years ago)]
sausage TextureOrigin
en:tutorials:tools:tmx_to_orx [2021/07/12 18:58 (5 months ago)] (current)
sausage online version
Line 1: Line 1:
-====== Using the Tiled (TMX) to ORX Converter ======+====== Using the TiledToOrx ​Converter ====== 
 + 
 +<WRAP center round box 90%> 
 +Source code for the converter can be found here: https://​gitlab.com/​sausagejohnson/​tiledtoorx 
 +</​WRAP>​ 
  
 1. Get a copy of Tiled Map Editor here [[http://​www.mapeditor.org/​]] 1. Get a copy of Tiled Map Editor here [[http://​www.mapeditor.org/​]]
  
-2. Get a copy of Tiled TMX to ORX Config Converter Tool {{:tutorials:community:​sausage:​tiledtoorx04.zip|Tiled to Orx Converter ​Download ​v0.4}} +2. Get the latest version ​of the TiledToOrx ​Config Converter Tool: [[https://​gitlab.com/​sausagejohnson/​tiledtoorx/​raw/​master/​TiledToOrx.zip|TiledToOrx ​Download]] or use the [[https://​tiledtoorx.alienabductionunit.com|Online Version]].
  
 3. Get your tiles image and check what your tile dimension is. I'm using a few tiles from Mushroom Stew and these are each 32 x 32 pixels: 3. Get your tiles image and check what your tile dimension is. I'm using a few tiles from Mushroom Stew and these are each 32 x 32 pixels:
Line 13: Line 18:
 {{ tutorials:​community:​sausage:​tiled-new-map.png |}} {{ tutorials:​community:​sausage:​tiled-new-map.png |}}
  
-4. Make sure orthogonal is set, your map size, and the width & height of the tiles.+5. Make sure orthogonal is set, your map size, and the width & height of the tiles.
  
-5. Select Map > New Tileset+6. Select Map > New Tileset
  
-6. Give the name as "​Tiles"​ (without quotes). This will be used for naming the config graphics entries automatically later on.+7. Give the name as "​Tiles"​ (without quotes). This will be used for naming the config graphics entries automatically later on.
  
-7. Browse to your tile set image.+8. Browse to your tile set image.
  
-8. Ensure the tiles dimensions are correct (32x32 in this case). Leave the rest default and click OK+9. Ensure the tiles dimensions are correct (32x32 in this case). Leave the rest default and click OK.
- +
-9. Next step, every tile position on the map MUST be filled. The converter doesn'​t support null tile placements. So in all your blank areas, paint your empty tile. (If this annoys people, let me know and I can build in null tile support).+
  
 {{ tutorials:​community:​sausage:​map-populated.png |}} {{ tutorials:​community:​sausage:​map-populated.png |}}
Line 30: Line 33:
 10. Save your .tmx file with File > Save As 10. Save your .tmx file with File > Save As
  
-11. Load the converter tool. It will look like this:+11. Load the converter tool. It will look something ​like this:
  
 {{ tutorials:​community:​sausage:​tmx-to-orx-interface.png |}} {{ tutorials:​community:​sausage:​tmx-to-orx-interface.png |}}
  
-12. Start by browsing to your .tmx file. The ini save position will be automatically set as a default.+12. Start by browsing to your .tmx file.
  
-13. Click "​Preview"​ to see what the converter will produce. This will not save anything or populate your clipboard. If you are not happy with the results or names of objects, go back to Tiled and make adjustments.+13. The lower pane will always show the current converted output
  
-13If you are happy with the outputyou can choose ​the "​Output to ORX Config"​ radio button and click "​Convert"​. This will save out to an INI file.+14From this point on, the converter ​will watch the original TMX file for changes. Any further work in Tiled will be automatically updated in the converter output pane.
  
-14If you would rather ​copy the data to the clipboard, select the "Send to Clipboard"​ radio button and click "​Convert"​. You can then paste into your ORX project ​file(s).+15Click "Copy to Clipboard"​ to copy the entire contents ​to the clipboard. To copy part of the output, select the range with the mouse, then click the button. You can then paste the content ​into your Orx config ​file(s).
  
 Hopefully you should get something like the following: Hopefully you should get something like the following:
Line 99: Line 102:
 </​code>​ </​code>​
  
- 
-Any problems, let me know at: [email protected] 
  
en/tutorials/tools/tmx_to_orx.1483151406.txt.gz · Last modified: 2017/05/30 00:50 (5 years ago) (external edit)