-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WarAPI malfunctions during server restarts #92
Comments
thank you kastow |
Looking at the data shared by Kastow, I suggest two ways developers can assert that the data is "ok": Solution 1)Since all the Issue: In the unlikly event the factions result in turning every structure in a region 'white' then this will cause a false-positive. Solution 2 now no longer applicable, see later comment.
|
I also think there is a problem with etag, as it seems when this junk/partial data is published the etag is incremented but then when the full correct data is published the etag is not incremented so it takes big delay with empty region data before a new etag is published, eg town lost/taken before that regions data is visible again, ie correct data replaces bad data because update is acknowledged and retrieved due to different etag |
Solution 2 I orignally shared now no longer works, a Server Restart today contained a record for a Salvage Field (ID 20) so Solution 1 is the best bet; if all mapItems are 'NONE' for 'teamId'. {
"mapName": "MooringCountyHex",
"regionId": 7,
"scorchedVictoryTowns": 0,
"mapItems": [{
"teamId": "NONE",
"iconType": 20, // Salvage Field
"x": 0.40027395,
"y": 0.12866499,
"flags": 0
}, {
"teamId": "NONE",
"iconType": 33, // Storage Depot
"x": 0.7069431,
"y": 0.61079615,
"flags": 0
}, {
"teamId": "NONE",
"iconType": 56, // Town Hall
"x": 0.25232536,
"y": 0.7418483,
"flags": 8
}, {
"teamId": "NONE",
"iconType": 56, // Town Hall
"x": 0.47621775,
"y": 0.49626058,
"flags": 8
}, {
"teamId": "NONE",
"iconType": 56, // Town Hall
"x": 0.58230406,
"y": 0.8069701,
"flags": 8
}, {
"teamId": "NONE",
"iconType": 56, // Town Hall
"x": 0.7269787,
"y": 0.6069284,
"flags": 8
}
]
} |
It appears yet again, this can still break, where a Keep disappeared yet other structures such as Safe Houses and Storm Cannons remained, it seems there might not be an elegant -occurance solution to this problem, I will need to have a think on this. {
"statusCode": 200,
"statusMessage": "OK",
"body": {
"regionId": 23,
"scorchedVictoryTowns": 0,
"mapItems": [
{
"teamId": "NONE",
"iconType": 21,
"x": 0.7032851,
"y": 0.5030811,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 20,
"x": 0.6152843,
"y": 0.650545,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 20,
"x": 0.4108844,
"y": 0.5227383,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 20,
"x": 0.4836215,
"y": 0.3893222,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 20,
"x": 0.3335382,
"y": 0.23872396,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 40,
"x": 0.6361567,
"y": 0.7944353,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 40,
"x": 0.6434175,
"y": 0.7992877,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 41,
"x": 0.7730739,
"y": 0.53316474,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 41,
"x": 0.77731854,
"y": 0.52377045,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 41,
"x": 0.63792866,
"y": 0.13176328,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 41,
"x": 0.571578,
"y": 0.46689495,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 38,
"x": 0.36002526,
"y": 0.72508705,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 38,
"x": 0.5650656,
"y": 0.45490628,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 38,
"x": 0.39856812,
"y": 0.23455893,
"flags": 0
},
{
"teamId": "COLONIALS",
"iconType": 39,
"x": 0.5644424,
"y": 0.58112377,
"flags": 0
},
{
"teamId": "COLONIALS",
"iconType": 59,
"x": 0.82182956,
"y": 0.4969682,
"flags": 0
},
{
"teamId": "COLONIALS",
"iconType": 59,
"x": 0.81452525,
"y": 0.5095244,
"flags": 0
},
{
"teamId": "COLONIALS",
"iconType": 59,
"x": 0.8036433,
"y": 0.5055502,
"flags": 0
},
{
"teamId": "COLONIALS",
"iconType": 59,
"x": 0.5514574,
"y": 0.55148053,
"flags": 0
},
{
"teamId": "COLONIALS",
"iconType": 59,
"x": 0.60176337,
"y": 0.5426171,
"flags": 0
},
{
"teamId": "COLONIALS",
"iconType": 59,
"x": 0.51684296,
"y": 0.49937055,
"flags": 0
},
{
"teamId": "COLONIALS",
"iconType": 34,
"x": 0.548507,
"y": 0.56823903,
"flags": 0
},
{
"teamId": "WARDENS",
"iconType": 33,
"x": 0.4383599,
"y": 0.21235,
"flags": 0
},
{
"teamId": "COLONIALS",
"iconType": 35,
"x": 0.5737536,
"y": 0.5096398,
"flags": 0
},
{
"teamId": "COLONIALS",
"iconType": 35,
"x": 0.80386156,
"y": 0.60538495,
"flags": 0
},
{
"teamId": "COLONIALS",
"iconType": 35,
"x": 0.5182901,
"y": 0.5974323,
"flags": 0
},
{
"teamId": "COLONIALS",
"iconType": 52,
"x": 0.55002874,
"y": 0.60511833,
"flags": 0
},
{
"teamId": "COLONIALS",
"iconType": 53,
"x": 0.5349655,
"y": 0.5896058,
"flags": 0
},
{
"teamId": "COLONIALS",
"iconType": 56,
"x": 0.3710288,
"y": 0.70452744,
"flags": 8
},
{
"teamId": "WARDENS",
"iconType": 57,
"x": 0.63115776,
"y": 0.16847809,
"flags": 8
},
{
"teamId": "COLONIALS",
"iconType": 58,
"x": 0.80662173,
"y": 0.5581778,
"flags": 8
},
{
"teamId": "COLONIALS",
"iconType": 56,
"x": 0.6334101,
"y": 0.8071055,
"flags": 8
},
{
"teamId": "COLONIALS",
"iconType": 58,
"x": 0.54355395,
"y": 0.52821034,
"flags": 41
},
{
"teamId": "WARDENS",
"iconType": 57,
"x": 0.42027625,
"y": 0.20828061,
"flags": 8
},
{
"teamId": "WARDENS",
"iconType": 45,
"x": 0.6668634,
"y": 0.3026566,
"flags": 8
},
{
"teamId": "WARDENS",
"iconType": 46,
"x": 0.33172438,
"y": 0.295017,
"flags": 8
},
{
"teamId": "WARDENS",
"iconType": 46,
"x": 0.23364201,
"y": 0.516728,
"flags": 8
},
{
"teamId": "COLONIALS",
"iconType": 47,
"x": 0.47152016,
"y": 0.8022752,
"flags": 8
},
{
"teamId": "NONE",
"iconType": 38,
"x": 0.6477494,
"y": 0.1322159,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 46,
"x": 0.38521084,
"y": 0.51096493,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 18,
"x": 0.62182194,
"y": 0.71171963,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 35,
"x": 0.66617066,
"y": 0.13686067,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 35,
"x": 0.4558168,
"y": 0.16799755,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 35,
"x": 0.3734476,
"y": 0.7792203,
"flags": 0
},
{
"teamId": "NONE",
"iconType": 35,
"x": 0.64016753,
"y": 0.864507,
"flags": 0
}
],
"mapTextItems": [],
"lastUpdated": 1653398405778,
"version": 465
},
"headers": {
"date": "Tue, 24 May 2022 13:20:07 GMT",
"content-type": "application/json",
"content-length": "5472",
"connection": "close",
"etag": "\"465\"",
"cache-control": "no-transform, max-age=3",
"vary": "Accept-Encoding"
}
} |
this is still a big issue, trying to detect by all going noot and ignoring , would that not potentially end up ignoring a full resetat the start of war or resistance ? |
i worked out a logic to ignore resets: |
Let us know how it goes. |
Hey I worked out a way to stop this being a problem, now server restarts dont get shown on my map (foxholestats). Basically I dont reset my town cap timers (the counter that i use to calc the shading) unless the sector is taken by another team, just going noot (which happens during reset) doesnt. Since that my map has been fine. |
Sounds like that'd help with timers, but not with detecting a server restart as a whole, but still good to know. |
Below is the output of dynamic data for Fisherman's Row at 14:18 GMT on October 11 2021.
It only outputs several types of objects, and those that it outputs, it does with teamId NONE. This issue occurs every day on most of the region servers, and it greatly hinders the systems that have an event log by producing a spam of false events.
The text was updated successfully, but these errors were encountered: