Scripts, Tutorials & Tools This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Ad Content
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old September 16th, 2018 (5:45 AM).
塗 ゆり's Avatar
塗 ゆり 塗 ゆり is offline
Scripter / RGSS Modder
    Join Date: Apr 2011
    Location: France
    Age: 25
    Gender: Other
    Posts: 90
    Hi everyone ! I have finally developed the tiled to RMXP map converter, it took 48hours but now there's a working PoC :)

    The software is named tiled2rxdata because it converts tmx files to rxdata files and build the Tilesets.rxdata file.


    1. Tiled folder organization
    For some reasons, your tiled folder should contain all the .tmx and .tsx files in its root. (The images can be stored in subfolders as long as the tsx files gives the right path to them).

    2. Tiled layer organization
    You have to organize your tiled layer on a particular way. First, you are required to have a "passages" layer using the "passages.tsx" tileset. It defines all the passages of your map (tiled2rxdata manage existing passages).

    Use the following file in your passages.tsx tileset : (chroma key = #FF00FF)

    Next, you'll have to specify the RMXP tiles priority using a number at the end of your tiled layers name.
    1 = no priority, 2 = *1, 3 = *2, 4 = *3, 5 = *4, 6 = *5

    The layer organization should looks like this :

    3. Tmx format
    Your tmx should be formated like this :
    - Orientation: orthogonal
    - Renderorder : left-up
    - Infinite : NO
    - encoding : base64
    - compression : gzip

    4. Start tiled2rxdata
    - Launch Game.exe
    - Drag and drop you tiled folder to the terminal when it asks for the tiled project location.
    - Run the help command to get informations about commands :

    5. Add a tileset
    For tiled2rxdata, the tilesets are the manager of the RMXP tileset that will be saved in Tilesets.rxdata. They allow 16384 different tiles.

    Run the add tileset command
    Example : add tileset "My great Tileset" great_tileset.png

    Use the reset tileset command if there's a tile overflow on your tileset and change some map tilesets (you can use the add map command).

    6. Add a map
    Run the add map command
    Example : add map my_map.tmx "My great Tileset" 049

    7. Convert a map
    Run the convert command
    Example : convert my_map.tmx

    Important : All the maps should have been converted before building the tileset !

    8. Build the tileset
    Run build tileset.

    9. Save your project
    Run exit it'll save the project and stop the programm.

    10. Retreive the result
    Everything has been saved into the output folder of your tiled folder.

    - Nuri Yuri (Script)
    - SFML (Used by LiteRGSS)
    - PSDK (Dev environnement)
    - LiteRGSS (Image generation)
    Nuri Yuri
    Pokémon Workshop | Facebook Page
    Reply With Quote

    Quick Reply

    Join the conversation!

    Create an account to post a reply in this thread, participate in other discussions, and more!

    Create a PokéCommunity Account
    Ad Content
    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump

    All times are GMT -8. The time now is 12:06 AM.