💡 Describe your idea
There should be an easy way to create the atlas for usage in a self hosted stendhal and stendhal website environment
🔬 Motivation
I wanted to not have to rely on the default STENDHAL_MAP_TILE_URL_BASE value of the website's configuration.php file.
It appears that some file names referenced in world.tmx are not the same filenames of a brand new execution of the ant target that creates the png files of the respective tmx files. More specifically:
- 0_sikhw_sikhw_desert_se is actually -> 0_sikhw_desert_se
- sub_7_deniran_atlantis_mtn_e would be -> sub_7_deniran_atlantis_mtn_e2
- sub_7_deniran_atlantis_mtn_ne -> sub_7_deniran_atlantis_mtn_n_e2
- sub_7_deniran_atlantis_mtn_se -> sub_7_deniran_atlantis_mtn_s_e2
- sub_7_deniran_atlantis_n_e2 -> sub_7_deniran_atlantis_n2_e
As a result, the world.png is only reproducible with the existing committed individual png files.
I also needed a way to create the world-large.png file which is referenced in src/games/stendhal/tools/map/ImageSplit.java
Finally, something that is somewhat irrelevant to the general atlas, was the need to be able to create semos_surrounds.png in data/maps/parallax and I do not yet have a solution for the view_wizards_tower.png
📝 Alternatives
I have a bash script to overcome the aforementioned needs/issues which I attached here. It could be a reference in what needed to be added/changed.
🔭 Additional information
This could also be used for the official https://stendhalgame.org/ site so it shows an up to date map
createAtlas.sh
💡 Describe your idea
There should be an easy way to create the atlas for usage in a self hosted stendhal and stendhal website environment
🔬 Motivation
I wanted to not have to rely on the default STENDHAL_MAP_TILE_URL_BASE value of the website's configuration.php file.
It appears that some file names referenced in world.tmx are not the same filenames of a brand new execution of the ant target that creates the png files of the respective tmx files. More specifically:
As a result, the world.png is only reproducible with the existing committed individual png files.
I also needed a way to create the world-large.png file which is referenced in src/games/stendhal/tools/map/ImageSplit.java
Finally, something that is somewhat irrelevant to the general atlas, was the need to be able to create semos_surrounds.png in data/maps/parallax and I do not yet have a solution for the view_wizards_tower.png
📝 Alternatives
I have a bash script to overcome the aforementioned needs/issues which I attached here. It could be a reference in what needed to be added/changed.
🔭 Additional information
This could also be used for the official https://stendhalgame.org/ site so it shows an up to date map
createAtlas.sh