View Issue Details

IDProjectCategoryView StatusLast Update
0005997DarkRadiantModelspublic13.01.2024 05:31
ReporterFrost_Salamander Assigned Togreebo  
PrioritynormalSeveritynormalReproducibilityalways
Status closedResolutionfixed 
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/amulet_round_02.cm
5. Create the folder path manually in your FM directory and retry - it should work this time.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

DarkRadiant: master 432f723d

19.08.2022 13:31

greebo


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

DarkRadiant: master 86078980

19.08.2022 13:44

greebo


Details Diff
0005997: Collision model export code is now creating necessary folders on its own Affected Issues
0005997
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
13.01.2024 05:31 greebo Status resolved => closed