num0005 / Osoyoos-Launcher

A W.I.P launcher aiming to support all current and future versions & revisions of the Halo Editing Kit.
Other
64 stars 14 forks source link

Fix FBX-to-GR2 issues #63

Closed Pepper-Man closed 2 months ago

Pepper-Man commented 2 months ago

FBX-to-GR2 converter was:

  1. Obtaining the full parent folder path, not the end folder name, and so the path A) never contained any of the assetFolder names, and B) would never pass if (folderName == "animations") anyway. Therefore no GR2 files were getting generated.
  2. Directory.EnumerateFiles(folder, "*.fbx") exception not being caught when folder does not exist, resulting in a crash every time unless user has ALL possible folders for the asset (e.g. JMM, JMA, JMO, JMV, collision, physics etc), which is highly unlikely
Pepper-Man commented 2 months ago

Tested successfully on 343-provided test data (HREK\data\objects\test) image

Pepper-Man commented 2 months ago

Old behaviour: image image

New behaviour: image image