A Very Weird Question on Map Editing [Archive] - Team17 Forum

PDA

View Full Version : A Very Weird Question on Map Editing

hundreds
22 Dec 2008, 02:42
Hey Guys,
This is weird. Maybe SOMEONE may actually have some input on this. I am making a map that basically has 1 very tall building (height is around 2800 pixels) in the middle and two smaller buildings on each side. The main building has many rooms "carved" into it allowing for fighting inside the structure and the two others have a few floors carved into them as well.
My question has to do with worm spawning. If I choose 3 teams of 8 worms, the two smaller buildings NEVER get any worms spawned on them. None inside the buildings and none even on top. While the middle one gets all of the worms spawned randomly throughout the structure.
If I up the team count to 6 teams (48 worms), then the two smaller buildings finally get populated. I have moved the structures all over the map - just to test if i could force spawning in the smaller buildings (above the big one, level with the top, touching it), all to no avail.
Any ideas?
Thanks
Jay

MihaiS
22 Dec 2008, 02:52
On some standard classic wxw maps all worms spawn either on the left or on the right side of the map. I don't think there's a way to control the worms spreading algorithm.

Muzer
22 Dec 2008, 09:00
I think it depends on how much open space is around the place.
Ask Deadcode.

hundreds
22 Dec 2008, 19:02
I found the FIX!
Boy am I happy about this. The worms are placed in the primary building because the primary building has the most space CLOSEST TO THE TOP OF THE SCREEN. Placing one of the smaller buildings above it made worms appear in it first and then the random placement just cascades down the map.
That means that as long as there is enough space in the main building (at the top of the map working down), then the other buildings are not needed for placement by the system. That explains why there were crates and barrels and mines appearing there but not worms. My buddies and I love playing with a sick amount of crates and mines. Makes for some crazy situations. So, I just upped the amount of barrels and mines to something like 250 and now the system had less room to place the worms, so it resorted to placing them in the smaller buildings.
I think I can find a sweet spot balancing the worm placement with the amount of barrels so that I don't have quite THAT many barrels. Maybe 150 will do it. This is a rather large building so that would probably not be too many mines and barrels.
I will be posting this completed level in about a week or so. Two of my friends are helping me with this as it is truly the most ambitious worms level we have ever attempted. Lots of work.
Thanks everyone!
Jay

Konar6
22 Dec 2008, 19:44
Good to know this. I think it has something to do with worms always spawning near the middle of this (http://wmdb.org/5554) map.

hundreds
24 Dec 2008, 19:29
According to my theory, yes. It is not the fact that it favors the middle. It is because the most "room" or "spots" for potential worm spawns exists in the middle (the fire streaks, caves and what-not). Up the Barrels and Mines on that map and I bet you will have worms elsewhere as a result.

franpa
25 Dec 2008, 00:37
It places then randomly in a 1920x960 or whatever the original map size is, the logic was never updated yet to accomadate large maps properly.

vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.