Server Help

ASSS Questions - regions

BlueGoku - Sun Oct 16, 2005 1:33 pm
Post subject: regions
Is there an easy way of transfering regions from one map to another? To be more specific, here in HZ we use regions to determine if a goal is scored or whether the puck is shot in the crease, etc. This is very important for our league module because if the puck doesn't go through a specific region, it won't count as a goal, the timer won't stop, etc.

Right now what we'd have to do is copy the regions over to every map we're planning on using for league, and since every team gets a home arena, you can imagine how many maps that will be. All our maps, however, have the same rink. Meaning arenas themselves look like any other hockey maps we have, they just have different tiles/center LVZ, and sometimes people like to put stuff outside the rink, like rosters and stuff.

So ya, it would be a lot easier for us if there was some type of tool that will automatically copy regions over or something, since it's gonna be a bitch having to edit each map manually.

Thanks.
Dr Brain - Sun Oct 16, 2005 3:29 pm
Post subject:
Yes. There's a script in the scripts directory that'll help you out. Lets you import regions onto a map from a file.
Bak - Sun Oct 16, 2005 3:46 pm
Post subject:
you can try to import regions from another lvl using CLLT
BlueGoku - Sun Oct 16, 2005 3:50 pm
Post subject:
Dr Brain wrote:
Yes. There's a script in the scripts directory that'll help you out. Lets you import regions onto a map from a file.


What about exporting them from an LVL to that file?
Assassin2684 - Sun Oct 16, 2005 5:34 pm
Post subject:
Just use clit it is much easyer.
Grelminar - Sun Oct 16, 2005 7:57 pm
Post subject:
I took a look at lvltool.py (because I haven't used it in a while), and it looks like it won't do exactly what you want. But: it's written using a set of python libraries for handling elvl files, and it should be easy for you to use those libraries to whip up a little script to do exactly what you want.

Download the source (with monotone) and look at scripts/lvltool/lvltool.py, and scripts/pythonlib/{bmp,chunks,lvl,region}.py.

Warning: that code is written straightforwardly and has not been optimized at all. So it can be very very very slow. Improvements are welcome.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group