yaagl / yet-another-anime-game-launcher

Discord server https://discord.gg/HrV52MgSC2 QQ频道 https://pd.qq.com/s/1dwwmkgq4
MIT License
914 stars 69 forks source link

Error: failed to fetch game information: hk4e_cn #462

Closed OrangeLee03 closed 1 month ago

OrangeLee03 commented 1 month ago

Describe the bug 在我打开Yaagl的时候,弹出了一个窗口显示“Error: failed to fetch game information: hk4e_cn”,请问这是什么情况?我需要怎么做? When I open Yaagl ,a window told me "Error: failed to fetch game information: hk4e_cn" .What's happened ?And what should I do?

Screenshots

截屏2024-10-08 21 10 03

System Information (please complete the following information):

Additional context Add any other context about the problem here.

Logs (if any)

If it's related to the launcher, upload neutralinojs.log in Yaagl Data Directory

If it's related to the game, upload `logs/game_{timestamp}.log in Yaagl Data Directory

Stapxs commented 1 month ago

+1

image
ka2048 commented 1 month ago

Before the Genshin Impact 5.1 version update, I also encountered this error, but after the version update, it was gone. You can check this discussion on Discord. https://discord.com/channels/1085010808678912090/1293136492138467358

OrangeLee03 commented 1 month ago

This problem is solved now.

chienchen0405 commented 1 week ago

This problem is solved now.

想问下怎么解决的现在又有这个问题了

lyzpapo commented 1 week ago

yeah it appears again

hugeBlack commented 1 week ago

It seems that the game company forgot to add a background for hk4e_cn and yaagl consider it an error and exit.

{"game":{"id":"1Z8W5NHUQb","biz":"hk4e_cn"},"backgrounds":[]}

The code that throws error is:

  const game = ret.data.game_info_list.find(x => x.game.biz == server.id);
  if (!game || game.backgrounds.length < 1)
    throw new Error(`failed to fetch game information: ${server.id}`);
  return game.backgrounds[0];

If this happens every time before version update, can we set a default background for yaagl?