1 |
So far as I can see, the widget which draws the end screen:
|
1 |
So far as I can see, the widget which draws the end screen:
|
2 |
\n
|
2 |
\n
|
3 |
https://github.com/ZeroK-RTS/Zero-K/blob/33f993f9a25cbdaf5624a1309a8ff1ed7639b540/LuaUI/Widgets/gui_chili_endgraph.lua
|
3 |
https://github.com/ZeroK-RTS/Zero-K/blob/33f993f9a25cbdaf5624a1309a8ff1ed7639b540/LuaUI/Widgets/gui_chili_endgraph.lua
|
4 |
\n
|
4 |
\n
|
5 |
gets its statistics from a call to Spring.GetTeamStatsHistory, which can be found here:
|
5 |
gets its statistics from a call to Spring.GetTeamStatsHistory, which can be found here:
|
6 |
\n
|
6 |
\n
|
7 |
https://github.com/spring/spring/blob/2d04655a59405bb5f54eb3d6795cf754763c45ea/rts/Lua/LuaSyncedRead.cpp
|
7 |
https://github.com/spring/spring/blob/2d04655a59405bb5f54eb3d6795cf754763c45ea/rts/Lua/LuaSyncedRead.cpp
|
8 |
\n
|
8 |
\n
|
9 |
The latter does not report quantity of metal reclaimed, so this change is not trivial to make so far as I can see. Might well be possible, but you would probably have to either make a change Spring-side or write a hack ZK-side.
|
9 |
The latter does not report quantity of metal reclaimed, so this change is not trivial to make so far as I can see. Might well be possible, but you would probably have to either make a change Spring-side or write a hack ZK-side.
|
10 |
\n
|
10 |
\n
|
11 |
EDIT: Looking at this definition
|
11 |
EDIT: Looking at this definition
|
12 |
\n
|
12 |
\n
|
13 |
https://github.com/spring/spring/blob/036b798fefe0e4a3bc82be8ecb8aa8806a6a9263/rts/Sim/Misc/TeamStatistics.cpp
|
13 |
https://github.com/spring/spring/blob/036b798fefe0e4a3bc82be8ecb8aa8806a6a9263/rts/Sim/Misc/TeamStatistics.cpp
|
14 |
\n
|
14 |
\n
|
15 |
it appears that Spring fundamentally doesn't record quantity of metal reclaimed, at least not in this way. I wonder how the reclaim award actually works, might be a clue.
|
15 |
it appears that Spring fundamentally doesn't record quantity of metal reclaimed, at least not in this way. I wonder how the reclaim award actually works, might be a clue.
|
16 |
\n
|
16 |
\n
|
17 |
EDIT 2: Wow OK. If I'm reading this right:
|
17 |
EDIT 2: Wow OK. If I'm reading this right:
|
18 |
\n
|
18 |
\n
|
19 |
https://github.com/ZeroK-RTS/Zero-K/blob/33f993f9a25cbdaf5624a1309a8ff1ed7639b540/LuaRules/Gadgets/awards.lua
|
19 |
https://github.com/ZeroK-RTS/Zero-K/blob/33f993f9a25cbdaf5624a1309a8ff1ed7639b540/LuaRules/Gadgets/awards.lua
|
20 |
\n
|
20 |
\n
|
21 |
the reclaim award works by checking every feature (wreck, rock, tree, whatever) in the game and asking it how much metal was reclaimed from it. That doesn't seem useful for graphing.
|
21 |
the reclaim award works by checking every feature (wreck, rock, tree, whatever) in the game and asking it how much metal was reclaimed from it. That doesn't seem useful for graphing.
|
|
|
22 |
\n
|
|
|
23 |
I fully agree that the graphs at present could use improving and a metal reclaimed graph would be neat, but it might not be easy to accomplish.
|