jinrou icon indicating copy to clipboard operation
jinrou copied to clipboard

多重ログ

Open hakoniwawind opened this issue 6 years ago • 6 comments

https://jinrou.uhyohyo.net/room/135355 誰かが発言する度に、「狼の子の力で、今日は2人襲撃できます。」が増える。 更新するとログ2つに戻る。 #302 とはまた別の不具合?

hakoniwawind avatar Oct 08 '18 11:10 hakoniwawind

https://jinrou.uhyohyo.net/room/135809 #341 と同じバグだが、向こうは発言しても多重ログにならなかった。 勝利判定前のシステムログだと起こる?

また、勝利判定前のシステムログが条件だとすると、勝利判定前に夜が訪れなくなったため、(勝利時に狼の子のログが流れなくなった。) 実質呪われた者のログでしか再現出来なさそう?

hakoniwawind avatar Oct 15 '18 22:10 hakoniwawind

This line is the direct reason of this bug. The two skill log of 「狼の子の力で、今日は2人襲撃できます。」 have same timestamp as 1538998719490, which causes the two keys to be the same.

Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted

Sunev avatar Oct 22 '18 14:10 Sunev

This room has the same bug on the log of 「毛尖金艳橙白毫 受到诅咒变成了人狼。」 These duplicate logs come out because of #341 , and this is why I made pull request #350.

Sunev avatar Oct 23 '18 02:10 Sunev

I'm planning to give unique IDs to each log to get rid of duplicate keys.

uhyo avatar Oct 23 '18 02:10 uhyo

Well, what about to add a filter into LogSaver for preventing duplicate logs?

Sunev avatar Oct 24 '18 03:10 Sunev

https://jinrou.uhyohyo.net/room/136757 悪霊憑きも同時刻・同文面になるため、再現

hakoniwawind avatar Nov 04 '18 10:11 hakoniwawind