View Issue Details

IDProjectCategoryView StatusLast Update
0006325The Dark ModGeneralpublic17.11.2023 22:45
Reportercvlw Assigned ToDragofer  
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
OSWindows 10 Home 
Fixed in VersionTDM 2.12 
Summary0006325: Text entity - should include necessary args by default; have to manually create
DescriptionThe info\text entity creates without necessary args forcing manual creation of args.
These are not showing even if "show inherited properties" is selected.

 - text : this is the reason for creating a Text entity and should not be missing by default. I request it be present with default text, too, so it is easy to search in the .map text.
 - force : include this but default to 0
 - playerOriented - include this but default to 0
Steps To ReproduceCreate an info\text entity in a map in Dark Radiant.
Attempt to set the Text arg in the entity properties, notice it is missing.
Lament and weep that it is missing. Or manually create the text arg without drama. I dunno.... you do you!
Also notice that force and playerOriented would be useful if present but defaulted to 0.
TagsNo tags attached.
Attached Files
TextMissingArgs001.jpg (38,228 bytes)   
TextMissingArgs001.jpg (38,228 bytes)   

Activities

orbweaver

orbweaver

11.10.2023 19:14

developer   ~0016125

While this is not an unreasonable request, note that we currently don't create "default spawnargs" for ANY entity created via the Entity Chooser, beyond the classname/name/origin which are required for all entities. DarkRadiant has no way to know what the purpose of an arbitrary entity class is, and what spawnargs might be useful to set by default, so in order to implement this we would need a mechanism for this information to be provided by the game data. Some new "editor_whatever" spawnargs might be suitable for this purpose, e.g. "editor_defaultprop text" "Initial text".
greebo

greebo

28.10.2023 04:36

administrator   ~0016150

Actually, there's a TDM spawnarg which is respected by DarkRadiant: it's "editor_setKeyValue", but it has to be added to the entityDef to work:
grafik.png (51,608 bytes)   
grafik.png (51,608 bytes)   
orbweaver

orbweaver

01.11.2023 20:06

developer   ~0016159

Oh that is useful. I guess this issue needs to be migrated to the Dark Mod subproject then (if that's even possible in Mantis), so the necessary spawnargs can be added to the entityDef.
Dragofer

Dragofer

17.11.2023 22:45

developer   ~0016178

Rev 16845
Added missing default spawnargs as described in the bug report. Used editor_setKeyValue for "text" so that it prominently shows up in the entity inspector as soon as the entity created, while the other 2 spawnargs are shown only under inherited properties with a default value of 0 (this is what getBool in the code should default to if a spawnarg is missing, as has been the case until now).

Issue History

Date Modified Username Field Change
07.10.2023 17:30 cvlw New Issue
07.10.2023 17:30 cvlw File Added: TextMissingArgs001.jpg
11.10.2023 19:04 orbweaver Severity minor => feature
11.10.2023 19:14 orbweaver Note Added: 0016125
28.10.2023 04:36 greebo Note Added: 0016150
28.10.2023 04:36 greebo File Added: grafik.png
01.11.2023 20:06 orbweaver Note Added: 0016159
17.11.2023 07:43 greebo Project DarkRadiant => The Dark Mod
17.11.2023 22:45 Dragofer Assigned To => Dragofer
17.11.2023 22:45 Dragofer Status new => resolved
17.11.2023 22:45 Dragofer Resolution open => fixed
17.11.2023 22:45 Dragofer Fixed in Version => TDM 2.12
17.11.2023 22:45 Dragofer Note Added: 0016178