Deliverator
Graphical Hackificator
With the release of the Nexus Buddy 2 beta 8 it is now possible to modify or replace 3D graphics for Wonders and other entities that contain multiple models in their .gr2 file.
This is a brief walk-through of the process.
Tools Used
Blender 2.49b
Nexus Buddy 2 - beta 8
Deliverator Blender Scripts - version 7
Steps
1. Copy your vanilla .gr2 file to a working directory. You'll also want to copy the corresponding .fxsxml file too. For this tutorial I copied hagia_sophia.gr2.
2. Open your copied vanilla .gr2 file in Nexus Buddy 2. Here I've open hagia_sophia.gr2. In the Select Model tab select the Model you want to modify or replace. Some models will have models prefixed HB for half-built or PL for pillaged. In this case I am just going to select the complete Hagia Sophia model to demonstrate the method.
3. In the Advanced tab click Export to NB2 (Current Model). This will export the selected model to an NB2 file which should appear in your working directory.
4. In Blender in the File menu select Import > Nexus Buddy 2 (.nb2).
5. De-select the two options "Rotate Meshes 90 degrees" and "Delete Top Bone" and then click "Import NB2".
6. Select your .nb2 file from the file browser. In my case the file is called hagia_sophia_model2.nb2.
7. You should now be able to view the imported model in the Blender 3D Viewer.
8. Now you can modify or replace your model. For this tutorial I used Shift-D (Duplicate) to create a fifth and sixth minaret.
9. Next we need to rig our mesh to model's single bone. I always have the Outliner window open in the top-left of Blender as it allows you to see the internal structure of your model. Here we can see that our model's armature (which is the Blender terminology for skeleton) has a single bone called Hagia_Sophia. In order to rig our mesh to this bone, we need to perform the following steps:
i) Select the mesh, either using right-click in the 3D View or left-click in the Outliner.
ii) Switch to the Editing panel - by pressing F9 or clicking the black box with pink dots in the corners icon.
iii) Under Vertex Groups click New and give it exactly the same name as the bone, Hagia_Sophia.
iv) Make sure all vertices in the mesh are selected. Press TAB to enter Edit Mode and A to Select All.
v) Under Vertex Groups click Assign to assign every vertex in the mesh to the Hagia_Sophia. All vertices are now rigged to the model's single bone.
10. Now export your model to BR2. It is probably also a good idea to save your Blender session to a .blend file so that you can adjust or re-use you model in the future.
11. Now back in Nexus Buddy 2, make sure the model whose meshes you want to overwrite is selected and click Overwrite Meshes from BR2 under the Advanced tab. Select the .br2 file we just exported from Blender and the meshes will be completed replaced with the ones from Blender. Warning: Overwrite Meshes from B2 will amend and save the currently open file so you'll probably want to backup your target .gr2 file before-hand.
12. Once the overwrite is done, you can now use the View button to inspect your amended .gr2 file. The Hagia Sophia now has six minarets instead of four.
This is as far as I've got in testing out this process, but there should be no reason why graphics modified like this shouldn't work in game.
This is a brief walk-through of the process.
Tools Used
Blender 2.49b
Nexus Buddy 2 - beta 8
Deliverator Blender Scripts - version 7
Steps
1. Copy your vanilla .gr2 file to a working directory. You'll also want to copy the corresponding .fxsxml file too. For this tutorial I copied hagia_sophia.gr2.
2. Open your copied vanilla .gr2 file in Nexus Buddy 2. Here I've open hagia_sophia.gr2. In the Select Model tab select the Model you want to modify or replace. Some models will have models prefixed HB for half-built or PL for pillaged. In this case I am just going to select the complete Hagia Sophia model to demonstrate the method.
3. In the Advanced tab click Export to NB2 (Current Model). This will export the selected model to an NB2 file which should appear in your working directory.
4. In Blender in the File menu select Import > Nexus Buddy 2 (.nb2).
5. De-select the two options "Rotate Meshes 90 degrees" and "Delete Top Bone" and then click "Import NB2".
6. Select your .nb2 file from the file browser. In my case the file is called hagia_sophia_model2.nb2.
7. You should now be able to view the imported model in the Blender 3D Viewer.
8. Now you can modify or replace your model. For this tutorial I used Shift-D (Duplicate) to create a fifth and sixth minaret.
9. Next we need to rig our mesh to model's single bone. I always have the Outliner window open in the top-left of Blender as it allows you to see the internal structure of your model. Here we can see that our model's armature (which is the Blender terminology for skeleton) has a single bone called Hagia_Sophia. In order to rig our mesh to this bone, we need to perform the following steps:
i) Select the mesh, either using right-click in the 3D View or left-click in the Outliner.
ii) Switch to the Editing panel - by pressing F9 or clicking the black box with pink dots in the corners icon.
iii) Under Vertex Groups click New and give it exactly the same name as the bone, Hagia_Sophia.
iv) Make sure all vertices in the mesh are selected. Press TAB to enter Edit Mode and A to Select All.
v) Under Vertex Groups click Assign to assign every vertex in the mesh to the Hagia_Sophia. All vertices are now rigged to the model's single bone.
10. Now export your model to BR2. It is probably also a good idea to save your Blender session to a .blend file so that you can adjust or re-use you model in the future.
11. Now back in Nexus Buddy 2, make sure the model whose meshes you want to overwrite is selected and click Overwrite Meshes from BR2 under the Advanced tab. Select the .br2 file we just exported from Blender and the meshes will be completed replaced with the ones from Blender. Warning: Overwrite Meshes from B2 will amend and save the currently open file so you'll probably want to backup your target .gr2 file before-hand.
12. Once the overwrite is done, you can now use the View button to inspect your amended .gr2 file. The Hagia Sophia now has six minarets instead of four.
This is as far as I've got in testing out this process, but there should be no reason why graphics modified like this shouldn't work in game.