1

Topic: Automapper update tool

Hi big_smile
Is it any program to update automapper files (from 0.6 .rules file to 0.7 .json file)? or any way to use .rules in 0.7 editor?

I can create simple tool to do that but first i need to know how to create rotation in new .json
i saw https://www.teeworlds.com/forum/viewtopic.php?id=12648 but there is no infromation about roatation/xflip/yflip.

2 (edited by Dune 2019-02-03 18:40:02)

Re: Automapper update tool

I have updated most of the automapper rules here: https://github.com/Dune-jr/teeworlds/tr … or/automap
It just needs a few fixes and the port of some cave stuff before being pushed to Teeworlds.

They could use some improvements though.

Not Luck, Just Magic.

3

Re: Automapper update tool

Thanks big_smile
But still in few days i will make some tools to update rules (for custom sprites) and maybe i will create tool to make rules easily wink

I think Teeworlds need some "modding" stuff to attract new players and they will create a lot of maps/servers and this also will attract more players tongue

4

Re: Automapper update tool

Well then I need to finish writing the tutorial. It was due for a month ago :)
If you're looking for examples of flip, just look at winter_main.json

It became hflip/vflip. Example:

            {
                "index": 2,
                "hflip": 1,
                "condition": [
                    {"x": 1, "y":0, "value": "empty"},
                ],
            }

Rotate works similarly, you can use

"rotate": 90

or

"rotate": 180

or

"rotate": 270

instead of hflip/vflip

Any tool to help us with that would be great of course :)
Btw, if you're looking for the C++ code that reads the rules, it's there: https://github.com/teeworlds/teeworlds/ … pp#L32-L98

Not Luck, Just Magic.

5

Re: Automapper update tool

Great! Thanks :D