This is a simple CTF-game summary creator, made for my own pleasure. I'm a hockey fan and once when checking the
scores of that day's Russian Hockey Superliga matches after watching as two teams of bots bashing each other in
another CTF-match testing GameLogger an idea suddenly came to me: why not make a plugin for GameLogger that would
create such summary. At the first I was thinking of making it for CTF and BR, but later, as i worked more and more
on it I decided to make it CTF only. No style yet, cause I couldn't think of something worthy. Just simple plain
and short information.
You can see the example of the summaries by checking the three links below. (the 3rd is a bit old, so some elements that
are present in the first two are missing). example 1 example 2 example 3
Loading the plugin.
By default plugin is already added to the list of available plugins. If you have removed it, then when starting
the match click the [Configure Mutators] button on "Mutators" tab with GameLogger being added to the list of active
mutators. Then scroll to the option named "Available Report Plugins" and click [Edit]. In the opened window click
[New] and in the new field enter "class'Gamelogger.GameLoggerCTFSummary'". When plugins are being loaded a check is
performed on the gametype. By default plugin is loaded only if the gametype is CTF, Instagib CTF or Vehicle CTF, but you can set it
load any other gametype.
Allowing CTF Summary to load in gametypes other than CTF, Instagib CTF and Vehicle CTF
Plugin supports the standard three CTF modes that UT2004 has - regular CTF, Instagib CTF and Vehicle CTF. You can
also add your own 5 CTF gametypes to the configurable list, so that if they're loaded plugin won't refuse to load.
I'm not sure that plugin will work correctly with CTF-modes with some major changes, like CTF4. For plugin to work
ok, flags and number of teams should remain intact. To add a gametype add it's name to the array in the GameLogger.ini
in the section entitled [GameLogger.GameLoggerCTFSummary]. If I was to add f.e. Vehicle CTF I'd have
to add a line like that:
AllowedGameTypeNames[0]="Vehicle CTF"
Changing summary file name
Summary name can be specified via GameLogger.ini. Check the appropriate part of Working with ini page for details.
Adding your own headings
The summary plugin allows you to create your own headings for summaries. All you need is to add a new record to the HeadingsArray
in the the abovementioned [GameLogger.GameLoggerCTFSummary] section in GameLogger.ini There are 26 headings,
but you might want to check them, as I'm not a native speaker, and quite unsure about grammar in these headings.
Information about the heading is stored in the line like this one:
(Heading="%c's %p brings %w a draw in match against %l.",type=7)
Heading is a heading itself. Type defines the situation in which this heading considered suitable.
Heading might containg the following variables that will be replaced by the plugin when writing summary:
%w - team that won the match
%l - team that lost the match
%c - the player who made the last capture
%o - total score (sum of scores of both teams)
The type is an integer value varying from 0 to 9:
0 - shutout victory (winners must make at least 5 captures while losers must not score) 1 - solid win (3 point difference - 6-2, 4-1 and so on ) 2 - hard-fought victory (1 point difference) 3 - willed victory (was losing but retrieved the lead and won) not implemented yet; 4 - overtime win, certainly one point difference 5 - willed overtime win (managed to tie the match and win the overtime) not implemented yet; 6 - usual win that doesn't meet all other conditions (usually smth like 2:0, 3:0 or 3:1) 7 - tie, but both team scored 8 - tie, neither of the team scored (0:0). 9 - big score match (9:5 and so on, losing team must score at least 5 goals or more for this to be used. Difference may be any.)