Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Attrition counter problems

Open GoogleFrog opened this issue 11 years ago • 5 comments

Attrition counter crashes in CAI 2v2 CCR. I looked at its team detection code and could not figure out what it was trying to do. Also "Your Team" and "Enemy Team" is bad for spectators.

Additionally, it sometimes voluntarily disables itself when playing 1v1 due to failing to detect an enemy team.

Look at the spectator panels widget to do better team naming and detection.

GoogleFrog avatar Aug 11 '15 04:08 GoogleFrog

CAI 2v2 CCR.txt

GoogleFrog avatar Aug 11 '15 04:08 GoogleFrog

Ostensibly fixed in #1049

Anarchid avatar Sep 15 '15 17:09 Anarchid

Clansmen detection breaks it.

[f=0014901] [cawidgets.lua] Error: Error in Initialize(): [string "LuaUI/Widgets/gui_attrition_counter.lua"]:234: attempt to index field 'clanNameLengthCutoff' (a nil value)
[f=0014901] [cawidgets.lua] Error: Removed widget: Attrition Counter

Anarchid avatar Sep 19 '15 18:09 Anarchid

It crashes in local game vs nullAIs.

[f=0000000] [cawidgets.lua] Error: Error in Initialize(): [string "LuaUI/Widgets/gui_attrition_counter.lua"]:170: attempt to index field 'aiNames' (a nil value) [f=0000000] [cawidgets.lua] Error: Removed widget: Attrition Counter

(my local ZK repo is about week old so could have been fixed already)

CarabusX avatar Sep 21 '15 15:09 CarabusX

Should be fixed by the recent team name changes (specifically, https://github.com/ZeroK-RTS/Zero-K/commit/687e142ce8be92095d7f81d96731e9b12abb7b27).

sprunk avatar Feb 29 '16 02:02 sprunk