MantisBT - VCMI |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0002459 | VCMI | Other | public | 2016-08-19 20:27 | 2016-09-16 03:20 |
|
Reporter | SXX | |
Assigned To | SXX | |
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | 0.98g | |
Target Version | | Fixed in Version | 0.99 | |
|
Summary | 0002459: Desync found! - Work toward full sync of save games |
Description | At moment after week with memcheck we fixed all uninitialized value reports that related to serializer as well as some leaks. End goal is to make sure save games are in sync between client and server.
Currently we found few important desync points:
CGHeroInstance::SecondarySkillsInfo::rand. First one occur probably since there might be some not initialized heroes on map and so we just set same initial seed for SecondarySkillsInfo rand.
Another one is CGameState::rand. First issue here is at least:
CGameHandler::init. There is code of Beegee that randomize server-side gamestate. Though even with that commented server heavily use rand from GS and client doesn't so it's not easy to fix.
Last one is static "CGObelisk::visited;" in CMap serialize even on maps that don't have obelisks. Though I didn't have chance to investigate this one since. |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | parent of | 0002383 | closed | SXX | AI infinitely loops with this save - secSkill desync | parent of | 0002460 | closed | SXX | CGameHandler::setFormation need proper netpack with applyGs | parent of | 0002462 | closed | SXX | PlayerState::daysWithoutCastle desync due to CGameHandler code | parent of | 0002463 | resolved | SXX | CGameHandler::levelUpHero desync SecondarySkillsInfo RNG | parent of | 0002464 | closed | SXX | NewStructures::applyCl desync after town appearance changed | related to | 0002168 | closed | SXX | Terra incognito |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-08-19 20:27 | SXX | New Issue | |
2016-08-19 20:27 | SXX | Status | new => assigned |
2016-08-19 20:27 | SXX | Assigned To | => SXX |
2016-08-19 20:27 | SXX | Relationship added | related to 0002383 |
2016-08-19 20:44 | SXX | Relationship deleted | related to 0002383 |
2016-08-19 20:44 | SXX | Relationship added | parent of 0002383 |
2016-08-19 20:59 | SXX | Note Added: 0006574 | |
2016-08-23 03:39 | SXX | Relationship added | parent of 0002460 |
2016-08-23 04:19 | SXX | Relationship added | parent of 0002462 |
2016-08-23 05:00 | SXX | Relationship added | related to 0002072 |
2016-08-23 05:00 | SXX | Relationship deleted | related to 0002072 |
2016-08-23 05:10 | SXX | Relationship added | parent of 0002089 |
2016-08-23 22:01 | SXX | Relationship added | parent of 0002463 |
2016-08-24 00:18 | SXX | Summary | Desync found! - Works towards full sync of save games => Desync found! - Work toward full sync of save games |
2016-08-24 00:48 | SXX | Relationship added | parent of 0002464 |
2016-09-07 22:22 | SXX | Note Added: 0006630 | |
2016-09-11 10:11 | SXX | Relationship deleted | parent of 0002089 |
2016-09-12 00:42 | SXX | Note Added: 0006648 | |
2016-09-12 00:42 | SXX | Status | assigned => resolved |
2016-09-12 00:42 | SXX | Fixed in Version | => 0.99 |
2016-09-12 00:42 | SXX | Resolution | open => fixed |
2016-09-16 03:20 | SXX | Relationship added | related to 0002168 |