Page 1 of 1

HexFarm - Dynamically generated map (Also random)

Posted: 11 Jan 2011, 00:22
by zwzsg
This is a new map, mainly intented for Kernel Panic (but should work with any mod). This map is generated and rendered with Lua. This way I can draw properly textured vertical cliff, bridges and bottomless pit. And because it's dynamically generated, the map layout can be changed! There's a dozen map options to tweak the map generation. It default to randomized values.

HexFarm: http://springfiles.com/2908



Pictures:

Image

Image

Image

Download link: http://springfiles.com/2908


Map Options:
  • The first map option is a tickbox make the Lua ignore every other map option and use randomised values instead.
  • The second map option let you have a team colored texture. A tower is considered owned by a team when it has atop a finished structure of at least 3x3.

    Image
  • The third map option let you specificy a bounding shape for the map.

    Image Image Image Image Image Image

    Circle is rarely different from hexagon.
    Rectangle uses the map size, giving it irregular edge.
  • The fourth map option only make sense when the fifth is ticked, it offsets the lattice or not. Compare:

    Image Image
  • The fifth map option is to remove 25% of the towers, making the map less crowded. Compare:

    Image Image
  • The other map options should be self explanatory.


Start Positions:

- Fixed Start Pos place Gaia in the center, then place other team one by one, each the farthest away from other teams.
- Random Start Pos pick a random offset direction, then place each team in its own pie slice.
This mean that, for a given map layout, fixed start pos are always placed on the same place, even if you add or remove teams.
This mean that, for a fixed map layout, random start pos will be different each time you start the game.
This also mean that random start pos might not be placed on the map extremities.
If you have more teams than towers, then it start placing more than one team per tower, evenly spaced at half the tower radius.


Download Link:

http://springfiles.com/2908

Re: HexFarm - Dynamically generated map (Also random)

Posted: 11 Jan 2011, 00:25
by Neddie
Excellent work, I hope to test it out some time when I'm not at the office!

Re: HexFarm - Dynamically generated map (Also random)

Posted: 11 Jan 2011, 00:38
by Jazcash
This is an innovation in Spring mapping, I salute you sir.

Re: HexFarm - Dynamically generated map (Also random)

Posted: 11 Jan 2011, 00:38
by BaNa
holy shit man, awesome!

Re: HexFarm - Dynamically generated map (Also random)

Posted: 11 Jan 2011, 00:42
by KaiserJ
awesome!

Re: HexFarm - Dynamically generated map (Also random)

Posted: 11 Jan 2011, 01:09
by knorke
now being hosted :shock: :shock: :shock:

Re: HexFarm - Dynamically generated map (Also random)

Posted: 11 Jan 2011, 01:13
by Beherith
Sweet stuff, zw, mind if I steal some if this exceptional lua?

Re: HexFarm - Dynamically generated map (Also random)

Posted: 11 Jan 2011, 01:52
by zwzsg
The lua in HexFarm in is not reusable, it was made specifically for that map and can't do much else.

If you want to steal my dynamically generated map Lua, take the Balladium gadget from BASP_V713z165.sd7 (check "Map Hijack" mission in esc-key menu in that BASP to see what it does).

Re: HexFarm - Dynamically generated map (Also random)

Posted: 11 Jan 2011, 03:10
by luckywaldo7
This map blows my mind with awesomeness, now I have a reason to play KP more regularly.

Re: HexFarm - Dynamically generated map (Also random)

Posted: 11 Jan 2011, 03:11
by BaNa
the only way i could describe how much fuckwin there is in this map would involve me visiting whoever is reading this comment IRL, taking them out and hiring a group of very hot prostitutes to pleasure them WHILE CHUCK NORRIS WRESTLES A SNAKEIGATOR-SHARK MUTANT HYBRID IN THE BACKGROUND.

Re: HexFarm - Dynamically generated map (Also random)

Posted: 11 Jan 2011, 03:31
by zwzsg
Bugs:
  • Minimap is background is ugly. See http://springrts.com/phpbb/viewtopic.php?f=23&t=24763
  • Features (such as walls) and map markers are invisible until you press F1 (but stay when you press F1 back).
  • Selection squares don't show. So I recommand using a widget such as this.
  • For some, units are black, switching off unit reflectivity was said to fix.

Re: HexFarm - Dynamically generated map (Also random)

Posted: 11 Jan 2011, 04:51
by bobthedinosaur
that is pretty fucking cool