Infixo / CS2-InfoLoom

Cities Skylines 2 mod - Population Structure
8 stars 1 forks source link

Population distribution display empty error #11

Closed GIS-PuppetMaster closed 7 months ago

GIS-PuppetMaster commented 7 months ago

image LogOutput.log

Infixo commented 7 months ago

It may happen when you open the window immediately after loading a game. The data has not yet been updated. The update happens every 256 frames, so on normal speed about every 4 seconds. Does it show the data after few seconds or not?

GIS-PuppetMaster commented 7 months ago

It may happen when you open the window immediately after loading a game. The data has not yet been updated. The update happens every 256 frames, so on normal speed about every 4 seconds. Does it show the data after few seconds or not?当您加载游戏后立即打开窗口时可能会发生这种情况。数据尚未更新。每 256 帧更新一次,因此在正常速度下大约每 4 秒更新一次。几秒钟后是否显示数据?

no, it keeps that way, I have launched the game and played for a while, you can see it from the log

Infixo commented 7 months ago

And can you change speed to normal? Like 1 arrow, not 3. What happens then?

On Tue, Feb 6, 2024 at 5:47 PM GIS-PuppetMaster @.***> wrote:

It may happen when you open the window immediately after loading a game. The data has not yet been updated. The update happens every 256 frames, so on normal speed about every 4 seconds. Does it show the data after few seconds or not?当您加载游戏后立即打开窗口时可能会发生这种情况。数据尚未更新。每 256 帧更新一次,因此在正常速度下大约每 4 秒更新一次。几秒钟后是否显示数据?

no, it keeps that way, I have launched the game and played for a while, you can see it from the log

— Reply to this email directly, view it on GitHub https://github.com/Infixo/CS2-InfoLoom/issues/11#issuecomment-1930328986, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFLDPGTH4IU7C5R6P5QTFDYSJNCPAVCNFSM6AAAAABC35PJC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZQGMZDQOJYGY . You are receiving this because you commented.Message ID: @.***>

GIS-PuppetMaster commented 7 months ago

And can you change speed to normal? Like 1 arrow, not 3. What happens then? On Tue, Feb 6, 2024 at 5:47 PM GIS-PuppetMaster @.> wrote: It may happen when you open the window immediately after loading a game. The data has not yet been updated. The update happens every 256 frames, so on normal speed about every 4 seconds. Does it show the data after few seconds or not?当您加载游戏后立即打开窗口时可能会发生这种情况。数据尚未更新。每 256 帧更新一次,因此在正常速度下大约每 4 秒更新一次。几秒钟后是否显示数据? no, it keeps that way, I have launched the game and played for a while, you can see it from the log — Reply to this email directly, view it on GitHub <#11 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFLDPGTH4IU7C5R6P5QTFDYSJNCPAVCNFSM6AAAAABC35PJC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZQGMZDQOJYGY . You are receiving this because you commented.Message ID: @.>

I played it in 8x, I have already exited the game, but back to the time when I was playing, I think I used 1x speed, but don't sure whether it solved the problem

GIS-PuppetMaster commented 7 months ago

It seems a rare bug

Infixo commented 7 months ago

Ok, can you also check this:

  1. Open DeveloperTools and go for UI Bindings section, then "populationInfo". There should be entries like "structureTotals" and "structureDetails", if you can pls make a screenshot and post it.
  2. Attach UI.log and InfoLoom.log.

Edit. P. 1 will at least answer if the issue on the backend or frontend.

Infixo commented 7 months ago

I played it in 8x, I have already exited the game, but back to the time when I was playing, I think I used 1x speed, but don't sure whether it solved the problem

How did you enable 8x? DevTools? I don't know how exactly these higher speeds work. I mean, if they e.g. SKIP some frames then this would explain the issue. Or just simulate that 1 frame actually means 8x more time. Then updates would be like every half a minute.

Infixo commented 7 months ago

Also, you are not actually using RealPopMod but this sort of translation? It also possible that whoever did that translation, broke something.

GIS-PuppetMaster commented 7 months ago

I played it in 8x, I have already exited the game, but back to the time when I was playing, I think I used 1x speed, but don't sure whether it solved the problem

How did you enable 8x? DevTools? I don't know how exactly these higher speeds work. I mean, if they e.g. SKIP some frames then this would explain the issue. Or just simulate that 1 frame actually means 8x more time. Then updates would be like every half a minute.

yes, DevTools. I'm not using RealPopMod but using RealisticDensity and your PopulationBalance mod. By the way, the PopulationBalance mod still makes my population keep dropping and homeless increase for one of my save (it seems the only one has this problem)

GIS-PuppetMaster commented 7 months ago

Ok, can you also check this:好的,您还可以检查一下吗:

  1. Open DeveloperTools and go for UI Bindings section, then "populationInfo". There should be entries like "structureTotals" and "structureDetails", if you can pls make a screenshot and post it.打开 DeveloperTools 并转到 UI Bindings 部分,然后转到“populationInfo”。应该有“structionTotals”和“structionDetails”之类的条目,如果可以的话请截图并发布。
  2. Attach UI.log and InfoLoom.log.附上 UI.log 和 InfoLoom.log。

Edit. P. 1 will at least answer if the issue on the backend or frontend.编辑。 P.1 至少会回答后端或前端的问题。

The problem is the bug is rare, I'm not having it currently.

GIS-PuppetMaster commented 7 months ago

Also, you are not actually using RealPopMod but this sort of translation? It also possible that whoever did that translation, broke something.另外,你实际上并没有使用 RealPopMod,而是使用这种翻译?也有可能无论是谁进行了翻译,都破坏了某些东西。

Oh, by RealPopMod, do you mean the PopulationRebalance Mod you made? I'm using it

GIS-PuppetMaster commented 7 months ago

Also, you are not actually using RealPopMod but this sort of translation? It also possible that whoever did that translation, broke something.另外,你实际上并没有使用 RealPopMod,而是使用这种翻译?也有可能无论是谁进行了翻译,都破坏了某些东西。

I'm using this global translation mod https://thunderstore.io/c/cities-skylines-ii/p/MioMods/I18nCN/. All other mods I'm using is directly download from github/discord/thunderstore that released by their authors.

Infixo commented 7 months ago

Also, you are not actually using RealPopMod but this sort of translation? It also possible that whoever did that translation, broke something.另外,你实际上并没有使用 RealPopMod,而是使用这种翻译?也有可能无论是谁进行了翻译,都破坏了某些东西。

I'm using this global translation mod https://thunderstore.io/c/cities-skylines-ii/p/MioMods/I18nCN/. All other mods I'm using is directly download from github/discord/thunderstore that released by their authors.

Try using original InfoLoom at least for some time and see if the problem still happens.

GIS-PuppetMaster commented 7 months ago

Also, you are not actually using RealPopMod but this sort of translation? It also possible that whoever did that translation, broke something.另外,你实际上并没有使用 RealPopMod,而是使用这种翻译?也有可能无论是谁进行了翻译,都破坏了某些东西。

I'm using this global translation mod https://thunderstore.io/c/cities-skylines-ii/p/MioMods/I18nCN/. All other mods I'm using is directly download from github/discord/thunderstore that released by their authors.我正在使用这个全局翻译模块 https://thunderstore.io/c/cities-skylines-ii/p/MioMods/I18nCN/。我使用的所有其他 mod 都是直接从其作者发布的 github/discord/thunderstore 下载的。

Try using original InfoLoom at least for some time and see if the problem still happens.尝试使用原始 InfoLoom 至少一段时间,看看问题是否仍然存在。

It never appeared since I post this issue

GIS-PuppetMaster commented 7 months ago

When I met it again, I'll send you the log here

Infixo commented 7 months ago

I discovered today why this happened. I was working on scaling today again, because the bars were sometimes beyond the window, and I find out, by chance, that for some very specific bar lengths, there was div by 0 error. It happened in a few very rare cases, but it happened. Once the bars change, everything works ok again. It is super rare situation and you need to open the window in this specific case, because it was in the JavaScript part. Anyway, v0.8.1 uses a new scaling method and this problem is solved, so I am closing the issue.