codemanx / blender-cod Goto Github PK
View Code? Open in Web Editor NEWBlender Add-On for Call of Duty® modding
Blender Add-On for Call of Duty® modding
Nothing happened when installed
hi i am currently using blender 2.83 LTS when installing either nothing comes up wich the notification addon installed or after installing it proceeds to say "upgrade to 2.8x" any known fix?
once the xmodel_export files are created, phong shading is off by default..
i don't know if lambert does anything, but it's badly shaded without phong
What steps will reproduce the problem?
1. Open Blender
2. Load a model
3. Attempt to export
What is the expected output? What do you see instead?
I expect the to export correctly, but it throws this error:
What version of the product are you using? On what operating system?
Version 0.2.2 alpha 2 on Windows XP sp3.
Please provide any additional information below.
I have tried a few different models, in different export locations, but still
the same error.
I installed it correctly(as far as I know) via the addons menu.
Original issue reported on code.google.com by [email protected]
on 7 Oct 2011 at 5:02
SE2Dev, again I'm sorry for all the issue reports.
(but I hope atleast they're helping to make the plugin what you envisioned it to be.)
I did some experimenting before posting this time and I've prepared some screenshots of a basic Plane & Cube porting over to CoDWaW - I discovered this while trying to port a Complex mesh but did some testing on basic meshes.
The UV Maps for 'more advanced' meshes aren't being exported with the mesh, or similar (possibly exporting it wrong?),
I tested this with v0.3.5, v0.5.1*, v0.5.2 -- v0.5.1 I was unable to get a model to export so only v0.3.5 and v0.5.2 can be counted.
It should be noted the Plane and Cube were exported from the same place, one after the other, and then imported via Asset Manager through the CoDWaW Launcher.
Cube in XModelUtils (TomBMX) -- Exported Seemingly incorrectly
Plane in XModelUtils (TomBMX) -- Exported Seemingly correctly
These screenshots were taken using the v0.5.2 version of the plugin
I was able to export a complex mesh and have it wrap correctly with a basic diffuse map using v0.3.5 (I know it's not recommended)
What steps will reproduce the problem?
1. Create a model in Blender
2. Extrude verts and create faces manually
3. Exported file will eventually contain gaps in VERT enumeration
4. Error "Vertex number out of sync" occurs on modtools conversion
What is the expected output? What do you see instead?
Should export properly enumerated. Currently, vert.index is taken as given from
Blender. Should rather enumerate() itself.
Additional problem: NUMVERTS needs improvement, it's the total number of verts
per mesh by now, but not all of them are valid (part of a face) and get written
to file.
Please use labels and text to provide additional information.
Same error if VERT numbers are doubled, e.g. 6-7-7-8
Original issue reported on code.google.com by [email protected]
on 25 Jan 2012 at 1:23
calc_tessface
has been removed as of Blender 2.80
https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Mesh_API
I'm not familiar at all yet with the Blender Python API so I'm still trying to figure out what this actually does and what the equivalent functions would be...
Python: Traceback (most recent call last):
File "C:\Users\xxx\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_cod\__init__.py", line 610, in execute
result = export_xmodel.save(self, context,
File "C:\Users\xxx\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_cod\export_xmodel.py", line 382, in save
result = save_model(self, context, filepath,
File "C:\Users\xxx\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_cod\export_xmodel.py", line 485, in save_model
mesh_triangulate(mesh, use_vertex_cleanup)
File "C:\Users\xxx\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_cod\export_xmodel.py", line 49, in mesh_triangulate
mesh.update(calc_tessface=True)
TypeError: Mesh.update(): was called with invalid keyword argument(s) (calc_tessface), expected (calc_edges, calc_edges_loose)
I followed the tutorial step by step and I couldn't find the export or the import button.
BTW, I tried 2.83, 2.93 and 3.1
none of them worked.
Tried it in 2.90 and import nor export worked. Also tried in 2.80, 81, and 82 and same issues occured.
The old material logic that the XModel importer used, no longer functions (as of Blender 2.80), as the Blender Internal renderer is no longer supported.
The material system must be rewritten to support Cycles & EEVEE.
The blender says: One or more addons not have UFT-8 encoding.
I'm using 2.65
Original issue reported on code.google.com by [email protected]
on 1 Feb 2013 at 4:33
What steps will reproduce the problem?
1. Create a model, an armature and parent the model to the armature (modifier)
2. Pose the model
3. Export to xmodel_export and enable "Pose animation"
What is the expected output? What do you see instead?
Export script should use the PoseBones and export their pose, but an error
occurs:
b_tail = a_matrix * bone.tail_local
AttributeError: 'PoseBone' object has no attribute 'tail_local'
Please use labels and text to provide additional information.
The bone coordinate calculation was changed from bone.tail to tail_local to
generate correct tail positions. But the calculation has to be different for
PoseBones, as they don't have a "tail_local" coord (bone.tail_local ==
posebone.tail ??)
Original issue reported on code.google.com by [email protected]
on 24 Nov 2011 at 9:08
Hello please help me, I have a special file, this is an animation file and I want to convert this file, I can import the file but I have to revert it to the outside, please help.
https://www.youtube.comwatchv=sHVWeLZAvzM&ab_channel=ETNA
https://www.linkpicture.com/q/image_56.png
https://www.linkpicture.com/q/I2.png here file structure.
Addon installs fine, however there is a note saying to upgrade to 2.8 (weird since I am above that version) and then the import export menu has no xmodel options.
The detection method used to determine which objects should be exported needs to be redesigned as discussed in #12
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
I have added CoD addon v3.5 and i see the file import_xanim.py in the .zip
but i can't import .xanim to Blender since there is no .xanim in the import
menu.
Export is working fine.
Am i doing something wrong or is this just a bug?!
What version of the product are you using? On what operating system?
Blender 2.65 on Windows 7
Please provide any additional information below.
It would be great if you could fix this problem or tell me what i am doing
wrong.
And thank you!
Original issue reported on code.google.com by [email protected]
on 3 Jan 2015 at 2:04
Attachments:
So let's start with the above image, I ran into that error when I 'Attempted' to export a model, while "again" forgetting the 'tag_origin'.
after that, I remembered the advice from before and added said Armature and bone, named and parented,
and with the 'tag_origin' included, I am again getting "There are no Objects to export.".
P.S Sorry for all the trouble, and keep up the good work 👍
Vertex index out of range error might occur under certain circumstances.
Appears to be a possible followup-error of out-of-sync error.
Conditions unknown, perhaps connected verts, which make up edges, but not
faces? Or simply vertices in same spot --> Remove doubles seems to fix the
error.
Fix for issue #4 doesn't validate face references to vertex indices, remapping
could fix it. But is it needed?
Original issue reported on code.google.com by [email protected]
on 25 Jan 2012 at 10:41
.XMODEL_EXPORTs imported into Blender will sometimes (though consistently) have 1 triangle missing anywhere on the model. Here is an example on the zombie_vending_revive_on model, ripped with Wraith. A triangle is missing on the logo, a similar triangle is missing in the LODs.
zombie_vending_sleight_on also suffers from this, but on the glass materials.
Another example I remember is the viewmodel_pow_arms (?), a triangle is missing on the top of the right sleeve.
How to verify for yourself: Rip the zombie_vending_revive_on model with Wraith on any zombie map, and open the resulting .XMODEL_EXPORT in Blender. The missing triangle should occur again in the same place.
What steps will reproduce the problem?
1. Create at least two mesh objects with different materials
2. Export to xmodel_export
3. Convert into xmodel and load into radiant
What is the expected output? What do you see instead?
Model should use the two materials like in Blender. But it uses the first
material for both.
Please use labels and text to provide additional information.
It's a mistake I made, I assumed Face.material_index referenced a global
material in bpy.data.materials, but it's actually an object's material slot
number. Need to rethink the material handling code.
Original issue reported on code.google.com by [email protected]
on 28 Nov 2011 at 10:35
I load the plugin in Blender then it says I must update Blender to 2.8x but I am using one of the 2.8x releases. And there are no new options in import or export.
For the blender_29
branch:
The time.clock()
Python API has been removed as of Python 3.8 (it has been deprecated since Python 3.3).
I've forked the project and will fix as many compatibility issues as I can...
Hey Im not sure if this is still being worked on, but it would be great if you could implement import for xmodel_export v5 (cod1)
Material#texture_slots
has been removed as of Blender 2.80
For some reason, they didn't include the removal in the release notes for 2.80 :(
Anyway, it seems that all of the texture data is now stored in the node trees.
https://docs.blender.org/api/2.93/bpy.types.ShaderNodeTexImage.html#bpy.types.ShaderNodeTexImage
I think this is the node that manages texture nodes for materials, but they have removed any direct way of determining if the texture is being used for color or for normal maps. So it will involve some clever node tree traversal to determine which textures are being passed to which inputs further along the graph.
Hello,
I am currently working on a new map for CoD2. For that I downloaded Blender 2.61 and installed the Blender-CoD Addon v0.3.5. Until then everything works. But if I want to export the model then as xModel gives me this error message. What can I do about it or what am I doing wrong?
Please help. :(
Python: Traceback (most recent call last):
File "C:\Users\xxx\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_cod\__init__.py", line 610, in execute
result = export_xmodel.save(self, context,
File "C:\Users\xxx\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_cod\export_xmodel.py", line 394, in save
result = save_model(self, context, filepath,
File "C:\Users\xxx\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_cod\export_xmodel.py", line 602, in save_model
mesh.clear()
File "C:\Users\xxx\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_scene_cod\export_xmodel.py", line 205, in clear
bpy.data.meshes.remove(self.mesh)
RuntimeError: Error: Mesh 'MyMesh' is outside of main database and can not be removed from it
I believe this is due to the new way that a mesh is generated from objects:
depsgraph = context.evaluated_depsgraph_get()
mesh = ob.evaluated_get(depsgraph).to_mesh()
According to the documentation of to_mesh()
:
Create a Mesh data-block from the current state of the object.
The object owns the data-block. To force free it use to_mesh_clear().
The result is temporary and can not be used by objects from the main database.
i dont know if you are still active but i have a error
http://puu.sh/lXO0n/16de2c8826.jpg
i do run a usb version of blender
blender 2,76b
the doc is called untitled.blend
already thanks for the help
For future versions, import scale should probably be less destructive to better allow for interaction with scaled scenes. I believe the best way to implement this would be to apply the scale directly to the imported model's skeleton object, which would in-turn allow the scale to be inherited by the mesh. Additional code may need to be required for the dynamic positioning resolution however...
With 2.8 branch i cant export anything, there are another version?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.