Page 1 of 1

Cease Fire Time How to change?

Posted: 20 Mar 2019, 23:46
by NoRtyByN8uRe
theres a 2 hour cease fire option, and a 24 hour cease fire option.


for the type of simulation i'm running, i'd need something like a 4 ,8,12,16,20 hour option for cease fire.

is there a way for me to do that?

Thanks

Added after 50 minutes 29 seconds:
ooops i think i should have posted this in the mod edits forum, my apologies

Re: Cease Fire Time How to change?

Posted: 21 Mar 2019, 01:50
by Dr.MonaLisa
Hi. I moved your topic, so no worries.

Unfortunately, ceasefire time is hardcoded. It's impossible to edit time values / add new once by editing game files.
In Unofficial Patch I added new ceasefire options by assembly, however, at that time I didn't have those edits well-documented.

I only found the following notes, however it most likely will be useless:

Code: Select all

EE2:
Defintions start at (3 x 0 before) then 2 breaks:
00FA6281

00FA6281 = 1200
00FA6285 = 1800
00FA6289 = 2700
00FA628D = 3600
00FA6291 = 7200
00FA6295 = 86400

Orginal ceasefire function: 005A7D90
Orginal pop function: 005A7DE0
Function ceasefire starts at: JMP 00FA629B
Function population starts at: JMP 00FA632D

AOS:
Defintions start at (3 x 0 before) then 2 breaks:
0215127C
0215127C = 1200
02151280 = 1800
02151284 = 2700
02151288 = 3600
0215128C = 7200
02151290 = 86400

Orginal ceasefire function: 005D1030
Orginal pop function: 005D1080
Function ceasefire starts at: JMP 02151296
Function population starts at: JMP 02151328

EE2:
<$"EE2-156000-ceasefire2".0BA629B>

@L00000001:
	MOV EAX,DWORD PTR DS:[ECX+34]
	CMP EAX,10
	JA SHORT @L00000006
	JMP DWORD PTR DS:[EAX*4+@L00000007]

@L00000002:
	FLD DWORD PTR DS:[$$745620]
	RETN

@L00000003:
	FLD DWORD PTR DS:[$$74561C]
	RETN

@L00000004:
	FLD DWORD PTR DS:[$$745618]
	RETN

@L00000005:
	FLD DWORD PTR DS:[$$745614]
	RETN
	
@New20:
	FLD DWORD PTR DS:[00FA6281]
	RETN
@New30:
	FLD DWORD PTR DS:[00FA6285]
	RETN
@New45:
	FLD DWORD PTR DS:[00FA6289]
	RETN
@New60:
	FLD DWORD PTR DS:[00FA628D]
	RETN
@New120:
	FLD DWORD PTR DS:[00FA6291]
	RETN
@New24:
	FLD DWORD PTR DS:[00FA6295]
	RETN

@L00000006:
	FLD DWORD PTR DS:[$$74038C]
	RETN
	MOV EDI,EDI

@L00000007:
	DD @L00000006
	DD @L00000002
	DD @L00000003
	DD @L00000004
	DD @L00000005
	DD @New20
	DD @New30
	DD @New45
	DD @New60
	DD @New120
	DD @New24
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP

@L00000008:
	MOV EAX,DWORD PTR DS:[ECX+38]
	CMP EAX,14
	JA SHORT @L00000014
	JMP DWORD PTR DS:[EAX*4+@L00000015]

@L00000009:
	MOV EAX,14
	RETN

@L00000010:
	MOV EAX,1E
	RETN

@L00000011:
	MOV EAX,28
	RETN

@L00000012:
	MOV EAX,32
	RETN

@L00000013:
	MOV EAX,3C
	RETN
	
@PopNew70:
	MOV EAX,46
	RETN

@PopNew80:
	MOV EAX,50
	RETN

@PopNew90:
	MOV EAX,5A
	RETN

@PopNew100:
	MOV EAX,64
	RETN
	
@PopNew150:
	MOV EAX,96
	RETN
	
@PopNew200:
	MOV EAX,C8
	RETN
	
@PopNew250:
	MOV EAX,FA
	RETN
	
@PopNew300:
	MOV EAX,12C
	RETN
	
@PopNew500:
	MOV EAX,1F4
	RETN
	
@PopNew1000:
	MOV EAX,3E8
	RETN

@L00000014:
	XOR EAX,EAX
	RETN

@L00000015:
	DD @L00000009
	DD @L00000010
	DD @L00000011
	DD @L00000012
	DD @L00000013
	DD @PopNew70
	DD @PopNew80
	DD @PopNew90
	DD @PopNew100
	DD @PopNew150
	DD @PopNew200
	DD @PopNew250
	DD @PopNew300
	DD @PopNew500
	DD @PopNew1000
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP



	
	
AOS (wront init address):
<$"EE2-156000-ceasefire2".0BA629B>
@L00000001:
	MOV EAX,DWORD PTR DS:[ECX+3C]
	CMP EAX,10
	JA SHORT @L00000006
	JMP DWORD PTR DS:[EAX*4+@L00000007]

@L00000002:
	FLD DWORD PTR DS:[0BD78AC]
	RETN

@L00000003:
	FLD DWORD PTR DS:[0BD78A8]
	RETN

@L00000004:
	FLD DWORD PTR DS:[0BD78A4]
	RETN

@L00000005:
	FLD DWORD PTR DS:[0BD78A0]
	RETN
	
@New20:
	FLD DWORD PTR DS:[0215127C]
	RETN
@New30:
	FLD DWORD PTR DS:[02151280]
	RETN
@New45:
	FLD DWORD PTR DS:[02151284]
	RETN
@New60:
	FLD DWORD PTR DS:[02151288]
	RETN
@New120:
	FLD DWORD PTR DS:[0215128C]
	RETN
@New24:
	FLD DWORD PTR DS:[02151290]
	RETN

@L00000006:
	FLD DWORD PTR DS:[0BD172C]
	RETN
	MOV EDI,EDI

@L00000007:
	DD @L00000006
	DD @L00000002
	DD @L00000003
	DD @L00000004
	DD @L00000005
	DD @New20
	DD @New30
	DD @New45
	DD @New60
	DD @New120
	DD @New24
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP

@L00000008:
	MOV EAX,DWORD PTR DS:[ECX+40]
	CMP EAX,14
	JA SHORT @L00000014
	JMP DWORD PTR DS:[EAX*4+@L00000015]

@L00000009:
	MOV EAX,14
	RETN

@L00000010:
	MOV EAX,1E
	RETN

@L00000011:
	MOV EAX,28
	RETN

@L00000012:
	MOV EAX,32
	RETN

@L00000013:
	MOV EAX,3C
	RETN
	
@PopNew70:
	MOV EAX,46
	RETN

@PopNew80:
	MOV EAX,50
	RETN

@PopNew90:
	MOV EAX,5A
	RETN

@PopNew100:
	MOV EAX,64
	RETN
	
@PopNew150:
	MOV EAX,96
	RETN
	
@PopNew200:
	MOV EAX,C8
	RETN
	
@PopNew250:
	MOV EAX,FA
	RETN
	
@PopNew300:
	MOV EAX,12C
	RETN
	
@PopNew500:
	MOV EAX,1F4
	RETN
	
@PopNew1000:
	MOV EAX,3E8
	RETN

@L00000014:
	XOR EAX,EAX
	RETN

@L00000015:
	DD @L00000009
	DD @L00000010
	DD @L00000011
	DD @L00000012
	DD @L00000013
	DD @PopNew70
	DD @PopNew80
	DD @PopNew90
	DD @PopNew100
	DD @PopNew150
	DD @PopNew200
	DD @PopNew250
	DD @PopNew300
	DD @PopNew500
	DD @PopNew1000
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
	NOP
I won't change those settings with UP1.5 updates, but maybe you could replace one of the options yourself, by using CheatEngine after game start?
For example, the time (in seconds) for EE2 is defined at address: "00FA6295" = 86400 seconds = 24 hours. You could start CheatEngine program, open EE2 process (make sure you open the game process, not the Launcher) and replace 86400 to any value you like. Text entry should still show 24 hours, but the real ceasefire time would be different.

Re: Cease Fire Time How to change?

Posted: 21 Mar 2019, 03:52
by NoRtyByN8uRe
wow, perfect, that is the exact information i'm looking for. thanks for the quick reply and i love the 1.5 patch...

i got into this game back in 2005 when it launched but it was buggy and computer couldnt run the graphics properly... 14 years later im still fascinated by this game and i keep tweaking it to simulate different situations. im in the IT field trying to get into game development and this stuff is amazing to play with

peace

Re: Cease Fire Time How to change?

Posted: 21 Mar 2019, 11:51
by Dr.MonaLisa
I'm glad that it solves your issue.

Please feel free to ask if you have any further questions.