Jump to content
Alwarren

Arma Toolbox for Blender - Arma 2/3 exporter script

Recommended Posts

On 1/18/2020 at 11:04 PM, ethant97 said:

any help on how to actually use this tool?

 

"the error being spat out" is not a good bug report, you know.

I happen to know what error this is though and I have fixed it in the meantime. I'll release an update shortly, but if you want to you can fix it like this:

 

Go to your %APPDATA%\Blender Foundation\Blender\2.81\scripts\addons\ArmaToolbox

Open ArmaTools.py in a text editor

Find line 577 which should read something like

bpy.context.active_object.vertex_groups.new(name=selection)

bpy.context.active_object.vertex_groups.new(selection)

Edit it to read

bpy.context.active_object.vertex_groups.new(name=selection)

Save, and you are done

 

Share this post


Link to post
Share on other sites

Hey,

 

I'm having a problem exporting my model. I always get the following issue:
 

Traceback (most recent call last):
  File "C:\Users\Salbei\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\ArmaToolbox\__init__.py", line 223, in execute
    exportMDL(self, filePtr, self.selectionOnly);
  File "C:\Users\Salbei\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\ArmaToolbox\..\ArmaToolbox\MDLexporter.py", line 511, in exportMDL
    export_lod(filePtr, obj, wm, idx)
  File "C:\Users\Salbei\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\ArmaToolbox\..\ArmaToolbox\MDLexporter.py", line 441, in export_lod
    writeMass(filePtr, obj, mesh)
  File "C:\Users\Salbei\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\ArmaToolbox\..\ArmaToolbox\MDLexporter.py", line 320, in writeMass
    weight_layer = bm.verts.layers.float['FHQWeights']
KeyError: 'BMLayerCollection[key]: key "FHQWeights" not found'

location: <unknown location>:-1

What am I missing?

 

Edit: Some how fixed it, no clue how.

Share this post


Link to post
Share on other sites
On 2/2/2020 at 12:18 AM, [A] Salbei said:

Edit: Some how fixed it, no clue how.

 

You can fix it usually by saving the file and re-loading it.

  • Like 1

Share this post


Link to post
Share on other sites

I'm receiving the following error when attempting to tick the box to enable Arma Toolbox in Blender 2.79...

------

 

Report: Error

 

Traceback (most recent call last):

 

File "C:\Program Files\blender-2.79-windows64\2.79\scripts\modules\addon_utils.py", line 331, in enable

     mod = __import__(module_name)

File "C:\Users\DoD_Admin\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\modules\addons\ArmaToolbox\__init__.py", line 49

o2ScriptProp : bpy.props.StringProperty(

               ^

SyntaxError: invalid syntax

 

------

 

Any assistance or insight would be greatly apppreciated.

Thanks!

Share this post


Link to post
Share on other sites
On 2/14/2020 at 12:14 AM, bl4444 said:

File "C:\Program Files\blender-2.79-windows64\2.79\scripts\modules\addon_utils.py", line 331, in enable

[...]

o2ScriptProp : bpy.props.StringProperty(

 

You are using the wrong version of the plugin. There had been incompatible changes between Blender 2.79 and 2.80, and the version you are using is for 2.80 only.

 

The last supported version for 2.79 is this one: https://github.com/AlwarrenSidh/ArmAToolbox/releases/tag/bf-1

 

Note that I am no longer developing the 2.79 version; I might throw in the occasional bug fix, but any new development will be restricted to 2.80.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×