Blender Scripts for Civilization V and Civilization VI

Blender Scripts for Civilization V and Civilization VI 16.4

16.4 Update
* Fixes NA2 animation import for 2.8+ (including 3.x) versions of Blender.
  • Like
Reactions: Protok St and Hinin
16.3 Update
* Re-instate correct BR2 export add on script for Blender 2.7*. Somehow the wrong one got included back in the 15.2 Update in September 2019. Sorry to anyone whose tried to use it since then and has experience difficulties!
  • Like
Reactions: Protok St
16.2 Update

* .na2 format Animation import script for Blender 2.8, updated from 2.7 version by Sukritact.
* .na2 format is now referred to as "Civilization Animation" in all scripts given that the format may be used to extract animations from both Civ V and Civ VI.
  • Like
Reactions: Wolfdog
16.1 Update

* Optimized load time for .na2 Animation import script in Blender 2.7*.
16.0 Update

* Animation import to 2.7* versions of Blender now working via the .na2 format. Actually the fix was a simple change to NB2 and CN6 import scripts. Many thanks to Magarto for finding this!

This means animations from Civ V, Civ VI and Beyond Earth can loaded directly into Blender 2.7* versions for the first time.

Will need to re-install and re-enable NB2/CN6 Import Addons for this to work.
* BR2 Export: Use original normals, binormals and tangents for meshes imported from .cn6 format.
  • Like
Reactions: coffee junkie
* Ignore mesh modifiers that point to missing parent armatures in BR2 and CN6 export (Blender 2.7 and 2.8).
* First version of .cn6 import/export scripts for Blender version 2.8, thanks to @sukritact.
* Don't create VERTEX_KEYS with original Normals, Tangents and Binormals if they are all identical e.g. Nexus Buddy 2 exported .cn6.
* CN6 Export: Don't use original normals if VERTEX_KEYS Vertex Group is deleted. This will now properly recalculate Binormals and Tangents when you export having deleted the VERTEX_KEYS Vertex Group.
  • Like
Reactions: Skyzoh
* Fixed serious bug where .cn6 import was not dividing weights by 255 but was instead using the raw values. This meant that all vertex weights greater than zero would be equal to 1 when imported rather than properly scaled within the 0-1 range. This fix should mean that you can remove/add to animated meshes such as units and vertex weights will be properly preserved during the .fgx -> .cn6 -> Blender -> .cn6 -> .fgx round trip.

TL;DR - Vertex Weights were being mangled - now they are OK. :)
* Blender 2.7 CN6 Import: Bone names containing spaces can now be imported.
* Blender 2.7 CN6 Export: Incorporate Sukritact's fix for vertex bone weights not totalling 255.
* CN6 Export: Now exports one vertex for each vertex/UV coordinate combination in a similar way to the BR2 export script.
  • Like
Reactions: FurionHuang
Changes to CN6 Export Script
* Default data for 2nd and 3rd UV Map so you don't have to create them manually.
* Added better exception handling.
* Add .cn6 import/export scripts for working with CivNexus6.
* NB2 Import: Update all MAX_* values to allow complex models with 1000+ bones and many many vertices and triangles (e.g. Civ 6 Leaders) to be correctly imported to Blender.

* BR2 Export: Only export single World Bone if there is only one bone and it has the same name as the Armature. This will be case if the originally .nb2 only had one bone. This is useful for correctly exporting anything that has just a single bone (e.g. Civ 6 unit weapons and helmets).
Top Bottom