Page 4 of 11

Re: Cryengine Export tool (cgf-exporter)

Posted: Fri Jan 22, 2016 3:27 am
by Markemp
JackusCTB wrote:Hello, while trying to convert an Armored Warfare tank from .cgf to .obj it gives me a rectangular shape... is it possible I am using it wrongly? I drag and drop the cryengine file into the executable since I didn't understand how to use the parameters...
You can't use it that way. You have to start up a command prompt (Powershell for example) and put in the proper arguments.

I'll be coming up with a tutorial soon.

Re: Cryengine Export tool (cgf-exporter)

Posted: Fri Jan 22, 2016 6:47 pm
by JackusCTB
Markemp wrote:
JackusCTB wrote:Hello, while trying to convert an Armored Warfare tank from .cgf to .obj it gives me a rectangular shape... is it possible I am using it wrongly? I drag and drop the cryengine file into the executable since I didn't understand how to use the parameters...
You can't use it that way. You have to start up a command prompt (Powershell for example) and put in the proper arguments.

I'll be coming up with a tutorial soon.
Very nice and gentle! Looking forward to it! :)

Re: Cryengine Export tool (cgf-exporter)

Posted: Tue Jan 26, 2016 1:33 pm
by erik945
Thank you for update.
But some model don't converted with error " path1" "value cannot be null" or breaking.

here - example some models.
Scout - converting breaking,
Crucible - error
Caterpillar - error

https://www.dropbox.com/s/l6q1gy5ih24bu53/bugs.7z?dl=0

Re: Cryengine Export tool (cgf-exporter)

Posted: Tue Jan 26, 2016 1:36 pm
by Markemp
I just uploaded a new copy last night. Can you try it against those models?

If it gives you the same error, can you copy/paste the full command you used along with the full output? Thanks.

Re: Cryengine Export tool (cgf-exporter)

Posted: Tue Jan 26, 2016 1:47 pm
by erik945
This is last update, I have some problem with registration on robertsspaceindustries, so write here.

Error:

Code: Select all

C:\Users\KAN>J:\17\exp\cgf-converter.exe J:\17\Objects\Vehicles\ships\drak\cater
pillar\DRAK_Caterpillar_lod1.cga
Input file set to J:\17\Objects\Vehicles\ships\drak\caterpillar\DRAK_Caterpillar
_lod1.cga
CleanName is MultiMat_0

********************************************************************************

There was an error rendering J:\17\Objects\Vehicles\ships\drak\caterpillar\DRAK_
Caterpillar_lod1.cga

Value cannot be null.
Parameter name: path1

   at System.IO.Path.Combine(String path1, String path2)
   at CgfConverter.CryEngine..ctor(String fileName, String dataDir)
   at CgfConverter.Program.Main(String[] args)
********************************************************************************
Thank you.

Re: Cryengine Export tool (cgf-exporter)

Posted: Mon Feb 15, 2016 8:29 pm
by MadestCat
I also have a problem with converting cgf files

Code: Select all

D:\>cgf-converter.exe leopard2a6--leopard2a6.cgf
Input file set to leopard2a6--leopard2a6.cgf
Conflict in chunk definition
3088+8C
2EA120+8C
CleanName is Leopard2A6_Hull

********************************************************************************
There was an error rendering D:\leopard2a6--leopard2a6.cgf

Der Wert darf nicht NULL sein.
Parametername: path1

   bei System.IO.Path.Combine(String path1, String path2)
   bei CgfConverter.CryEngine..ctor(String fileName, String dataDir)
   bei CgfConverter.Program.Main(String[] args)
********************************************************************************
the German text means

Code: Select all

Value cannot be null.
Parameter name: path1

Re: Cryengine Export tool (cgf-exporter)

Posted: Tue Feb 16, 2016 2:00 am
by Markemp
Can you use the -objectdir argument? If you extracted all the .pak files, it's the directory you extracted them to. I extract mine to e:\blender projects\AW, so add a -objectdir "e:\blender projects\aw" to the command when I run it. Just replace that with wherever you extracted them to.

Re: Cryengine Export tool (cgf-exporter)

Posted: Tue Feb 23, 2016 1:15 pm
by erik945
what news about

Code: Select all

Value cannot be null.
Parameter name: path1
?

Re: Cryengine Export tool (cgf-exporter)

Posted: Tue Feb 23, 2016 1:32 pm
by Markemp
erik945 wrote:what news about

Code: Select all

Value cannot be null.
Parameter name: path1
?
This may be fixed. I've updated the file at the Dropbox link in the original post. Please test it out and let me know if you're still having the issue.

Re: Cryengine Export tool (cgf-exporter)

Posted: Tue Feb 23, 2016 5:07 pm
by erik945
All work fine. Thank you!

Re: Cryengine Export tool (cgf-exporter)

Posted: Sun Mar 27, 2016 3:42 pm
by erik945
New update, new problems...

Don't work with many models of new patch (2.3.0 live)

Code: Select all

Input file set to E:\67\StarCitizen\StarCitizen\Public\Data\Objects\Spaceships\Ships\MISC\Starfarer\MISC_Starfarer.cga
*** Chunk Header Table***
Chunk Type              Version   ID        Size      Offset    
SourceInfo              0         0         90        1D30      

...  

Mesh                    801       1FB       128       B09AA4    
Node                    824       1FC       CC        B09BCC    

********************************************************************************
There was an error rendering E:\67\StarCitizen\StarCitizen\Public\Data\Objects\Spaceships\Ships\MISC\Starfarer\MISC_Starfarer.cga

Unable to read beyond the end of the stream.

   at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
   at System.IO.BinaryReader.ReadInt16()
   at CgfConverter.CryEngine_Core.ChunkDataStream_800.Read(BinaryReader b)
   at CgfConverter.CryEngine_Core.Model.Read_Chunks(BinaryReader reader)
   at CgfConverter.CryEngine_Core.Model.Load(String fileName)
   at CgfConverter.CryEngine_Core.Model.FromFile(String fileName)
   at CgfConverter.CryEngine..ctor(String fileName, String dataDir)
   at CgfConverter.Program.Main(String[] args)
********************************************************************************

I try on starfarer, scout and some other models.

https://www.dropbox.com/s/919bw0tkrav2g ... er.7z?dl=0

Re: Cryengine Export tool (cgf-exporter)

Posted: Sun Mar 27, 2016 3:58 pm
by Markemp
I believe CIG is compressing the .mtl files now, which is causing problems for the exporter. I'm not sure if it's possible to uncompress them manually prior to running the converter, but that may be a work around if so.

Re: Cryengine Export tool (cgf-exporter)

Posted: Sun Mar 27, 2016 5:19 pm
by erik945
this directory that does not contain the mtl files

Re: Cryengine Export tool (cgf-exporter)

Posted: Tue May 03, 2016 8:17 am
by HunterAP
Sorry to bump, but has there been ay progress with getting animations working?

Re: Cryengine Export tool (cgf-exporter)

Posted: Wed May 04, 2016 2:04 am
by Markemp
No, sorry. I've been sidetracked with other projects. :( It's still on my to do list though. I really want to get this done.