Commit 307dfcb
committed
diag(logic): Probe the skirmish side and team records
The AI's default team is copied out of the skirmish team records in
Player::initFromDict, and ParseTeamsDataChunk silently drops any team whose
owner is not already a skirmish side. Log every team the .scb offers with the
owner it names and whether that owner matched, report when SkirmishScripts.scb
fails to open at all (which would leave the records empty, since they are
cleared just before the parse), and dump what survived prepareForMP_or_Skirmish.
Also of note: every file in this failure path is identical to the vibecode
port, which does not show the bug - VictoryConditions.cpp, PlayerList.cpp,
Dict.cpp and Scripts.cpp match exactly, DataChunk.cpp reads the same widths,
and SidesList.cpp differs only by a branch that is unreachable for this map.
So this is not a fix that was lost in the re-port.1 parent 1d89b48 commit 307dfcb
1 file changed
Lines changed: 38 additions & 0 deletions
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
464 | 469 | | |
465 | 470 | | |
466 | 471 | | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
467 | 478 | | |
468 | 479 | | |
469 | 480 | | |
| |||
568 | 579 | | |
569 | 580 | | |
570 | 581 | | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
571 | 590 | | |
572 | 591 | | |
573 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
574 | 612 | | |
575 | 613 | | |
576 | 614 | | |
| |||
0 commit comments