Author |
Message |
BlueGoku Novice
Age:39 Gender: Joined: Jul 05 2005 Posts: 87 Location: Toronto Offline
|
Posted: 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. _________________ Owner of SSCE Hockey Zone.
SSC Billing Operator |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: 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. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
 |
BlueGoku Novice
Age:39 Gender: Joined: Jul 05 2005 Posts: 87 Location: Toronto Offline
|
Posted: 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? |
|
Back to top |
|
 |
Assassin2684 Server Help Squatter

Age:34 Gender: Joined: Jul 27 2004 Posts: 990 Location: Florida Offline
|
Posted: Sun Oct 16, 2005 5:34 pm Post subject: |
 |
|
|
|
Just use clit it is much easyer. |
|
Back to top |
|
 |
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: 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. |
|
Back to top |
|
 |
|