View Issue Details

IDProjectCategoryView StatusLast Update
0005221DarkRadiantGUIpublic20.04.2020 16:40
ReporterDragofer Assigned To 
PrioritynormalSeveritynormalReproducibilityalways
Status acknowledgedResolutionopen 
Product Version2.7.0 
Summary0005221: 'Choose model...' on AIs opens model chooser without any model selected
DescriptionIf I try to click on the 'Choose model...' button of the "model" spawnarg in order to change the model of an AI, the model chooser opens without showing any model and with all folders collapsed. It only shows the materials of the model.

This seems to be due to the fact that TDM's AI entity defs only name the model itself, omitting the file path and the file extension.
If I replace the default "model" "tdm_ai_nobleman" with "models/md5/chars/nobles/nobleman1/tdm_ai_nobleman.md5mesh", the model chooser behaves correctly.
Steps To Reproduce1) 'Create entity' -> AI -> Nobles -> Armed -> atdm:ai_nobleman02_armed
2) 'Show inherited properties' -> model -> click on 'Choose model...'
3) The model chooser opens at top level without any model selected and all folders closed. It does however show the materials used by the current model.

4) Replace the "model" spawnarg with models/md5/chars/nobles/nobleman1/tdm_ai_nobleman.md5mesh
5) Click on 'Choose model...' -> the model chooser opens with the current model selected and displayed.
TagsNo tags attached.

Activities

greebo

greebo

20.04.2020 14:14

administrator   ~0012372

Would it be of any use to set the "model" spawnarg on those AI entities? Just choosing the .md5mesh file is not enough to change an AI's model including animations, is it?
Dragofer

Dragofer

20.04.2020 15:26

developer   ~0012373

It depends on the model, if I want a nobleman to "wear" a commoner's clothes changing the model should be sufficient because the skeleton & animations are the same, but not for female <> male or human <> monster switches.
It's a bug in its own right, though, that the 'Choose model...' button for AIs opens the model chooser without any model selected and all folders collapsed.
greebo

greebo

20.04.2020 16:07

administrator   ~0012374

I just tried changing the model spawnarg to some md5mesh, but this is just refusing the start the map due to missing joint information. It doesn't work.

But I assume it would be more helpful if the model chooser listed the actual "modelDef" declarations, such that the "tdm_ai_nobleman" can be swapped to something like "tdm_ai_townsfolk_commoner"?
Dragofer

Dragofer

20.04.2020 16:33

developer   ~0012375

Ah, so the "model" spawnarg actually points to a modelDef, explaining this bug. Listing and choosing from modelDefs in addition to regular models would sure be useful in the situation where I encountered this bug.

Issue History

Date Modified Username Field Change
20.04.2020 13:20 Dragofer New Issue
20.04.2020 13:20 Dragofer Description Updated View Revisions
20.04.2020 14:14 greebo Status new => feedback
20.04.2020 14:14 greebo Note Added: 0012372
20.04.2020 15:26 Dragofer Note Added: 0012373
20.04.2020 15:26 Dragofer Status feedback => new
20.04.2020 16:07 greebo Note Added: 0012374
20.04.2020 16:08 greebo Status new => feedback
20.04.2020 16:33 Dragofer Note Added: 0012375
20.04.2020 16:33 Dragofer Status feedback => new
20.04.2020 16:40 greebo Status new => acknowledged