Topic: TeeworldsMapLib
Are you a developer? Did you ever wanted to hack a teeworlds map without the client, but with a program? Or do you want to build applications, which need to read the data of a teeworlds map file, or even change and create maps? Then this is what you always wanted!
SushiTee and me developed a python tool which can exactly do that: giving you a nice interface without needing you to worry about stuff like the teeworlds fileheader or offsets.
A small taste:
>>> from tml.tml import Teemap
>>> t = Teemap('tml/maps/dm1') # example
>>> t.groups
[<Group (1)>, <Group (2)>, <Group (2)>, <Group (1)>, <Group (1)>, <Group (1)>, <Group (6)>]
>>> t.groups[6].layers
[<Tilelayer (60x50)>, <Tilelayer (60x50)>, <Game layer (60x50)>, <Tilelayer (60x50)>, <Tilelayer (60x50)>, <Tilelayer (60x50)>]
>>> t.images
[<Image (bg_cloud1)>, <Image (bg_cloud2)>, <Image (bg_cloud3)>, <Image (grass_doodads)>, <Image (grass_main)>, <Image (mountains)>, <Image (sun)>]
>>> t.images[2].save('cloud3.png')
>>> t.save('my_great_map')
... and so on.
We hope that you can build great programs for teeworlds players with the help of tml.
Tml is still under development (and we should think about giving proper versionnumbers ), but its already usable (at least all things mentioned in the documentation).
Check out the repository at https://github.com/erdbeere/tml/ and the docs at http://sushitee.github.com/tml or http://erdbeere.github.com/tml/
Tools / sites which use tml:
Have fun!