チケット #47722

add a message in log for victories

登録: 2023-03-30 20:44 最終更新: 2024-02-09 15:33

報告者:
担当者:
(未割り当て)
チケットの種類:
状況:
オープン
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
5 - 中
解決法:
なし
ファイル:
2

詳細

done on 3.1

Tiny patch which adds a log_normal in case of victory or when endturn is reached.

This mostly simplify filtering of logs and games in autotests.

チケットの履歴 (15 件中 3 件表示)

2023-03-30 20:44 更新者: alain_bkr
  • 新しいチケット "add a message in log for victories" が作成されました
2023-03-30 20:45 更新者: alain_bkr
  • 添付ファイル 0001-add-log_normal-for-all-victories.patch (File ID: 12009) が付加されました
2023-03-30 21:12 更新者: alain_bkr
  • 添付ファイル 0001-add-log_normal-for-all-victories.patch (File ID: 12009) が削除されました
2023-03-30 22:37 更新者: cazfi
コメント

Reply To alain_bkr

done on 3.1 Tiny patch which adds a log_normal in case of victory or when endturn is reached. This mostly simplify filtering of logs and games in autotests.

I think I did that about a year ago, and for the very same reason (to see results in testmatic runs), so I'm a bit confused here (I'm not on freeciv development env to check anything ATM)

2023-03-31 03:17 更新者: alain_bkr
コメント

Sorry for the confusion

I first did it on 3.1 , and only realized later something alike had been done on main branch

My patch just work on S3_0 and S3_1 , and may add a little to main.

2023-04-05 13:27 更新者: cazfi
  • マイルストーン(未割り当て) から 3.0.8 (完了済み) に更新されました
  • コンポーネント(未割り当て) から Server に更新されました
2023-04-07 18:23 更新者: cazfi
コメント

The patch I was thinking is #42618, applied to what now are S3_2 and main. Not sure if your patch works well together with that. In some cases you add a new logging before the last turn and are an addition as such, but in some cases they duplicate logging in the same situation (only reading the patches)

If we you need all this in those older branches, maybe we should first backport #42618 and then adjust this patch? So that all branches would have similar strings occurring in the same situation (for filtering purposes)

2023-04-08 18:03 更新者: alain_bkr
コメント

I agree i should not break anything ! i'll cherrypick #42618 and redo needed patches

While at this topics, i would like to add the username

-                    _("Game ended in victory for %s."), player_name(pplayer));
+                    _("Game ended in spacerace victory for %s."), player_name(pplayer),
+                           pplayer->username);

and also give usernames to AI , because in log it is mostly impossible to know that Attila is AI*2

2023-04-09 08:18 更新者: alain_bkr
コメント

memo

$ fgrep   -e 'skill level' -e ' rules the' -e 'set to team' -e victory console.log 
Console: 'victories' has been set to "Allied victory" (ALLIED).
Player 'AI*1' now has AI skill level 'Experimental'.
Player AI*1 set to team Team 2.
Player AI*2 set to team Team 4.
Player 'AI*2' now has AI skill level 'Novice'.
Player AI*3 set to team Team 3.
Player 'AI*3' now has AI skill level 'Experimental'.
victories                 +  "Allied victory" (ALLIED)
3: Toshaway rules the Comanches.
3: Phillip Goldson rules the Belizeans.
3: Nnamdi Azikiwe rules the Nigerians.
3: Allied victory to the Comanches, the Belizeans.

++ command line in server team AI*1 1 (lowercase t) will show on console or gui AI*1 is in Team 2 (Uppercase T)

2023-04-11 04:52 更新者: cazfi
コメント

Reply To alain_bkr

++ command line in server team AI*1 1 (lowercase t) will show on console or gui AI*1 is in Team 2 (Uppercase T)

See #44382 for some comments (in short: "Team 1" is a name given in the ruleset, "team 1" is a generated team number.

2023-06-25 19:42 更新者: cazfi
2023-11-10 14:53 更新者: cazfi
2024-02-09 15:33 更新者: cazfi

添付ファイルリスト

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする