1.14 random generator

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
enclave
Posts: 936
Joined: December 15th, 2007, 8:52 am

1.14 random generator

Post by enclave »

Hi! A question,
I want my random generator to have shroud as default setting.
I have the following structure:

Code: Select all

[multiplayer]
        id=QC
        name={NAME}
        description={DESCRIPTION} 

         scenario_generation=default
        [generator]
            [scenario]
                id={NAME}
			name={NAME}
		
                {QC_MAP_EVENTS_{MAP_GEN_TYPE_ID2}}
	   [/scenario]
            {QC_MAP_GENERATOR_{MAP_GEN_TYPE_ID2} {MAP_WIDTH} {MAP_HEIGHT} {ITERATIONS} {PLAYERS} {CASTLE_SIZE} {HILL_SIZE} {MAX_LAKES}}
        [/generator]
[/multiplayer]
In 1.12 I have just added the following code inside the scenario and it worked.

Code: Select all

[side]	
fog=yes
shroud=yes
[/side]
In 1.14 not only it didn't work for shroud default tick, but also it doesn't allow to regenerate map with settings for more players (setting 7 players would keep map with 4 starting positions, but 7 castles).
Anyway... that all doesn't matter..

Real question is, how could I make a default tick of shroud on random map generator without specifying exact number of players and giving each player shroud=yes?
Thanks.. I just wonder if there is any undocumented tag or anything...?
gfgtdf
Developer
Posts: 1432
Joined: February 10th, 2013, 2:25 pm

Re: 1.14 random generator

Post by gfgtdf »

you coudl try to mp_fog=yes
mp_shroud=yes
directly in [scenario]
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
enclave
Posts: 936
Joined: December 15th, 2007, 8:52 am

Re: 1.14 random generator

Post by enclave »

Thank you so much! it works perfect!
User avatar
Celtic_Minstrel
Developer
Posts: 2219
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: 1.14 random generator

Post by Celtic_Minstrel »

Um, gfgtdf, is that documented anywhere?
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
Post Reply