Light Style© by Fisana

Jump to content


Photo

Random Map Script:Aegean Sea


  • Please log in to reply
6 replies to this topic

#1 Spahbod

Spahbod

    Triplicarius

  • WFG Programming Team
  • 594 posts

Posted 04 January 2012 - 08:54 AM

Hi. Here's another map:
A sea with smaller scattered islands stands between players who must build a navy to reach the enemy.

Warning: Naval map. Bot's won't be able to play properly.

Posted Image

Link to Download


Next one will probably be a Carthaginian home base random map as part of my plan to make a random map script for each of the races except Romans and Gauls (Which have Latium and Catabarinian Highlands respectively). Greek and Persian maps are done. Any suggestions for Iberian or Carthaginian random maps?
  • 0
Omid Davoodi [ aka Spahbod ]

Wildfire Games Random Map Designer, Low-level Programmer
Contact me: myops37@yahoo.com


Support Wildfire Games!

#2 quantumstate

quantumstate

    Primus Pilus

  • WFG Retired
  • 1,150 posts

Posted 04 January 2012 - 11:07 AM

You seem to be creating a lot of these maps, it is good to have them. This one looks nice, one thing that could be improved is the shoreline which is a bit jagged, but generally it looks great.
  • 0

Jonathan Waller [ aka quantumstate ]

Wildfire Games Programmer
Contact me: jonathanmarkwaller at gmail dot com


Support Wildfire Games!


#3 Cassador_Chris

Cassador_Chris

    Duplicarius

  • Community Members
  • PipPipPip
  • 224 posts

Posted 04 January 2012 - 08:02 PM

I guess my personal preference would be for the islands to be slightly larger (thus more important) and for the opposite landmasses to be smaller and more concave. But looks like a fun map none-the-less. I could see someone dominating this map by booming a navy and tower-rushing the islands, so that it becomes impossible for the other player to make offensive action.

EDIT: Oh, and Spahbod, might you consider making a tutorial on creating random maps in 0AD?

Edited by Cassador_Chris, 04 January 2012 - 08:07 PM.

  • 0
"Allies in Shogun 2 are among the most traitorous that I have ever seen. Do not trust them, but declare war on them at the first opportunity." - Sun Tzu

#4 Spahbod

Spahbod

    Triplicarius

  • WFG Programming Team
  • 594 posts

Posted 05 January 2012 - 05:21 AM

Do you know JavaScript or C++? If you know them, It won't be hard to learn random map scripting. If you don't, You can still understand most parts of the code as they have comments to explain most parts of the code. And I suggest you to use notepad++ if your OS is windows. Try this and if you still had problems, PM me and I'll answer your questions.

Also it is not very hard to learn JavaScript. I know a very good website to learn JS. Click Here.
  • 0
Omid Davoodi [ aka Spahbod ]

Wildfire Games Random Map Designer, Low-level Programmer
Contact me: myops37@yahoo.com


Support Wildfire Games!

#5 Spahbod

Spahbod

    Triplicarius

  • WFG Programming Team
  • 594 posts

Posted 05 January 2012 - 02:01 PM

Updated the map. Fixed the jagged shores. Made Islands 1.33 times bigger
  • 0
Omid Davoodi [ aka Spahbod ]

Wildfire Games Random Map Designer, Low-level Programmer
Contact me: myops37@yahoo.com


Support Wildfire Games!

#6 quantumstate

quantumstate

    Primus Pilus

  • WFG Retired
  • 1,150 posts

Posted 05 January 2012 - 10:34 PM

I played around with the shoreline code a bit for this map. I have uploaded a diff and the file if you are interested. I basically made the beach slope gradually and moved the dry/wet sand terrain transition underwater because it looks ugly (the blending in the engine should be fixed really).

Also in the process I found that the height for tiles is specified for the corners which, based on your code, I don't think you were taking into account. Because that is not the way I want it to work I patched the rmgen script so that now if you set
TILE_CENTERED_HEIGHT_MAP = true;
using setHeight/getHeight will do it for the center of a tile. You will need the latest svn for this to work though. If you don't have the latest svn it will just have the height map shifted by half a square towards the bottom left of the map, so it is safe for Alpha 8 users (most noticeable that the right hand beach is larger).

Edit: Just noticed my previous diff was in the wrong direction, link is correct now.
  • 0

Jonathan Waller [ aka quantumstate ]

Wildfire Games Programmer
Contact me: jonathanmarkwaller at gmail dot com


Support Wildfire Games!


#7 Spahbod

Spahbod

    Triplicarius

  • WFG Programming Team
  • 594 posts

Posted 06 January 2012 - 06:11 AM

I played around with the shoreline code a bit for this map. I have uploaded a diff and the file if you are interested. I basically made the beach slope gradually and moved the dry/wet sand terrain transition underwater because it looks ugly (the blending in the engine should be fixed really).

Also in the process I found that the height for tiles is specified for the corners which, based on your code, I don't think you were taking into account. Because that is not the way I want it to work I patched the rmgen script so that now if you set

TILE_CENTERED_HEIGHT_MAP = true;
using setHeight/getHeight will do it for the center of a tile. You will need the latest svn for this to work though. If you don't have the latest svn it will just have the height map shifted by half a square towards the bottom left of the map, so it is safe for Alpha 8 users (most noticeable that the right hand beach is larger).

Edit: Just noticed my previous diff was in the wrong direction, link is correct now.


Thanks for that. I was really nervous about beach slope as my new unpublished map is going to use the same code for a river and everything I did made it worse. Also I thought it was my fault that the odd eastern beach thing happened. But it seems that it was rmgen's. <_<. I don't have SVN. So I'll add the new code for the Alpha 9 version of the map.
  • 0
Omid Davoodi [ aka Spahbod ]

Wildfire Games Random Map Designer, Low-level Programmer
Contact me: myops37@yahoo.com


Support Wildfire Games!