View topic - HexFarm - Dynamically generated map (Also random)


All times are UTC + 1 hour


Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: 11 Jan 2011, 00:22 
Kernel Panic Co-Developer
User avatar

Joined: 16 Nov 2004, 13:08
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
Top
 Offline Profile  
 
PostPosted: 11 Jan 2011, 00:25 
Community Lead
User avatar

Joined: 10 Apr 2006, 04:05
Location: Finland, 1944
Excellent work, I hope to test it out some time when I'm not at the office!
Top
 Offline Profile  
 
PostPosted: 11 Jan 2011, 00:38 
Tournaments Moderator
User avatar

Joined: 08 Dec 2007, 17:39
Location: UK - England
This is an innovation in Spring mapping, I salute you sir.
Top
 Offline Profile  
 
PostPosted: 11 Jan 2011, 00:38 

Joined: 09 Sep 2007, 20:05
holy shit man, awesome!
Top
 Offline Profile  
 
PostPosted: 11 Jan 2011, 00:42 
Community Representative
User avatar

Joined: 08 Sep 2008, 21:59
Location: small cars
awesome!
Top
 Offline Profile  
 
PostPosted: 11 Jan 2011, 01:09 
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
now being hosted :shock: :shock: :shock:
Top
 Offline Profile  
 
PostPosted: 11 Jan 2011, 01:13 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
Sweet stuff, zw, mind if I steal some if this exceptional lua?
Top
 Offline Profile  
 
PostPosted: 11 Jan 2011, 01:52 
Kernel Panic Co-Developer
User avatar

Joined: 16 Nov 2004, 13:08
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).
Top
 Offline Profile  
 
PostPosted: 11 Jan 2011, 03:10 

Joined: 17 Sep 2008, 03:36
Location: your imagination
This map blows my mind with awesomeness, now I have a reason to play KP more regularly.
Top
 Offline Profile  
 
PostPosted: 11 Jan 2011, 03:11 

Joined: 09 Sep 2007, 20:05
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.
Top
 Offline Profile  
 
PostPosted: 11 Jan 2011, 03:31 
Kernel Panic Co-Developer
User avatar

Joined: 16 Nov 2004, 13:08
Bugs:
  • Minimap is background is ugly. See 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.
Top
 Offline Profile  
 
PostPosted: 11 Jan 2011, 04:51 
Blood & Steel Developer
User avatar

Joined: 25 Aug 2004, 12:31
Location: Has not played *a in years.
that is pretty fucking cool
Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Site layout created by Roflcopter et al.