Markemp / Cryengine-Converter

A c# program to convert Crytek files to Collada (XML) format
https://www.heffaypresents.com/GitHub/
GNU General Public License v2.0
208 stars 53 forks source link

Sonic Boom - Rise of Lyric Material Issue #150

Open stixsti opened 1 year ago

stixsti commented 1 year ago

When exporting certain objects from maps, they wont convert when the .mtl file is in the folder, only without the .mtl file in the folder

Here's a small section of the ones that don't export with their materials. shantytown_sonicside_ground_cliffs.cgf shantytown_sonicside_ground_cliffs_shadow.cgf shantytown_sonicside_ground_setdressing.cgf shantytown_sonicside_ground_setdressing_b.cgf hub2_beach_hub2_beachb.cgf hub2_beach_hub2_beachc.cgf hub2_beach_hub2_beachd.cgf hub2_beach_hub2_beache.cgf

Sonic_Crytek\Levels\hub02_seasidevillage\objects\levels\hub02_seasidevillage

image image

Markemp commented 1 year ago

It doesn't look like you are using the -objectdir option. That is needed for when the material file in the MtlName chunk points to a location outside of the model directory. Can you give that a shot and let me know what it does?

In any event, I need to add better error handling for these cases, so will leave this open until I can sort it out.

stixsti commented 1 year ago

Am I supposed to put the full link to the objects folder or just the folders up next that lead to the objects folder? c:\games\example\objects objects

Markemp commented 1 year ago

The path to the objects folder. So for your example it would be c:\games\example.

stixsti commented 1 year ago

It's still giving me the error.