View Issue Details

IDProjectCategoryView StatusLast Update
0005997DarkRadiantModelspublic19.08.2022 13:44
ReporterFrost_Salamander Assigned Togreebo  
Status resolvedResolutionfixed 
PlatformPCOSWindowsOS Version10
Product Version3.0.0 
Target Version3.1.0Fixed in Version3.1.0 
Summary0005997: 'Export selected as Collision Model' doesn't auto-create path folder and throws error
DescriptionIf you want to create a collision model for an existing model that doesn't already have one, on export DR throws an error if the path doesn't exist in your FM folder. It should create one automatically.

As a workaround, you can create the folder yourself and then it will work. At the very least, the error message should be more specific - I got lucky and guessed what the problem was.
Steps To Reproduce1. create a simple brush and convert it to a func_static
2. make sure the entity is selected and choose File -> Export selected as Collision Model...
3. When the choose model dialog pops up, choose a model (any one will do, as long as you don't have the path to that model in your FM folder already). I used 'models/darkmod/loot/jewellery/amulet_round_02.lwo'
4. You should get an error saying something like "Command 'ExportSelectedAsCollisionModel' failed: Couldn't save to file: C:/games/darkmod/fms/<fm>/models/darkmod/loot/jewellery/
5. Create the folder path manually in your FM directory and retry - it should work this time.
TagsNo tags attached.


There are no notes attached to this issue.

Related Changesets

DarkRadiant: master 432f723d

19.08.2022 13:31


Details Diff
0005997: Add unit test scenario covering the issue Affected Issues
mod - test/ModelExport.cpp Diff File
mod - test/resources/tdm/test_models.pk4 Diff File

DarkRadiant: master 86078980

19.08.2022 13:44


Details Diff
0005997: Collision model export code is now creating necessary folders on its own Affected Issues
mod - radiantcore/selection/algorithm/Primitives.cpp Diff File
mod - test/ModelExport.cpp Diff File

Issue History

Date Modified Username Field Change
03.07.2022 16:42 Frost_Salamander New Issue
10.07.2022 05:16 greebo Status new => acknowledged
19.08.2022 13:20 greebo Status acknowledged => confirmed
19.08.2022 13:30 greebo Assigned To => greebo
19.08.2022 13:30 greebo Status confirmed => assigned
19.08.2022 13:30 greebo Target Version => 3.1.0
19.08.2022 13:44 greebo Changeset attached => DarkRadiant master 432f723d
19.08.2022 13:44 greebo Changeset attached => DarkRadiant master 86078980
19.08.2022 13:44 greebo Status assigned => resolved
19.08.2022 13:44 greebo Resolution open => fixed
19.08.2022 13:44 greebo Fixed in Version => 3.1.0