Random map generator

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Random map generator

Postby noobymcnoobcake » 14 Oct 2012, 17:08

It would be very intresting if someone could make a tool that randomly generates fair 1v1 maps. Why you may ask? because you wont have a set BO for each map. This will force players to adapt to situations very quickly and players like me who rely on set pre thought out strategies for each map would suffer.

It would not have to be very complex maps with hills and other things. Just 4 mex within a set distance from the starting point and 6 others around the half of the map. Then it would mirror it for the other person. Just on a plain map texture background with no hills or anything. This would be awesome. If its even possible to go this far.

If its possible to go this far then you could bring in different textures and colours for the landscape. Possibly even more players, hills or water and other things like hydrocarbons and mass wreckage.

Any coders/mappers/anyone else here willing to give this a go? Anyone else interested in it?

For a map you have 2 important files. The SCMAP file that tells the game what the map looks like. The textures, the heightmap, the water and all other things. This could be just a flat 5x5 file and be the same for all the randonly generated maps or a type of background could be selectable from like 10 different styles.

The second file is the .LUA save file. This tells the game the coordinates of the mex, the wreckage, the unit that had been wrecked and AI markers. I think someone with a bit of coding experience could easily make a randomiser for this. So long as you mirror it for the other half of the map and keep 4 mex within a certain distance of the spawn point you should be fine. I uploaded the fields of thunder save.LUA as a text file for you to examine.
User avatar
noobymcnoobcake
Evaluator
 
Posts: 672
Joined: 17 Sep 2011, 16:34
Has liked: 16 times
Been liked: 5 times

Re: Random map generator

Postby ColonelSheppard » 14 Oct 2012, 19:30

thats more or less impossible

a modular-map that can be constructed by some pre-defined parts maybe
i think you would have to re-writer the whole map editor, and you would need somekind of test if the map makes sence and, and, and...

maybe:
get all maps in the whole vault <= 20x20 and press random map
User avatar
ColonelSheppard
Contributor
 
Posts: 2997
Joined: 20 Jul 2012, 12:54
Location: Germany
Has liked: 154 times
Been liked: 165 times
FAF User Name: Sheppy

Re: Random map generator

Postby noobymcnoobcake » 14 Oct 2012, 22:59

ColonelSheppard wrote:thats more or less impossible

a modular-map that can be constructed by some pre-defined parts maybe
i think you would have to re-writer the whole map editor, and you would need somekind of test if the map makes sence and, and, and...

maybe:
get all maps in the whole vault <= 20x20 and press random map

You dont even need to use the map editor. The only thing that would change would be markers and wreckage and you an change that by editing a text file. I don't see how you would have to rewrite anything for that. Just make a simple program that randomizes these numbers with certain limits.
User avatar
noobymcnoobcake
Evaluator
 
Posts: 672
Joined: 17 Sep 2011, 16:34
Has liked: 16 times
Been liked: 5 times

Re: Random map generator

Postby ColonelSheppard » 14 Oct 2012, 23:10

and how do you want to prevent mass points from spawning into hills?
ofc you do random massspots on a flat 5v5 map thats no problem i guess, but i also think that would be boring

(and btw how should this work with the vault oO?)
User avatar
ColonelSheppard
Contributor
 
Posts: 2997
Joined: 20 Jul 2012, 12:54
Location: Germany
Has liked: 154 times
Been liked: 165 times
FAF User Name: Sheppy

Re: Random map generator

Postby noobymcnoobcake » 14 Oct 2012, 23:44

and how do you want to prevent mass points from spawning into hills?


Dont have hills and if you do make sure the editor dont spawn mex in the hill area. For instance you could have 10 diferent "base" maps with exclusion areas set around the hills or water.

ofc you do random massspots on a flat 5v5 map thats no problem i guess, but i also think that would be boring

This is an option

(and btw how should this work with the vault oO?)

Yes. Filling the vault with random numbered maps would not be a good idea.
User avatar
noobymcnoobcake
Evaluator
 
Posts: 672
Joined: 17 Sep 2011, 16:34
Has liked: 16 times
Been liked: 5 times

Re: Random map generator

Postby Raging_Squirrel » 15 Oct 2012, 18:50

ColonelSheppard wrote:and how do you want to prevent mass points from spawning into hills?

if you spawn hills, you know their coords and can spawn mass points somewhere out
Never argue with an idiot. He will bring you down to his level and beat with experience.
User avatar
Raging_Squirrel
Priest
 
Posts: 494
Joined: 26 Aug 2011, 16:53
Location: Russia
Has liked: 1 time
Been liked: 4 times
FAF User Name: Raging_Squirrel

Re: Random map generator

Postby ColonelSheppard » 15 Oct 2012, 18:59

if you spawn random hills you don't, and if you know where hill are and where you set masspoints massively decreases the "amount of randomness"

as i sad
more or less random mass spots: ok
a pool of maps where the massspots are spawned: ok
a total random map: no , that was what i was thinking of when i read nooby's post the first time
User avatar
ColonelSheppard
Contributor
 
Posts: 2997
Joined: 20 Jul 2012, 12:54
Location: Germany
Has liked: 154 times
Been liked: 165 times
FAF User Name: Sheppy

Re: Random map generator

Postby noobymcnoobcake » 15 Oct 2012, 19:25

a pool of maps where the mass spots are spawned: ok

This is what I was originally thinking. Now do you know anyone who is able to code this and also more importantly do you know anyone who it willing?
User avatar
noobymcnoobcake
Evaluator
 
Posts: 672
Joined: 17 Sep 2011, 16:34
Has liked: 16 times
Been liked: 5 times


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest