UPDATE 2-17-10: Now supports rotation, pyramids and teleporters.
UPDATE 3-13-10: Now you can convert rotation from anim8or without tagging the name.
Using C++ I've created a converter that converts cubes in anim8or to objects in bzflag. In the future I would like to make it so you can convert by dropping a file on the executable, and make it so you can just rotate it in anim8or and not have to use rot_#_.
Instructions on making map:
Make the map in anim8or.
While making the map, only use cubes. To change what type of object the cubes are, change the cube's names.
To make a pyramid:
Put “pyr” (no quotes needed) anywhere in the name.
To make a teleporter:
Put “tel” (no quotes needed) anywhere in the name. The teleporter’s X size will be set to .125 in the BZW file, so you should set it to .125 in anim8or. (The teleporter will go along bzflag’s Y axis, if you want to change this, rotate it.)
To Rotate:
Rotate the object in anim8or only around the height axis. (This is the only rotation that bzflag supports.) (Edit>Rotation)
Info/Tips:
It’s helpful to color code the cubes in anim8or, so you can see which ones are boxes, pyramids, and teleporters.
Do not name any cubes over 50 characters long.
Do not make any object sizes/positions super long.
It will work more perfectly if you use round numbers to size/position your objects.
To Convert:
1. Put an anim8or file named "map.an8" in the same directory as the converter.
2. Run Anim8orBZWConverter.exe
3. The output file will be called map.bzw, and will be in the same directory.
This is being released under the GPLv3 license. The source is in the attachment. "Converter\Source\an8_to_bzw_converter"
If you are releasing it under GPLv3, then where is the source code to build your application? Also not sure what you mean by "That's my compilers license, so I'm guessing that's what I should go by" - you should be picking a license for your code, not necessarily based on what your compiler was licensed under. So pick a license, make sure you understand it, and then release your source code accordingly. I think the GPLv3 also requires that you include a copy of the license with your code and/or binaries. But that is something that you need to check.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)
blast wrote:If you are releasing it under GPLv3, then where is the source code to build your application? Also not sure what you mean by "That's my compilers license, so I'm guessing that's what I should go by" - you should be picking a license for your code, not necessarily based on what your compiler was licensed under. So pick a license, make sure you understand it, and then release your source code accordingly.
Can I just release the program under public domain then?
If you want to post it here, it has to be open-source. So if you want to public domain the source code, then sure, go for it. Otherwise pick a license (GPL, MIT, New BSD, etc)
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)
blast wrote:If you want to post it here, it has to be open-source. So if you want to public domain the source code, then sure, go for it. Otherwise pick a license (GPL, MIT, New BSD, etc)
Edit: Added link to less buggy version and removed attached buggy version. NOTE: If you downloaded the script from this thread, please visit the link and download the updated version. (All future updates of my port will take place in that thread.)
-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra The decisions we make are the ones we look forward too and the ones we regret. ~Zehra There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra
See where I've last been active atStrayers. Visit BZList.net for a modern HTML5 server stats site.