HattrickOrganizer icon indicating copy to clipboard operation
HattrickOrganizer copied to clipboard

[BUG] missing weather and weather forecast for htointegrated game

Open akasolace opened this issue 5 years ago • 3 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots If applicable, add screenshots to help explain your problem.

Platform information:

  • OS: [Windows / macOS / Linux]
  • Version (including build number)

Additional context Add any other context about the problem here.

akasolace avatar Dec 17 '20 21:12 akasolace

@wsbrenk I reopened this ticket as I can see it again today. Wheather information are correct for my upcoming league game but null for my upcoming division tournament game. You have been the one developing that part maybe you can have a look ...

akasolace avatar Feb 03 '21 17:02 akasolace

@akasolace i'm no longer a friend of division battles, so i can not reproduce this issue.

looking at OnlineWorker.downloadMatchData, i found my comment from last year saying that in division battle match details the arena id is set to 0. if that is still the case, there is no chance to retrieve weather infos, i think. could you try to verify this?

XMLMatchdetailsParser.readArena should init arena id.

wsbrenk avatar Feb 03 '21 18:02 wsbrenk

yes this is the issue I guess:

<?xml version="1.0" encoding="utf-8"?>
<HattrickData>
  <FileName>matchdetails.xml</FileName>
  <Version>3.0</Version>
  <UserID>13441219</UserID>
  <FetchedDate>2021-02-03 20:45:03</FetchedDate>
  <UserSupporterTier>diamond</UserSupporterTier>
  <SourceSystem>HTOIntegrated</SourceSystem>
  <Match>
    <MatchID>21071851</MatchID>
    <MatchType>50</MatchType>
    <MatchContextId>3686824</MatchContextId>
    <MatchRuleId>0</MatchRuleId>
    <CupLevel>0</CupLevel>
    <CupLevelIndex>0</CupLevelIndex>
    <MatchDate>2021-02-05 15:00:00</MatchDate>
    <HomeTeam>
      <HomeTeamID>1754082</HomeTeamID>
      <HomeTeamName>FC_Roblochon</HomeTeamName>
    </HomeTeam>
    <AwayTeam>
      <AwayTeamID>291274</AwayTeamID>
      <AwayTeamName>Houilles Football Club</AwayTeamName>
    </AwayTeam>
    <Arena>
      <ArenaID>0</ArenaID>
      <ArenaName></ArenaName>
    </Arena>
  </Match>
</HattrickData>

akasolace avatar Feb 03 '21 19:02 akasolace