The overlapping, cumulative claim predictor value of the sector must be greater than 10 to see the claim on the map
Threshold value for claim of uninhabited sectors without stations: (contested if more than one empire exceeds this)
Code: Select all
0044742E fcomp ds:[578AA4] // 10.0 -> at 0x1768A4 (00 00 00 00 00 00 24 40)
64-bit = 8 byte = double precision (in little-endian format!) 00 00 00 00 00 00 24 40 = 0x4024000000000000 = 10.0
When changing the threshold also change this mirror code to be on the safe side:
ds:578AE4 // 0x1768E4 (00 00 00 00 00 00 24 40) 10.0
Territorial claim predictor base values & effect radius of surrounding sectors for: (radius works just like the scan values )
Code: Select all
-> Outposts:
004477BC push 3FF00000h // claim predictor base value / sector = +1.0 // at 0x46BBD
004477C7 mov ecx, 1 // effect radius in sectors // at 0x46BC8
-> Starbases:
00447761 push 40240000h // claim predictor base value / sector = +10.0 // at 0x46B62
0044776C mov ecx, 1 // effect radius in sectors // at 0x46B6D
-> Inhabited Major Empire Star Systems:
004475EC push 40240000h // claim predictor base value / sector = +10.0 // at 0x469ED
004475F7 mov ecx, 1 // effect radius in sectors // at 0x469F8
Star systems have a special feature that adds for map row & column +2/-2 (i.e. for four sectors) each the value +1.0 (via fld1):
Code: Select all
row/column distance in sectors:
00447526 sub ecx, 2
0044755D add ecx, 2
00447598 sub ecx, 2
004475D5 add ecx, 2
To disable: (recommended when extending radius of claim predictor values for star systems)
0x46918 change E8 93 63 FF FF -> E9 BF 00 00 00
00447518 E9 BF000000 JMP 4475DC // skip star system extra feature
The claim predictor values (for AI empires) can be displayed via map ai data type A 'Border Influence': viewtopic.php?f=221&t=2401#p34204
Modding Example: (no matter if star system, outpost or starbase)
threshold (set claim if predictor greater than) = 11.0
claim predictor base value / sector = 6.0
effect radius in sectors = 2
-> claim radius of 1 surrounding sector, since 6*2 = 12 is greater than 11 (even without other own nearby objects)
Note; the claim predictor base values are 4 bytes parts of 8 bytes floats (in little-endian format) and they are additive!
Examples for parts of hex code to change the claim predictor base values:
2E 40 -> 15.0
24 40 -> 10.0
22 40 -> 9.0
20 40 -> 8.0
1C 40 -> 7.0
18 40 -> 6.0
14 40 -> 5.0
10 40 -> 4.0
08 40 -> 3.0
00 40 -> 2.0
F0 3F -> 1.0
Extending the sphere of territorial claims has been requested, mainly due to the intercept option being almost useless on larger maps.
Using this information, even a Pakled now should be able to predict and achieve any desired effect.