longturn / freeciv21

Develop your civilization from humble roots to a global empire
GNU General Public License v3.0
219 stars 42 forks source link

Add a window for tileset debugging #632

Open lmoureaux opened 3 years ago

lmoureaux commented 3 years ago

Is your feature request related to a problem? Please describe.

Understanding how the map is drawn is hard, partly because there is no tool to break down the sprites used to draw an arbitrary tile. Adding a tool to dissect existing tileset would help raise awareness of the map-drawing techniques employed by the various tilesets and be helpful for modders.

Describe the solution you'd like

A window with a button to can pick a tile to debug. Once a tile is selected, the list of sprites used to draw it is displayed.

Describe alternatives you've considered

None so far.

Additional context

Everyone agrees that making new tilesets is hard, especially terrain.

jwrober commented 3 years ago

Some thoughts on this - the window should be disconnected from the client so you can move it to a second monitor from the main client. The spec files and associated line data should also be displayed for quick troubleshooting. Option to be in "development mode" and edit the spec file(s) in the window would also be pretty cool if the client would be able to refresh to see the change on the fly.

lmoureaux commented 3 years ago

Very crude implementation that might already be useful: image

jwrober commented 2 years ago

Per a conversation on Discord, there is still some work to do on this one in a another pull request before it is complete.