View Issue Details

IDProjectCategoryView StatusLast Update
0003292The Dark ModDesign/Codingpublic21.01.2013 03:54
ReporterObsttorte Assigned Tograyman  
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
Product VersionTDM 1.08 
Target VersionTDM 2.00Fixed in VersionTDM 2.00 
Summary0003292: Wrong objective level names in end mission screen
DescriptionIf you change the names of the difficulty levels then the default names still show up in the end mission statistics screen.
Steps To ReproduceCreate a map and add the spawnarg(s) difficultyXname, where X=0,1,2 to any worldspawn. Add some names there. These names will show up correctly in the difficulty selection screen at the beginning of the mission, but not in the statistics screen in the end.

You can test this out in the example map.
TagsNo tags attached.
Attached Files
difftest.pk4 (3,366 bytes)

Activities

Obsttorte

Obsttorte

20.01.2013 14:58

developer   ~0005019

In game/DifficultyManager there is a function idStr GetDifficultyName(int level) defined. I guess this one should be executed in the end-mission screen to get the actual name of the difficulty level (didn't find that part in the code).
grayman

grayman

20.01.2013 20:27

viewer   ~0005020

By the time the Mission Statistics screen asks for the difficulty level name, the map has been shut down and that information is gone. So, with no specific map-defined difficulty names available ("Taffer", etc.), the default names are displayed ("Easy", etc.).

The map-defined difficulty names have to be copied to the statistics area before map shutdown, so they can be retrieved from there and displayed on the Statistics screen.
grayman

grayman

21.01.2013 03:53

viewer   ~0005021

Save a copy of the level names in the statistics data, which is still available when painting the statistics screen. The main copy of the level names is wiped when the map ends, which happens before the statistics screen is painted.

rev. 5690:

MissionData.cpp
MissionData.h
MissionStatistics.cpp
MissionStatistics.h
DifficultyManager.cpp

Issue History

Date Modified Username Field Change
19.01.2013 18:29 Obsttorte New Issue
19.01.2013 18:29 Obsttorte File Added: difftest.pk4
19.01.2013 19:51 grayman Assigned To => grayman
19.01.2013 19:51 grayman Status new => assigned
20.01.2013 14:58 Obsttorte Note Added: 0005019
20.01.2013 20:27 grayman Note Added: 0005020
21.01.2013 03:54 grayman Note Added: 0005021
21.01.2013 03:54 grayman Status assigned => resolved
21.01.2013 03:54 grayman Resolution open => fixed
21.01.2013 03:54 grayman Fixed in Version => TDM 2.00
21.01.2013 03:54 grayman Target Version => TDM 2.00
21.01.2013 03:54 grayman Description Updated