A sample would be quite helpful. Someone wants to share?
- 1
- 2Page 2 of 2
-
-
Another look at the battle report:
Conversion to Weapons:120% Shield:110% Defense:100% is straightforward for a single attacker. But how does it look for an alliance attack? AFAIR we can have something like Weapons:133% Shield:128% Defense:104% there?
-
no - for an aa the research values from the starting player is used.
-
Can someone please help me. What is the English equivalent of 'Aus den Trümmerteilen hat sich ein Asteroid gebildet!' in the battle report?
-
An asteroid formed out of the rubble!
-
Buildings, ships, defenses and research switch types in spy reports.
They are Lists when empty, but Maps (Dictionaries) when actually containing values:vs.
Code
Display More"buildings": { "b7": { "name": "Entwicklungszentrum", "level": 1 } }, "ships": { "s3": { "name": "Transmitter", "level": "2" } }, "defense": { "d11": { "name": "Gro\u00dfe Schildkuppel", "level": 1 } }, "researches": { "r1": { "name": "Minentechnik", "level": 1 },
Would it be possible for them to always be Maps? e.g
Something similar happens with the firstStrike section in battle reports and the astro section on planets in the Intergalactic planet overview, which toggle between boolean (false) when missing and the actual data when present. This is easier to work around but a simple null to denote absence of data would be still easier.Best regards
Eagle -
basicly arrays are arrays and with the defnition of an string key they would be transfered to objects.
Objects are handeld rly differently in PHP as in Javascript.. i could change them - the better solution would be to have "false" instead of an empty array
-
have "false" instead of an empty array
That would be workable.However, as stated above, still better would be null if there is no value. A null 'Object' is assignable everywhere, a boolean is not.
-
What is the difference in JSON between a section in the spy report that is empty (e.g. no ships present) and one that is simply absent because the spy technology is too low?
-
there is not difference - like in the spy report self
-
Maybe there is not now (I cannot verify that, my spy tech is too high ), but in earlier times there was: without sufficient spy tech the section header (e.g. Fleet or Research) was missing, too; with sufficient spy tech the section simply was empty.
Btw. what is the meaning of 'energy' in the teleporter node:
Do you actually report the fill level of the teleporter buffer?
-
yes - i will look to this header, but i think that there is no difference. if you have no ships there, no header is shown anyway.
-
Just for clarification, a complete, but empty spy report looks like this:
[Blocked Image: https://www.graf-bb.de/2011/pics/empty.jpg]
whereas an incomplete spy report due to insufficient spy tech should look something like this:
[Blocked Image: https://www.graf-bb.de/2011/pics/incomplete.jpg]Note the missing Defense, Fleet and Research headers. However, that assumption is based on eight year old code, I have no idea if that is still the case.
-
i have rebuild the spy report system many times ... but it looks like there are differences - i have some work to do but i try to get this done in the next days
-
Thank you.
If you decide to recreate the above effect, it should be reflected in the JSON data.
As much as it pains me to admit, something likefor a missing section and
for an empty section seems to be in order.
(btw. to revive an earlier discussion, neither of those is an Array in Java, the first is a List, the second a Map )
-
- 1
- 2Page 2 of 2