Development Diary: EE2, EE2X - Unofficial patch 1.4

ImageImageTalking about Modding for EE2 and EE2 AOS. New maps, patches, programs and Multiplayer scenarios.
Post Reply
User avatar
Dr.MonaLisa
High Representative
Posts: 8697
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Development Diary: EE2, EE2X - Unofficial patch 1.4

Post by Dr.MonaLisa »

Development Diary: EE2, EE2X - Unofficial patch 1.4
by: Leader (Dr Mona Lisa) © All Rights Reserved

If you read this topic, then you probably want to include Empire Earth II and Empire Earth II: The Art of Supremacy - Unofficial Patch 1.4 to the new version of your Empire Earth II Mod.

Chapter 1: Changes in files: EE2.exe and EE2X.exe

1. The version identification has been changed:
a) For Empire Earth II: from "1.2" (or "1.3"), to: "1.4 (2013)".
b) For Empire Earth II: The Art of Supremacy: from "1.0" (or "1.1") to: "1.4".

2. New widescreen screen resolutions:
a) Orginal scren resolutions: 800 x 600, 1024 x 768, 1152 x 864, 1280 x 960, 1280 x 1024, 1600 x 1200.
b) Screen resolutions in Patch 1.4: 800x600, 1024x768, 1366x768, 1600x900, 1280x1024, 1920x1080.
c) Patch 1.4 does not support the following screen resolutions: 1152 x 864, 1280 x 960, 1600 x 1200.
d) The screen resolutions from point "#2 c)" have been replaced with: 1366x768, 1600x900, 1920x1080.
e) It's impossible to add more screen resolutions, that's why I had to replace 3 of the old screen resolutions.

3. Patch 1.4 requires 2 new files which has been added to: .zip archive:
a) For Empire Earth II: zips \ db_140.zip,
b) For Empire Earth II: The Art of Supremacy: zips_ee2x \ EE2X_db_140.zip
c) The new required files are:
- db \ Simulation \ dbresourcelevel4.csv
- db \ UI \ dbwidget_scenedi4.csv
d) The following files are not longer used by game:
- db \ Simulation \ dbresourcelevels.csv
- db \ UI \ dbwidget_scenedit.csv

4. Version 1.4 emulates GameSpy availability server:
a) The following value has been changed: "available.gamespy.com" to: "127.0.0.1"
b) For more information about server emulator, check point "#12 d)"


Chapter 2: Edited files
5. Patch 1.4's texts:
a) The texts have been added to the file:
- zips \ dbtext_cheats.utf8
b) The following text has been added to dbtext_cheats.utf8:

Code: Select all


// for new resource levels:
tx_enum_eResourceLevels_0, """Low"""
tx_enum_eResourceLevels_1, """Defensive"""
tx_enum_eResourceLevels_2, """Standard"""
tx_enum_eResourceLevels_3, """Death Match"""
tx_enum_eResourceLevels_4, """Super Deathmatch (1.4)"""

// for EE2 World Simulator 2013 scenario:
db_cheat_lose_resources,"""EE2 Scenario, created by: DrMonaLisa"""
db_cheat_lose_resources_d,"""%PLAYER% - Population: %POPULATION%. / Buildings: %BUILDINGS%. / Killed units: %UNITSKILLED%. / Dead units: %UNITSDEAD%."""

// for correct display resolution names:
tx_gfxset_displaymode_menu_0,"""• BEST PERFORMANCE.\n• Screen resolution is 800 pixels wide by 600 pixels tall (low resolution), with 32 color bits per pixel."""
tx_gfxset_displaymode_menu_1,"""• BEST PERFORMANCE.\n• Screen resolution is 800 pixels wide by 600 pixels tall (low resolution), with 16 color bits per pixel."""
tx_gfxset_displaymode_menu_2,"""• Screen resolution is 1024 pixels wide by 768 pixels tall, with 32 color bits per pixel. (32 colors = better than 16)."""
tx_gfxset_displaymode_menu_3,"""• Screen resolution is 1024 pixels wide by 768 pixels tall, with 16 color bits per pixel."""
tx_gfxset_displaymode_menu_4,"""• Screen resolution is 1366 pixels wide by 768 pixels tall, with 32 color bits per pixel. (32 colors = better than 16). Resolution has been added by: Leader (Dr.MonaLisa) in unofficial patch 1.4"""
tx_gfxset_displaymode_menu_5,"""• Screen resolution is 1366 pixels wide by 768 pixels tall, with 16 color bits per pixel. Resolution has been added by: Leader (Dr.MonaLisa) in unofficial patch 1.4"""
tx_gfxset_displaymode_menu_6,"""• Screen resolution is 1600 pixels wide by 900 pixels tall, with 32 color bits per pixel. (32 colors = better than 16). Resolution has been added by: Leader (Dr.MonaLisa) in unofficial patch 1.4"""
tx_gfxset_displaymode_menu_7,"""• Screen resolution is 1600 pixels wide by 900 pixels tall, with 16 color bits per pixel. Resolution has been added by: Leader (Dr.MonaLisa) in unofficial patch 1.4"""
tx_gfxset_displaymode_menu_8,"""• Screen resolution is 1280 pixels wide by 1024 pixels tall, with 32 color bits per pixel. (32 colors = better than 16)."""
tx_gfxset_displaymode_menu_9,"""• Screen resolution is 1280 pixels wide by 1024 pixels tall, with 16 color bits per pixel."""
tx_gfxset_displaymode_menu_10,"""• BEST VISUALS.\n• Screen resolution is 1920 pixels wide by 1080 pixels tall (high resolution), with 32 color bits per pixel. (32 colors = better than 16). Resolution has been added by: Leader (Dr.MonaLisa) in unofficial patch 1.4"""
tx_gfxset_displaymode_menu_11,"""• BEST VISUALS.\n• Screen resolution is 1920 pixels wide by 1080 pixels tall (high resolution), with 16 color bits per pixel. Resolution has been added by: Leader (Dr.MonaLisa) in unofficial patch 1.4"""

tx_enum_eDisplayMode_0,"""800 x 600, 32-bit"""
tx_enum_eDisplayMode_1,"""800 x 600, 16-bit"""
tx_enum_eDisplayMode_2,"""1024 x 768, 32-bit"""
tx_enum_eDisplayMode_3,"""1024 x 768, 16-bit"""
tx_enum_eDisplayMode_4,"""1366 x 768, 32-bit"""
tx_enum_eDisplayMode_5,"""1366 x 768, 16-bit"""
tx_enum_eDisplayMode_6,"""1600 x 900, 32-bit"""
tx_enum_eDisplayMode_7,"""1600 x 900, 16-bit"""
tx_enum_eDisplayMode_8,"""1280 x 1024, 32-bit"""
tx_enum_eDisplayMode_9,"""1280 x 1024, 16-bit"""
tx_enum_eDisplayMode_10,"""1920 x 1080, 32-bit"""
tx_enum_eDisplayMode_11,"""1920 x 1080, 16-bit"""

tx_enum_eDisplayResolution_0,"""800 x 600"""
tx_enum_eDisplayResolution_1,"""1024 x 768"""
tx_enum_eDisplayResolution_2,"""1366 x 768"""
tx_enum_eDisplayResolution_3,"""1600 x 900"""
tx_enum_eDisplayResolution_4,"""1280 x 1024"""
tx_enum_eDisplayResolution_5,"""1920 x 1080"""

// for EE2-Patch1.4-gs BOT:
tt_fe_gs_ee2patch1.4,"""%NAME% is an informative and auxiliary BOT powered by Administrator: Dr Mona Lisa. The bot informs players about the newest patch for Empire Earth II (1.4) which has been released in May 2013. To see more information about version 1.4 or available BOT's commands - just send a private message to the BOT or visit 'Help, Questions & Problems' category on this website: http://www.easywinclan.forummotion.com"""

// for maximum population number:
tx_enum_eMaxPopulation_0,"""100"""
tx_enum_eMaxPopulation_1,"""200"""
tx_enum_eMaxPopulation_2,"""400"""
tx_enum_eMaxPopulation_3,"""600"""
tx_enum_eMaxPopulation_4,"""800"""
tx_enum_eMaxPopulation_5,"""1000"""
tx_enum_eMaxPopulation_6,"""1200"""
tx_enum_eMaxPopulation_7,"""1600"""
tx_enum_eMaxPopulation_8,"""2000 (Recommended)"""
tx_enum_eMaxPopulation_9,"""2600 (1.4)"""
tx_enum_eMaxPopulation_10,"""3000 (1.4)"""
tx_enum_eMaxPopulation_11,"""3400 (1.4)"""
tx_enum_eMaxPopulation_12,"""3800 (1.4)"""
tx_enum_eMaxPopulation_13,"""4000 (1.4)"""
tx_enum_eMaxPopulation_14,"""10000 (CB, 1.4)"""

// for Quick Start citizen number:
tx_enum_eQuickStartCit_0,"""5"""
tx_enum_eQuickStartCit_1,"""10 (Recommended)"""
tx_enum_eQuickStartCit_2,"""15"""
tx_enum_eQuickStartCit_3,"""20"""
tx_enum_eQuickStartCit_4,"""30 (1.4)"""
tx_enum_eQuickStartCit_5,"""50 (1.4)"""
tx_enum_eQuickStartCit_6,"""75 (1.4)"""
tx_enum_eQuickStartCit_7,"""100 (1.4)"""
6. Patch's 1.4 "Super Deathmatch":
a) The file: "dbresourcelevel4.csv", has modified values of "dbresourcelevels.csv" file:

Code: Select all

// NAME,Epoch,Level,FOOD,WOOD,STONE,GOLD,TIN,IRON,SALTPETER,OIL,URANIUM,TECHPTS
Low_1,1,Low,200,200,100,100,0,0,0,0,0,0
Low_4,4,Low,200,200,100,100,0,0,0,0,0,0
Low_7,7,Low,200,200,100,100,0,0,0,0,0,0
Low_10,10,Low,200,200,100,100,0,0,0,0,0,0
Low_13,13,Low,200,200,100,100,0,0,0,0,0,0
Defensive_1,1,Defensive,200,200,500,100,0,0,0,0,0,0
Defensive_4,4,Defensive,200,200,500,100,0,0,0,0,0,0
Defensive_7,7,Defensive,200,200,500,100,0,0,0,0,0,0
Defensive_10,10,Defensive,200,200,500,100,0,0,0,0,0,0
Defensive_13,13,Defensive,200,200,500,100,0,0,0,0,0,0
Standard_1,1,Standard,400,400,400,400,200,200,200,200,200,0
Standard_4,4,Standard,400,400,400,400,200,200,200,200,200,0
Standard_7,7,Standard,400,400,400,400,200,200,200,200,200,0
Standard_10,10,Standard,400,400,400,400,200,200,200,200,200,0
Standard_13,13,Standard,400,400,400,400,200,200,200,200,200,0
High_1,1,High,15000,15000,10000,10000,7500,7500,7500,7500,7500,16
High_4,4,High,15000,15000,10000,10000,7500,7500,7500,7500,7500,20
High_7,7,High,15000,15000,10000,10000,7500,7500,7500,7500,7500,24
High_10,10,High,15000,15000,10000,10000,7500,7500,7500,7500,7500,28
High_13,13,High,15000,15000,10000,10000,7500,7500,7500,7500,7500,32
DeathMatch_1,1,DeathMatch,99999,99999,99999,99999,99999,99999,99999,99999,99999,99999
DeathMatch_4,4,DeathMatch,99999,99999,99999,99999,99999,99999,99999,99999,99999,99999
DeathMatch_7,7,DeathMatch,99999,99999,99999,99999,99999,99999,99999,99999,99999,99999
DeathMatch_10,10,DeathMatch,99999,99999,99999,99999,99999,99999,99999,99999,99999,99999
DeathMatch_13,13,DeathMatch,99999,99999,99999,99999,99999,99999,99999,99999,99999,99999
7. Patch's 1.4 "Pro Map Maker":
a) The file: "dbwidget_scenedi4.csv", has modified values of "dbwidget_scenedit.csv" file.
b) This file has been modified for "Pro Map Maker" mod, usefull Patch 1.4's feature for map creators.


8. File "DbFrontEndDefs.h"
a) For Empire Earth II: This file has been replaced with the orginal file: "DbFrontEndDefs.h" in: zips \ hdrs.zip \ DbHdrs
b) For Empire Earth II: The Art of Supremacy, the file "DbFrontEndDefs.h" has been just added to: zips_ee2x folder.
c) I tried to put "DbFrontEndDefs.h" for Empire Earth II to: zips folder, it worked for Empire Earth II, but expansion pack (EE2X) was crashing on start. That's why the file has been added into hdrs.zip.
d) EE2X nor EE2 didn't crash when "DbFrontEndDefs.h" has been added to zips_ee2x folder, that's why I didn't replace the orginal: "EE2X_hdrs.zip" archive.
e) The following lines have been changed / added to the file "DbFrontEndDefs.h" for (It's same for EE2 and EE2X):

Code: Select all


// for population:
ENUM eMaxPopulation{
   kMaxPopulation_p100 = 100,
   kMaxPopulation_p200 = 200,
   kMaxPopulation_p400 = 400,
   kMaxPopulation_p600 = 600,
   kMaxPopulation_p800 = 800,
   kMaxPopulation_p1000 = 1000,
   kMaxPopulation_p1200 = 1200,
   kMaxPopulation_p1600 = 1600,
   kMaxPopulation_p2000 = 2000,
        kMaxPopulation_p2600 = 2600,
   kMaxPopulation_p3000 = 3000,
   kMaxPopulation_p3400 = 3400,
   kMaxPopulation_p3800 = 3800,
   kMaxPopulation_p4000 = 4000,
        kMaxPopulation_p10000 = 10000,
};
// for more citizen:
ENUM eQuickStartCit{
   kQuickStartCit_n5   = 5,
   kQuickStartCit_n10   = 10,
   kQuickStartCit_n15   = 15,
   kQuickStartCit_n20   = 20,
   kQuickStartCit_n30   = 30,
        kQuickStartCit_n50   = 50,
        kQuickStartCit_n75   = 75,
        kQuickStartCit_n100   = 100,
};

9. Unnecessary graphic files:
a) File "GameSpy_logo.tga" has been added to: zips folder. It changes the old GameSpy logo with "ver. 1.4" logo in game.
b) "splash.bmp" and "splash_EE2X.bmp" (new splash screen images).

10. Unnecessary configuration files:
a) myconfig.cfg
b) myconfig_EE2X.cfg

11. Unnecessary Maps and Multiplayer scenarios folders:
a) maps
b) savegame_MP

Chapter 3: New launcher files
12.
a) The following files have been added to the main Empire Earth II directory:
- EE2-v1.4.exe
- EE2-Windows8-by.DrMonaLisa.bat
- EE2X-v1.4.exe
- EE2X-Windows8-by.DrMonaLisa.bat
- gs_log.log
- gs_login_server.db3
- gs_server.cfg
- libmysql.dll
- monaserver-ee2.exe
- monaserver-ee2.vbs
- ~eW`~FORUM Empire Earth II.url
- Unofficial Patch 1.4 - Help & Support - Empire Earth II.url
b) EE2-v1.4.exe (and EE2X-v1.4.exe):
- Detects if your system is Windows 8. If it's Windows 8 it starts Windows 8 FIX file, which allows you to play.
- Detects if process: "monaserver-ee2.exe" is running in your system. If it's not it starts a file: "monaserver-ee2.vbs".
- Starts EE2.exe or EE2X.exe
c) "monaserver-ee2.vbs":
- Ask for Administrator rights to start process: "monaserver-ee2.exe" as invisible process in your system.
d) "monaserver-ee2.exe": Emulates GameSpy availability server, so you can log in to the Chat Lobby. Unfortunately you can not host nor join the games.

Chapter 4: Source code of EE2-v1.4.exe and EE2X-v1.4.exe // just information, you don't need to know about it if you want to include the patch to your mod
13. Files: EE2-v1.4.exe and EE2X-v1.4.exe have been compiled from .bat to .exe
14. The source code of EE2-v1.4.exe:

Code: Select all

:Start
ver | find /i "version 6.2." > nul
if %errorlevel%==0 start EE2-Windows8-by.DrMonaLisa.bat
tasklist /FI "IMAGENAME eq monaserver-ee2.exe" 2>NUL | find /I /N "monaserver-ee2.exe">NUL
if "%ERRORLEVEL%"=="0" goto Nope
cd /d %~dp0 
monaserver-ee2.vbs
start EE2.exe
CLS
exit

:Nope
cd /d %~dp0 
start EE2.exe
15. The source code of EE2X-v1.4.exe:

Code: Select all

:Start
ver | find /i "version 6.2." > nul
if %errorlevel%==0 start EE2X-Windows8-by.DrMonaLisa.bat
tasklist /FI "IMAGENAME eq monaserver-ee2.exe" 2>NUL | find /I /N "monaserver-ee2.exe">NUL
if "%ERRORLEVEL%"=="0" goto Nope
cd /d %~dp0 
monaserver-ee2.vbs
start EE2X.exe
CLS
exit

:Nope
cd /d %~dp0 
start EE2X.exe
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains

User avatar
RGV1
Posts: 115
Joined: 13 Aug 2011, 11:22
Has thanked: 2 times
Been thanked: 9 times

Re: Development Diary: EE2, EE2X - Unofficial patch 1.4

Post by RGV1 »

Thank you very much for open source.
Use for my mod.
User avatar
Dr.MonaLisa
High Representative
Posts: 8697
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Development Diary: EE2, EE2X - Unofficial patch 1.4

Post by Dr.MonaLisa »

RGV1 wrote:Thank you very much for open source.
Use for my mod.
Please remember to ask your mod users (on EE4 mod forum), if they don't use a screen resolution from point: "#2 c)".
If you need I can re-make EE2X.exe file to screen resolutions which EE4-Mod users need.
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Post Reply

Return to “EE2 Files, Modding, Maps, Scenarios, Scripting, Testing, etc.”