Guild icon
DDraceNetwork
DDraceNetwork / mapping
Here you can talk about mapping, ask mapping related questions or request new ratings for released maps
Between 2023-04-12 00:00:00Z and 2023-04-13 00:00:00Z
Avatar
wrote two python scripts which some might find useful :)
Avatar
in tile_counts.py you can add more tiles to be counted in the dictionary tiles. It only looks into the game and front layer. Usage: python tile_count.py path-to-map to use tile_replace.py you can edit the dictionary ids to do your own replacement logic. 1: 3 for example replaces hookable with unhookable, some more notes can be found in the file. It also only does work in the game/front layer, but can be extended relatively easy to work on other layer types. Usage: python tile_replace.py path-to-map path-where-to-output-new-map.
10:56
(you need the twmap package installed, you can simply do pip install twmap) (edited)
10:57
-> on linux you should probably do pip install --user twmap
Anime.pdf pinned a message to this channel. 2023-04-12 11:27:09Z
Avatar
you could plot instead of printing in 2nd script, probably better imo
Avatar
Avatar
Chairn
you could plot instead of printing in 2nd script, probably better imo
feel free to add that ^^
16:48
for my usage of the script it would've been overkill
Avatar
Avatar
Patiga
wrote two python scripts which some might find useful :)
based agpl
Exported 9 message(s)