Opened 16 months ago

Closed 16 months ago

Last modified 15 months ago

#6678 closed defect (invalid)

resources used superior to resources harvested + resources exchanged

Reported by: kmc Owned by:
Priority: Should Have Milestone:
Component: Core engine Keywords:
Cc: Patch:

Description (last modified by Langbart)

I saved a party where the Petra bot amount of resources used is greater than the harvested + exchanged I join a screen shot that shows the resources at the end of the party and the saved party. You can see that the metal used is 26180 while the metal harvested is 17454 and the exchanged is 5601. 17454+5601=23055

Where do the missing 26180-23055=3125 come from ?

Screenshots

Resources screenshot Exchange screenshot nothing in the replay section

Attachments (10)

savegame-0001.0adsave (460.3 KB ) - added by kmc 16 months ago.
Party saved
capture83.png (1.2 MB ) - added by kmc 16 months ago.
Resources screenshot
capture84.png (1.2 MB ) - added by kmc 16 months ago.
Exchange screenshot
replay_section_file_path.png (106.7 KB ) - added by Langbart 16 months ago.
capture85.png (1.2 MB ) - added by kmc 16 months ago.
nothing in the replay section
commands.txt (267.0 KB ) - added by kmc 16 months ago.
ai_trade_income.png (115.1 KB ) - added by Langbart 16 months ago.
trade_income.png (193.3 KB ) - added by Langbart 16 months ago.
AI_breakdown.png (385.9 KB ) - added by Langbart 16 months ago.
kmc_breakdown.png (372.0 KB ) - added by Langbart 16 months ago.

Change History (22)

by kmc, 16 months ago

Attachment: savegame-0001.0adsave added

Party saved

comment:1 by Stan, 16 months ago

Milestone: Alpha 27

by kmc, 16 months ago

Attachment: capture83.png added

Resources screenshot

comment:2 by Stan, 16 months ago

Maybe it's loot gathered from battles.

by kmc, 16 months ago

Attachment: capture84.png added

Exchange screenshot

comment:3 by Langbart, 16 months ago

Description: modified (diff)

including screenshots in description

comment:4 by Langbart, 16 months ago

@kmc

Last edited 16 months ago by Langbart (previous) (diff)

comment:5 by kmc, 16 months ago

Don't know where this file is on Debian 11

comment:6 by Stan, 16 months ago

See the game data paths link above.

in reply to:  5 comment:7 by Langbart, 16 months ago

Replying to kmc:

Don't know where this file is on Debian 11

  • When you select the file in the replay section, the path to the file should be visible.

by Langbart, 16 months ago

by kmc, 16 months ago

Attachment: capture85.png added

nothing in the replay section

comment:8 by kmc, 16 months ago

I have nothing in the replay section. But looking at /home/kmc/.local/share/0ad/ and searching for the corresponding date I can find this command.txt that I send you. I see also a json file.

by kmc, 16 months ago

Attachment: commands.txt added

in reply to:  8 comment:9 by Langbart, 16 months ago

Replying to kmc:

I see also a json file.

the metadata.json is not necessary to watch a replay.

the attached replay of yours works, even though its A23, latest version is A26.


Loot and starting resources also add to the difference, but in this case the majority comes from trade income.

When you barter, the summary gives you the accurate info for each resource, but the trade is only shown as an absolute number for all combined resources and not broken down.

The AI "loves" trading.


Course of action

  • The ticket will be closed as invalid as there is no issue.
  • A new ticket will be created as a feature request to see how loot and trade income is broken down by resource in the summary and refer to this ticket.

EDIT: #6684

Last edited 15 months ago by Langbart (previous) (diff)

by Langbart, 16 months ago

Attachment: ai_trade_income.png added

by Langbart, 16 months ago

Attachment: trade_income.png added

comment:10 by Langbart, 16 months ago

Description: modified (diff)
Milestone: Alpha 27
Resolution: invalid
Status: newclosed
  • Add the provided screenshot to the description
  • Close this ticket and open a feature request instead

comment:11 by kmc, 16 months ago

Isn't the "trade" what I called "Exchange" in the original post ?

Could you acurately give the exact origin of the 3125 metal missing ? I don't see that number explicitly in your answers.

Metal Total used: 26180 total harvested: 17454 total traded: 5601

17454+5601=23055 26180-23055=3125

in reply to:  11 comment:12 by Langbart, 16 months ago

Replying to kmc:

Isn't the "trade" what I called "Exchange" in the original post ?

Trade is different from Barter, in the former you use traders for it, in the latter you use the market for buying and selling. Only the Bartering breaks down numbers by resources in the summary.


Could you accurately give the exact origin of the 3125 metal missing ?

Breakdown

Red:

  • Remaining resources at the end of the game
  • Used resources (including sold items)
  • Dropped items; this occurs when a unit collects a resource and is ordered to collect another before reaching a drop site; these items are lost.
  • Resources currently gathered that have not yet reached a drop site.

Green:

  • Amount of starting resources
  • Resources gathered, such as through a mine (this includes resources currently gathered).
  • Loot obtained from killing enemy units/ structures.
  • Trade income
  • Bartering on the market
  • Trickle income, certain buildings give a little bit of resources per second, in this replay it was the Persian Palace (Apadana).

The trickle effect is not shown in the summary at all, I will create another ticket. EDIT: #6686

Last edited 15 months ago by Langbart (previous) (diff)

by Langbart, 16 months ago

Attachment: AI_breakdown.png added

by Langbart, 16 months ago

Attachment: kmc_breakdown.png added
Note: See TracTickets for help on using tickets.