while testing with Chris play MUM in MP we ran into a repeatable sync error.
this is a very strange error and took awhile for us to narrow down the triggers
this is what triggers it;
power up "Shipbuilding, builds special ships" structure
place ship in build queue
on turn process sync error
Code: Select all
Version Under Test: 72
File: ..\..\source\comms\hartbeat.c, Line: 118, Synchroniztion Error on turn 1 with my empire 1 and player Empire 0:
My data:
seed = 360918191; crcTF = 59564; crcShip = 18710; crcMilSector = 56146; crcSolarBld = 1066, crcDiplo = 0;
player data: seed = 360918191; crcTF = 59564; crcShip = 18710; crcMilSector = 56146; crcSolarBld = 56900, crcDiplo = 0;
Initialize State: 31
Player Empire: 1 Starting Seed: 1651087153
Galaxy shape: 3 Galaxy Size: 2
no crash; mod has build queue
UDM
no crash; mod has build queue
nbu
no crash; mod has build queue, % tech bonus
UCW
crash; mod has build queue, % tech bonus, extended tech levels, Extending Edifbnft.bst (50 types)
MUM
crash; mod has build queue, % tech bonus, extended tech levels, Extending Edifbnft.bst (50 types)
Edit; tested on MUM before build queue was added and got same crash turn 1
after not getting anywhere I nop the sub that calls sync error at 50AD74 and tested. turn continued without crash for a few turns (built 3-4 ships myself)
I suspect I am missing a calculation that uses x10 (tech levels) when in MP game for joining player? but single player value has been found?
Edit 2; I removed this patch for Extending Edifbnft.bst no crash and structure still give proper bonus. I am still using the edited edifbnft.bst so some bonuses do not display in game and doubt if they work (not tested) so getting closer
also for some reason I think this might be an edited code sct gave me to turn on % ship industry local?
so will look at issue more tomorrow.
Code: Select all
NAME: Extending Edifbnft.bst (new building types/bonuses)
AUTHOR: Spocks-cuddly-tribble
DESC: this patch Extending Edifbnft.bst (new building types/bonuses)
DESC: patch file name: Extending_Edifbnft_bst.patch
URL: https://www.armadafleetcommand.com/onscreen/botf/viewtopic.php?f=265&t=2317#p32866
TAG: mirror universe patch
# >> = vanilla/original value
# << = new value
>> 0x0004fbdc 8b 04 85 60 42 5b 00 01 d0 5a c3 00
>> 0x0003e5b4 8a 44 02
>> 0x0003e5b8 25 ff 00 00 00 66 8b 94 45 86 00
>> 0x0003e5c4 00 31 c0 8a 45 72 8b ac 24 74 01 00 00 8b 04 85 6c fc 58 00 01 e8
>> 0x0003e5db 8c 24 68 01 00 00 81 e2 ff ff 00 00
>> 0x00043afa 66 8b 58 10 66 8b 51 50 01 d3
>> 0x00043b05 89 58 10
>> 0x00043b14 54 24 2c 66 8b 70 04 66 8b 92 98
>> 0x00043b20 00 00 01 d6 66 89 70 04 8b 54 24 2c
>> 0x00043b32 92
>> 0x0018da6e 00
>> 0x0018da70 04
>> 0x0018da72 00
>> 0x0018da74 08 00 00
>> 0x0018da78 0c
>> 0x0018da7a 00
>> 0x0018da7c 24
>> 0x0018da7e 00
>> 0x0018da80 28
>> 0x0018da82 00
>> 0x0018da84 2c
>> 0x0018da86 00
>> 0x0018da88 18
>> 0x0018da8a 00
>> 0x0018da8c 1c 00 00 00 20 00 00 00 38
>> 0x0018da96 00
>> 0x0018da98 40
>> 0x0018da9a 00
>> 0x0018da9c 44
>> 0x0018da9e 00
>> 0x0018daa0 10
>> 0x0018daa2 00
>> 0x0018daa4 14
>> 0x0018daa6 00
>> 0x0018daa8 48
>> 0x0018daaa 00
>> 0x0018daac 58
>> 0x0018daae 00
>> 0x0018dab0 54
>> 0x0018dab2 00
>> 0x0018dab4 5c 00 00
>> 0x0018dab8 30
>> 0x0018daba 00
>> 0x0018dabc 34
>> 0x0018dabe 00
>> 0x0018dac0 b8
>> 0x0018dac2 00 00 60
>> 0x0018dac6 00
>> 0x0018dac8 64 00 00
>> 0x0018dacc 68
>> 0x0018dace 00
>> 0x0018dad0 6c
>> 0x0018dad2 00 00 70 00 00 00 4c 00 00 00 74 00 00 00 78 00 00 00 b0 00 00 00 7c 00 00 00 ac 00 00 00 80 00 00 00 3c 00 00 00 50 00 00 00 8c 00 00 00 94 00 00 00 a4 00 00 00 98 00 00 00 88 00 00 00 90 00 00 00 a0 00 00 00 b4 00 00 00 bc 00 00 00
<< 0x0004fbdc c1 e0 02 03 02 8b 04 10 03 c2 5a c3
<< 0x0003e5b4 8d 54 10
<< 0x0003e5b8 0f b6 45 72 66 8b 04 45 6c fc 58
<< 0x0003e5c4 80 fc 01 7f 23 7c 08 80 7a 34 03 75 1b b4 00 03 84 24 74 01 00 00
<< 0x0003e5db 12 66 8b 94 55 86 00 00 00 0f b7 0e
<< 0x00043afa 8b 51 50 66 01 50 10 8b 51 54
<< 0x00043b05 01 50 12
<< 0x00043b14 51 58 66 01 50 14 8b b1 98 00 00
<< 0x00043b20 66 01 70 04 8b 51 30 66 01 50 06 90
<< 0x00043b32 91
<< 0x0018da6e 04
<< 0x0018da70 08
<< 0x0018da72 0c
<< 0x0018da74 ff 02 28
<< 0x0018da78 2c
<< 0x0018da7a 18
<< 0x0018da7c 1c
<< 0x0018da7e 20
<< 0x0018da80 38
<< 0x0018da82 40
<< 0x0018da84 44
<< 0x0018da86 10
<< 0x0018da88 14
<< 0x0018da8a 48
<< 0x0018da8c ff 02 ff 02 ff 02 ff 02 8c
<< 0x0018da96 b8
<< 0x0018da98 60
<< 0x0018da9a 64
<< 0x0018da9c 68
<< 0x0018da9e 6c
<< 0x0018daa0 70
<< 0x0018daa2 4c
<< 0x0018daa4 74
<< 0x0018daa6 78
<< 0x0018daa8 b0
<< 0x0018daaa 7c
<< 0x0018daac ac
<< 0x0018daae 80
<< 0x0018dab0 3c
<< 0x0018dab2 50
<< 0x0018dab4 ff 02 94
<< 0x0018dab8 a4
<< 0x0018daba 98
<< 0x0018dabc 88
<< 0x0018dabe 90
<< 0x0018dac0 a0
<< 0x0018dac2 a8 01 bc
<< 0x0018dac6 a8
<< 0x0018dac8 14 01 5c
<< 0x0018dacc 54
<< 0x0018dace 58
<< 0x0018dad0 30
<< 0x0018dad2 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02 ff 02
this might be a tough one to find