Map Editor - population limit
Map Editor - population limit
How can i change the population limit and the epoch limit in the map editor? i'm creating a scenario
- Dr.MonaLisa
- High Representative
- Posts: 8715
- Joined: 17 Jun 2010, 11:21
- Location: Poland
- Has thanked: 49 times
- Been thanked: 109 times
Re: Map Editor - population limit
Hi.
This is only possible by the .ies script.
First of all, please read this topic to learn basic things: viewtopic.php?f=54&t=1737
You can learn all available scripts from file Empire Earth II\Scripting Docs\EE2 SCRIPTING.doc (the folder where game is installed).
Here's how to load an .ies script in game: viewtopic.php?f=54&t=1737
1. Go to "Documents\Empire Earth II\Scripts" (or "Documents\Empire Earth II The Art of Supremacy\Scripts" if it's EE2: AOS).
2. Configure Windows Explorer to show files extensions: https://www.technorms.com/29024/show-hi ... indows-7-8
3. Download and install Notepad++ https://notepad-plus-plus.org/download/
4. Create an empty text file, but rename .txt extension to .ies. Call it for example "Cristo96_scenario.ies".
5. Click the right mouse button on that file, then "Edit with Notepad++" from the list.
6. Paste the following content to that file:
Please remember to remove "SetMaxPopCapacity" for players who are not in game. For example if there are only 4 players in game, change "SetMaxPopCapacity(5, 999);" to "//SetMaxPopCapacity(5, 999);" to disable it (or simply remove from the file).
To block other epochs:
Change "HUMAN_PLAYER" to player ID (number).
For example if you want to block epoch 2 for all players, add after "SetMaxPopCapacity(10, 999);":
Final script file:
For more options simply read "EE2 SCRIPTING.doc" from the folder mentioned above. Also please don't forget to check some topics available in this subforum. There are sample script files and other useful posts.
This is only possible by the .ies script.
First of all, please read this topic to learn basic things: viewtopic.php?f=54&t=1737
You can learn all available scripts from file Empire Earth II\Scripting Docs\EE2 SCRIPTING.doc (the folder where game is installed).
Here's how to load an .ies script in game: viewtopic.php?f=54&t=1737
You're interested with population limit change. The simplest way:Dr.MonaLisa wrote: ↑30 Oct 2014, 03:31 .ies is a script file, should be stored in:
Documents\Empire Earth II\Scripts
To load an .ies in the map editor:
.scn is a scenario file: map + loaded script, defined areas, mission properties, etc.
1. Go to "Documents\Empire Earth II\Scripts" (or "Documents\Empire Earth II The Art of Supremacy\Scripts" if it's EE2: AOS).
2. Configure Windows Explorer to show files extensions: https://www.technorms.com/29024/show-hi ... indows-7-8
3. Download and install Notepad++ https://notepad-plus-plus.org/download/
4. Create an empty text file, but rename .txt extension to .ies. Call it for example "Cristo96_scenario.ies".
5. Click the right mouse button on that file, then "Edit with Notepad++" from the list.
6. Paste the following content to that file:
Code: Select all
RULES FOR WORLD
SCENARIO
END_SCENARIO
////////////////////////////////////////////////////////////
// DEFINITIONS
////////////////////////////////////////////////////////////
DEFINITIONS
// OBJECTIVES
//PLAYERS
END_DEFINITIONS
////////////////////////////////////////////////////////////
// INITIALIZATION
////////////////////////////////////////////////////////////
INITIALIZATION
SetMaxPopCapacity(1, 999);
SetMaxPopCapacity(2, 999);
SetMaxPopCapacity(3, 999);
SetMaxPopCapacity(4, 999);
SetMaxPopCapacity(5, 999);
SetMaxPopCapacity(6, 999);
SetMaxPopCapacity(7, 999);
SetMaxPopCapacity(8, 999);
SetMaxPopCapacity(9, 999);
SetMaxPopCapacity(10, 999);
// CONSTANTS
////normal stuff like poplimt diplomatic things and something which ends with ;
//PLAYERS
END_INITIALIZATION
// ////////////////////////////////////////////////////////////
// //RUNS AFTER CINEMATIC, BEFORE OBJECTIVES OPEN
// ////////////////////////////////////////////////////////////
To block other epochs:
Code: Select all
//NO RESEARCH. NO GOING TO EPOCH 2
SetMaxEpochUI(1);
SetTechEnabled(HUMAN_PLAYER, "Main2", false);
For example if you want to block epoch 2 for all players, add after "SetMaxPopCapacity(10, 999);":
Code: Select all
SetMaxEpochUI(1);
SetTechEnabled(1, "Main2", false);
SetTechEnabled(2, "Main2", false);
SetTechEnabled(3, "Main2", false);
SetTechEnabled(4, "Main2", false);
SetTechEnabled(5, "Main2", false);
SetTechEnabled(6, "Main2", false);
SetTechEnabled(7, "Main2", false);
SetTechEnabled(8, "Main2", false);
SetTechEnabled(9, "Main2", false);
SetTechEnabled(10, "Main2", false);
Code: Select all
RULES FOR WORLD
SCENARIO
END_SCENARIO
////////////////////////////////////////////////////////////
// DEFINITIONS
////////////////////////////////////////////////////////////
DEFINITIONS
// OBJECTIVES
//PLAYERS
END_DEFINITIONS
////////////////////////////////////////////////////////////
// INITIALIZATION
////////////////////////////////////////////////////////////
INITIALIZATION
SetMaxPopCapacity(1, 999);
SetMaxPopCapacity(2, 999);
SetMaxPopCapacity(3, 999);
SetMaxPopCapacity(4, 999);
SetMaxPopCapacity(5, 999);
SetMaxPopCapacity(6, 999);
SetMaxPopCapacity(7, 999);
SetMaxPopCapacity(8, 999);
SetMaxPopCapacity(9, 999);
SetMaxPopCapacity(10, 999);
SetMaxEpochUI(1);
SetTechEnabled(1, "Main2", false);
SetTechEnabled(2, "Main2", false);
SetTechEnabled(3, "Main2", false);
SetTechEnabled(4, "Main2", false);
SetTechEnabled(5, "Main2", false);
SetTechEnabled(6, "Main2", false);
SetTechEnabled(7, "Main2", false);
SetTechEnabled(8, "Main2", false);
SetTechEnabled(9, "Main2", false);
SetTechEnabled(10, "Main2", false);
// CONSTANTS
////normal stuff like poplimt diplomatic things and something which ends with ;
//PLAYERS
END_INITIALIZATION
// ////////////////////////////////////////////////////////////
// //RUNS AFTER CINEMATIC, BEFORE OBJECTIVES OPEN
// ////////////////////////////////////////////////////////////
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Re: Map Editor - population limit
thx a lot, i'll try to make it
Added after 1 hour 33 minutes 45 seconds:
i did it anyway how can i set CPU level (easy, normal, hard, very hard) and how can i set an explored map? (map explored with only the fog of war)
Is there a complete list of these settings?
Added after 8 minutes 57 seconds:
i just want to have on my hands the possibility to set this scenario like a classic game (changing population limit, epoch limit, CPU level, map...) cuz there isn't this possibility in the map editor :'(
Added after 1 hour 33 minutes 45 seconds:
i did it anyway how can i set CPU level (easy, normal, hard, very hard) and how can i set an explored map? (map explored with only the fog of war)
Is there a complete list of these settings?
Added after 8 minutes 57 seconds:
i just want to have on my hands the possibility to set this scenario like a classic game (changing population limit, epoch limit, CPU level, map...) cuz there isn't this possibility in the map editor :'(
- Dr.MonaLisa
- High Representative
- Posts: 8715
- Joined: 17 Jun 2010, 11:21
- Location: Poland
- Has thanked: 49 times
- Been thanked: 109 times
Re: Map Editor - population limit
Did you read the "EE2 SCRIPTING.doc" document? Was there any function that could fit your needs? If yes, please provide the code you used, so I can see if it was correct.
For explored map I would use:
It will disable the fog of war (revealed map) and re-enable it, but all items will remain explored.
For explored map I would use:
Code: Select all
ToggleFogOfWar(false);
ToggleFogOfWar(true);
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Re: Map Editor - population limit
Yeah i found the code for the fog of war, i found so many codes but not for the CPU level... :'( i can only set the attack priority for a determinated cpu player but i can't set his power level
- Dr.MonaLisa
- High Representative
- Posts: 8715
- Joined: 17 Jun 2010, 11:21
- Location: Poland
- Has thanked: 49 times
- Been thanked: 109 times
Re: Map Editor - population limit
AI_SetAttackFactor, AI_SetBuildTimeFactor, AI_SetBuildCostFactor do the same thing as AI levels in EE2. Just need to find % number in AI level description and set the same.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains