djbozkosz / blendermafia4ds Goto Github PK
View Code? Open in Web Editor NEWBlender addon with Mafia 4ds format support.
License: GNU General Public License v3.0
Blender addon with Mafia 4ds format support.
License: GNU General Public License v3.0
Hello.
In your script mafia_4ds_import.py there is a fixed path to C:/Hry/Mafia/maps/ folder.
Is there a way to change it while the add-on is imported?
Modifying the location does not help. And, when obeying the hardcoded path the below error is shown:
Python: Traceback (most recent call last):
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\mafia_4ds\mafia_4ds_import.py", line 425, in execute
return exporter.Import(self.filepath)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\mafia_4ds\mafia_4ds_import.py", line 405, in Import
self.DeserializeFile(reader)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\mafia_4ds\mafia_4ds_import.py", line 394, in DeserializeFile
result = self.DeserializeMesh(reader, materials, meshes)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\mafia_4ds\mafia_4ds_import.py", line 336, in DeserializeMesh
meshProps.VisualType = "0x{:02x}".format(visualType)
TypeError: bpy_struct: item.attr = val: enum "0x03" not found in ('0x00')
location: <unknown location>:-1
Thank you.
H
Hello. An export error has been found. Objects that have a parent are exported to only one parent. That is, if the model has several parents, then the export works only on the first parent object in turn. The rest of the children object IDs are exported with the wrong number. This is easy to see when exporting any car. Here you can check it on examples of original cars in blend file:
https://github.com/AlSpudnik/Examples-Of-Mafia-Cars/archive/refs/heads/main.zip
Hello, I recently downloaded your plugin for importing and exporting 4ds models. There was a small problem. I can now work with any models from the game, except for character models. The plugin does not want to import character models into blender. I count on your help and further correction of this error. Thank you.
Hello.
While trying to import any model of character:
Traceback (most recent call last):
File "C:\Users\hynek\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\mafia_4ds\mafia_4ds_import.py", line 427, in execute
return exporter.Import(self.filepath)
File "C:\Users\hynek\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\mafia_4ds\mafia_4ds_import.py", line 407, in Import
self.DeserializeFile(reader)
File "C:\Users\hynek\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\mafia_4ds\mafia_4ds_import.py", line 396, in DeserializeFile
result = self.DeserializeMesh(reader, materials, meshes)
File "C:\Users\hynek\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\mafia_4ds\mafia_4ds_import.py", line 338, in DeserializeMesh
meshProps.VisualType = "0x{:02x}".format(visualType)
TypeError: bpy_struct: item.attr = val: enum "0x02" not found in ('0x00')
location: :-1
Other models, like houses and so on work fine.
Any idea why?
Thank you
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.