You must be logged in to post messages.
Please login or register

AoE/RoR Modding and Discussion
Moderated by Suppiluliuma, PhatFish, Fisk, EpiC_Anonymous, Epd999

Hop to:    
Welcome! You are not logged in. Please Login or Register.4 replies
Age of Empires Heaven » Forums » AoE/RoR Modding and Discussion » AoE RoR - How to seed map was created?
Bottom
Topic Subject:AoE RoR - How to seed map was created?
TLHP
Clubman
posted 02-11-19 10:52 PM ET (US)         
Dear community,

We are in 2019 but I am still passionate about AoE RoR, not like others game that you have a fix map pools but with AoE, you have like 100.000 maps to play, and each game give different strategies/outcome.

In this thread, I would like to know more about how AoE generated those 100.000 scenarios.

As everyone know with each seed number with some pre-settings (number of players, land type, map size), we will have exactly the same scenario.

I was wondering is there anyone who curious about how those scenarios was generated?

- How can we extract those 100.000 maps so we can study about it (player position, civi stats, elephant/deer/forage bushes position, ...)

I am trying to google to find the answer but not too much result.

I am intent to de-compile the game file (empirex.exe) it to understand the process behind but I don't know where to start.

Every suggestion/link/help are welcome!

[This message has been edited by TLHP (edited 02-12-2019 @ 03:16 AM).]

AuthorReplies:
chab
Clubman
posted 02-12-19 11:47 AM ET (US)     1 / 4       
the maps are not pre-defined.
They are computed using pseudo-random values.
Pseudo-random values are based on a map seed, so each initial seed will always give the same final map (provided you are using the same settings like map size, players counts, etc)

So actually for end user it's like there were something like 100000 pre-defined maps.

I suggest you have a look to the AGE3 tab dedicated to maps as we managed to identify most of the values it contains.
If you modify empires.dat data for maps, you'll get different maps with your seeds.

As for the algorithm itself... It's just... quite complicated ! Good luck if you intend to reverse-engineer that !
TLHP
Clubman
posted 02-13-19 09:33 PM ET (US)     2 / 4       
Thanks chab for your reply :x

Where is AGE3 tab that you mentioned? (sorry I am new here)

If I just want to have the results of Seed Map Generating in some readable format (to know position of player/deer/elephant/bushes/tree..), it it possible?

Can you give me some guideline where to start?

I am developer so you can use IT terms, I will understand it

For now I will start with empires.dat as you suggested.
chab
Clubman
posted 02-14-19 12:05 PM ET (US)     3 / 4       
I think this is latest AGE version
http://aok.heavengames.com/blacksmith/showfile.php?fileid=11002&f=&st=530&ci=

The maps tab is the last one.
I don't think there is any readable format for map generation, it's just computed by the game when you start a game, so it computes binary information, not human-readable information.
TLHP
Clubman
posted 02-25-19 02:43 AM ET (US)     4 / 4       
I am able to get position of elephant/deer/berry bushed, ... on a given map now.

There is a lot of document about scx structure, just beware of map version, data structure may a little different across those version.

http://dderevjanik.github.io/agescx/formatscx/#scx-format
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Empires Heaven | HeavenGames