I saved too. And got an error and nb2 file with 0 bytes.but I tried again but this time saved the *.gr2 file first then exported to *.nb2 and it worked.
I saved too. And got an error and nb2 file with 0 bytes.but I tried again but this time saved the *.gr2 file first then exported to *.nb2 and it worked.
I saved too. And got an error and nb2 file with 0 bytes.
I tried to import u_greek_hoplite.nb2.
Here is the result:
In other news, now that I have all the code to get the data from GR2 into Blender, I am moving on to write new code to go the other way, from Blender to GR2, without having to use the hopeless GrannyExporterFBX.ExportFBXFile function or even the FBX format at all. A challenging task, but I think it's possible and it's the only way we're likely to get a reliable import to GR2. Could take me a while...
I think the multiple skeleton work would be more beneficial.
Ekmek said:Also I think that the error we get in the fbx->gr2 generation is there because of some license limitations Firaxis had in providing an export tool (possibly radgametools didn't want that full capability provided).
Ekmek said:If you check this thread it looks like its no easy task messing with that format.
So you can export into gr2. But can't import gr2 into another programm.Man who has SDK said:the SDK doesnt contain an importer. It just contains exporters to export the files FROM 3ds max.
So you can export into gr2. But can't import gr2 into anther programm.
And smth wrong with fbx -> gr2 script too.
Deliverator said:The function GrannyExporterFBX.ExportFBXFile called by Nexus Buddy is incredibly unstable - it seems to have some low level memory type problem. A program that produces different output for the same input is not much fun to work with! See how the bytes vary while repeating the same thing here:
Spoiler :Copying C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns.fbx to C:\Users\245\AppData\Local\Temp\tempopen83463730.fbx
Exporting FBX from C:\Users\245\AppData\Local\Temp\tempopen83463730.fbx to C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_0.gr2
Exported GR2 C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_0.gr2 has 84688 bytes
Copying C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns.fbx to C:\Users\245\AppData\Local\Temp\tempopen7829540351.fbx
Exporting FBX from C:\Users\245\AppData\Local\Temp\tempopen7829540351.fbx to C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_1.gr2
Exported GR2 C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_1.gr2 has 88504 bytes
Copying C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns.fbx to C:\Users\245\AppData\Local\Temp\tempopen3270488652.fbx
Exporting FBX from C:\Users\245\AppData\Local\Temp\tempopen3270488652.fbx to C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_2.gr2
Exported GR2 C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_2.gr2 has 80780 bytes
Copying C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns.fbx to C:\Users\245\AppData\Local\Temp\tempopen5234987953.fbx
Exporting FBX from C:\Users\245\AppData\Local\Temp\tempopen5234987953.fbx to C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_3.gr2
Exported GR2 C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_3.gr2 has 91244 bytes
Copying C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns.fbx to C:\Users\245\AppData\Local\Temp\tempopen4932878854.fbx
Exporting FBX from C:\Users\245\AppData\Local\Temp\tempopen4932878854.fbx to C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_4.gr2
Exported GR2 C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_4.gr2 has 88948 bytes
Copying C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns.fbx to C:\Users\245\AppData\Local\Temp\tempopen794712055.fbx
Exporting FBX from C:\Users\245\AppData\Local\Temp\tempopen794712055.fbx to C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_5.gr2
Exported GR2 C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_5.gr2 has 85224 bytes
Copying C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns.fbx to C:\Users\245\AppData\Local\Temp\tempopen436630776.fbx
Exporting FBX from C:\Users\245\AppData\Local\Temp\tempopen436630776.fbx to C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_6.gr2
Exported GR2 C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_6.gr2 has 81376 bytes
Copying C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns.fbx to C:\Users\245\AppData\Local\Temp\tempopen8780641757.fbx
Exporting FBX from C:\Users\245\AppData\Local\Temp\tempopen8780641757.fbx to C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_7.gr2
Exported GR2 C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_7.gr2 has 82860 bytes
Copying C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns.fbx to C:\Users\245\AppData\Local\Temp\tempopen9852729778.fbx
Exporting FBX from C:\Users\245\AppData\Local\Temp\tempopen9852729778.fbx to C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_8.gr2
Exported GR2 C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_8.gr2 has 86432 bytes
Copying C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns.fbx to C:\Users\245\AppData\Local\Temp\tempopen2908387509.fbx
Exporting FBX from C:\Users\245\AppData\Local\Temp\tempopen2908387509.fbx to C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_9.gr2
Exported GR2 C:\Civ5Mod\UnitWork_WarChariot\warchariot_horns_9.gr2 has 75400 bytes
Still trying to work my leaderhead. THis fbx->gr2 thing is the biggest headache. For leaders the meshes and skeletons so large I can't get a clean export. Doing the separate mesh thing doesn't seem to help since the skeleton data is so huge.