diff options
author | Thorbjørn Lindeijer (aider) <bjorn@lindeijer.nl> | 2025-02-06 09:32:33 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-02-06 10:27:34 +0100 |
commit | 334c4b04ccc398b03295d34d6690bbd78c55ef96 (patch) | |
tree | 6b50133045baf1c61044844d73456930c6af5647 /bin | |
parent | 1ff4530284a8512020950de961298df6ec91e24f (diff) | |
download | tools-334c4b04ccc398b03295d34d6690bbd78c55ef96.tar.gz tools-334c4b04ccc398b03295d34d6690bbd78c55ef96.tar.bz2 tools-334c4b04ccc398b03295d34d6690bbd78c55ef96.tar.xz tools-334c4b04ccc398b03295d34d6690bbd78c55ef96.zip |
Update tmx_converter.py to Python 3
Since I'm not too familiar with Python and especially not with updating
scripts from Python 2 and 3, I did an excersize with AI, trying to get
Claude 3.5 Sonnet to dream up the solution, using aider.
After a little back and forth, resulting in the following 5 commits
(squashed), I think the update looks quite alright and passed the test
(no changes happening in the existing .wlk files).
* fix: Update script to handle Python 3 string and bytes encoding
* fix: Handle bytes-to-string conversion in TMX CSV parsing
* fix: Preserve binary data writing by using direct bytes conversion
* refactor: Remove unnecessary decode() call when splitting CSV buffer
* refactor: Simplify tile conversion by removing unnecessary int() cast
Cost about $0.05 per commit, for a total of $0.22 (and over 100x this in
terms of my own time - it would likely have been quicker and more
educational to not use AI).
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions