yeah not a bad idea under the circumstances. I wish we had filenames so we knew what things were.aspadm wrote:I found only his robo-legsU2LN wrote:Hey I don't have this game, but if y'all come across Alex Vega or Adam Jensen, can you let me know?
There small script to import big portion of 3d models. I already look to 20 of 80 thousands .dat files, what I unpack
You must install Volfin's addon to use itCode: Select all
import os, sys, bpy, import_DeusExMD k = 1 # Number portion of files ksize = 1000 # Size of portion (files) dirname = "C:/your_path" # Path to .dat files z = os.listdir(dirname) for i in range((k-1)*ksize,k*ksize): try: path = dirname + "/" + z[i] print(path) try: import_DeusExMD.import_DeusExMD(path, bpy.context,True,True,False,True,1.0) except: pass except: pass
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Deus EX: Mankind Divided .archive
-
- ultra-veteran
- Posts: 452
- Joined: Sun Jul 06, 2014 6:30 am
- Has thanked: 110 times
- Been thanked: 326 times
Re: Deus EX: Mankind Divided .archive
- aspadm
- advanced
- Posts: 52
- Joined: Wed Nov 25, 2015 8:43 pm
- Has thanked: 10 times
- Been thanked: 34 times
Re: Deus EX: Mankind Divided .archive
Previos game was also without "human-readable" names. It's game engine's specific...volfin wrote:yeah not a bad idea under the circumstances. I wish we had filenames so we knew what things were.
I think that only way to get correct names is to create a database for all files... But it's very bad way
P.S. Many models that I explore was identical - police suits, as examle - some of them in every 1-1.5 thousand of files.
-
- mega-veteran
- Posts: 257
- Joined: Fri Jan 20, 2012 5:43 pm
- Has thanked: 49 times
- Been thanked: 139 times
Re: Deus EX: Mankind Divided .archive
This script recursive scan folders, auto import dat files and export to fbx
Code: Select all
import os
import bpy
import fnmatch
folder_ = "E:\\Program Files (x86)\\Steam\\steamapps\\common\\Deus Ex Mankind Divided\\DLC\\runtime\\dlc1\\CF14A45978D4D15C17263FACED58B540.pc_resourcelib\\"
print(folder_)
files_ = []
root = 'E:\\Program Files (x86)\\Steam\\steamapps\\common\\Deus Ex Mankind Divided\\DLC\\runtime\\555\\'
pattern = '*.dat'
for folder, subdirs, files in os.walk(root):
for filename in fnmatch.filter(files, pattern):
fullname = os.path.join(folder, filename)
files_.append(fullname)
for dat_ in files_:
if(dat_[-4:] == ".dat"):
print(dat_)
bpy.ops.object.select_by_type(type = 'MESH')
bpy.ops.object.delete(use_global=False)
for item in bpy.data.meshes:
for scene in bpy.data.scenes:
for obj in scene.objects:
scene.objects.unlink(obj)
item.user_clear()
bpy.data.meshes.remove(item)
try:
bpy.ops.import_scene.deusexmd(filepath=dat_)
bpy.ops.export_scene.fbx(filepath=(dat_[:-4] + ".fbx"))
except Exception:
print("Importing error")
pass
- aspadm
- advanced
- Posts: 52
- Joined: Wed Nov 25, 2015 8:43 pm
- Has thanked: 10 times
- Been thanked: 34 times
Re: Deus EX: Mankind Divided .archive
Thnx erik945 for script - I use it with small changes(export to .obj, other logging etc.)
volfin,
Wanted to say earlier, but forgot: when I import some models it turns out something like this:
I looked .obj file - or all coordinates of vertex are NaN, or x/y is a large integer and the other coords a small(about 1.) floats.
In this archive 5 examples of the different size - the original file and converted to .obj. I hope this will help to improve the import script.
volfin,
Wanted to say earlier, but forgot: when I import some models it turns out something like this:
I looked .obj file - or all coordinates of vertex are NaN, or x/y is a large integer and the other coords a small(about 1.) floats.
In this archive 5 examples of the different size - the original file and converted to .obj. I hope this will help to improve the import script.
-
- ultra-veteran
- Posts: 452
- Joined: Sun Jul 06, 2014 6:30 am
- Has thanked: 110 times
- Been thanked: 326 times
Re: Deus EX: Mankind Divided .archive
Thanks, I'll take a look. It's hard to find examples of every possible format for testing, so this helps a lotaspadm wrote:Thnx erik945 for script - I use it with small changes(export to .obj, other logging etc.)
volfin,
Wanted to say earlier, but forgot: when I import some models it turns out something like this:
I looked .obj file - or all coordinates of vertex are NaN, or x/y is a large integer and the other coords a small(about 1.) floats.
In this archive 5 examples of the different size - the original file and converted to .obj. I hope this will help to improve the import script.
-
- ultra-veteran
- Posts: 452
- Joined: Sun Jul 06, 2014 6:30 am
- Has thanked: 110 times
- Been thanked: 326 times
Re: Deus EX: Mankind Divided .archive
Ok, I added support for all of those model types. There was 4 new types in among those 6 files, so I bet there's more. Let me know if you find any.
Enjoy.
Edit: new version below.
Enjoy.
Edit: new version below.
Last edited by volfin on Mon Jan 09, 2017 8:19 pm, edited 1 time in total.
-
- ultra-n00b
- Posts: 8
- Joined: Fri Dec 11, 2015 6:53 am
- Location: 'Merica
- Has thanked: 1 time
- Contact:
Re: Deus EX: Mankind Divided .archive
Noob here, but is it possible there exists a database somewhere already? Maybe some kind of xml file or other?
- aspadm
- advanced
- Posts: 52
- Joined: Wed Nov 25, 2015 8:43 pm
- Has thanked: 10 times
- Been thanked: 34 times
Re: Deus EX: Mankind Divided .archive
I'm sorry, but as they say in my country: when fixing one you break another.volfin wrote:Ok, I added support for all of those model types. There was 4 new types in among those 6 files, so I bet there's more. Let me know if you find any.
Enjoy.
Models which correctly imported earlier now broken but what was broken now works
And I delete old version of script so I don't have files to compare, sorry.
BTW, thank you for this great job
I think that you incorrectly detect the format of the model. May be you make a version of the script with manually choice of the decoder?
-
- ultra-veteran
- Posts: 452
- Joined: Sun Jul 06, 2014 6:30 am
- Has thanked: 110 times
- Been thanked: 326 times
Re: Deus EX: Mankind Divided .archive
I had to completely change detection methods, as there are no clear flags. I see what I missed though. This new version should restore what was lost.
Edit: Newer version in later post.
Edit: Newer version in later post.
Last edited by volfin on Mon Jan 16, 2017 2:20 am, edited 1 time in total.
- aspadm
- advanced
- Posts: 52
- Joined: Wed Nov 25, 2015 8:43 pm
- Has thanked: 10 times
- Been thanked: 34 times
Re: Deus EX: Mankind Divided .archive
So I looked to new version of importer and there new (old?) broken files - all or most of them. Hope that it help againvolfin wrote:I had to completely change detection methods, as there are no clear flags. I see what I missed though. This new version should restore what was lost.
-
- ultra-veteran
- Posts: 452
- Joined: Sun Jul 06, 2014 6:30 am
- Has thanked: 110 times
- Been thanked: 326 times
Re: Deus EX: Mankind Divided .archive
You need to use the latest importer I posted. All of these are loading fine. Perhaps try deleting the old importer and installing the new one fresh.aspadm wrote:So I looked to new version of importer and there new (old?) broken files - all or most of them. Hope that it help againvolfin wrote:I had to completely change detection methods, as there are no clear flags. I see what I missed though. This new version should restore what was lost.
See msg above.erik945 wrote:I need remove old version plugin before install new?
Last edited by Gh0stBlade on Tue Jan 10, 2017 11:56 pm, edited 1 time in total.
Reason: Double post merge.
Reason: Double post merge.
- aspadm
- advanced
- Posts: 52
- Joined: Wed Nov 25, 2015 8:43 pm
- Has thanked: 10 times
- Been thanked: 34 times
Re: Deus EX: Mankind Divided .archive
Yeah, I found it!U2LN wrote:Hey I don't have this game, but if y'all come across Alex Vega or Adam Jensen, can you let me know?
Model of Adam was one of this "broken files" - it's a file "0000000000000328.dat" about 15MB. But there's no hair and robo-legs - its in another files.
Big thanks volfin for his great work
You do not have the required permissions to view the files attached to this post.
-
- ultra-n00b
- Posts: 8
- Joined: Fri Dec 11, 2015 6:53 am
- Location: 'Merica
- Has thanked: 1 time
- Contact:
Re: Deus EX: Mankind Divided .archive
Ah sweet. Does it have working UVs?aspadm wrote:Yeah, I found it!U2LN wrote:Hey I don't have this game, but if y'all come across Alex Vega or Adam Jensen, can you let me know?
Model of Adam was one of this "broken files" - it's a file "0000000000000328.dat" about 15MB. But there's no hair and robo-legs - its in another files.
Big thanks volfin for his great work
Re: Deus EX: Mankind Divided .archive
I've been digging around using these tools but havent been able to find what I'm looking for. Specifically, I'm looking for the furniture in Adam Jensen's apartment because I love that neo-baroque style and I wanted to mess around with it. If anyone can point me in the right direction, i'd be very happy.