Page 6 of 7

Re: demon's souls FLV file

Posted: Sun Feb 10, 2019 1:10 pm
by shakotay2
cool! :)
Here's a python script (blender versions 2.5x and greater) for multi obj import:

Code: Select all

import os
import bpy

# http://blender.stackexchange.com/questions/5064/batch-import-wavefront-obj
# put the location to the folder where the objs are located here in this fashion
# this line will only work on windows ie C:\objects
#path_to_obj_dir = os.path.join('C:\\', 'objects')
path_to_obj_dir = os.path.join('X:\\', 'path_to_flver.obj')

# get list of all files in directory
file_list = sorted(os.listdir(path_to_obj_dir))

# get a list of files ending in 'obj'
obj_list = [item for item in file_list if item[-3:] == 'obj']

# loop through the strings in obj_list and add the files to the scene
for item in obj_list:
    path_to_file = os.path.join(path_to_obj_dir, item)
    bpy.ops.import_scene.obj(filepath = path_to_file)
replace 'X' with your drive letter and path_to_flver.obj with your .obj path.
You'll need \\ (instead of single \) for each sub directory.

Re: demon's souls FLV file

Posted: Sun Feb 10, 2019 3:47 pm
by dropoff
Cool, also btw, map models usually placed at right position after import, they misplaced only in tutorial level which is m08.

Re: demon's souls FLV file

Posted: Sun Feb 10, 2019 8:41 pm
by Portugalotaku
All DeS models come out mirrored for me, I assume that is the problem you are having?

Re: demon's souls FLV file

Posted: Mon Feb 11, 2019 12:45 am
by dropoff
Portugalotaku wrote:All DeS models come out mirrored for me, I assume that is the problem you are having?
Hm it should be ok, tool mirrors them by x when converting. And no, its not a problem at all.

Re: demon's souls FLV file

Posted: Thu Feb 14, 2019 8:03 am
by Bazza
dropoff wrote:Here is tool for converting map flvers to obj, with all materials and correct uvs (most of them), still have problem with some models that dont have lightmap uvs i believe.
Made using soulsformats c# library made by TKGP. https://github.com/JKAnderson/SoulsFormats

Usage: run tool and put path to folder with flvers you want to convert.

This is amazing!

It gets the models to OBJ pretty much instantly. Doesn't get textures as far as I can tell though.

Is it supposed to close after one action though? success or fail, the next key pressed closes the app?

Re: demon's souls FLV file

Posted: Thu Feb 14, 2019 9:37 am
by dropoff
Bazza wrote:
dropoff wrote:Here is tool for converting map flvers to obj, with all materials and correct uvs (most of them), still have problem with some models that dont have lightmap uvs i believe.
Made using soulsformats c# library made by TKGP. https://github.com/JKAnderson/SoulsFormats

Usage: run tool and put path to folder with flvers you want to convert.

This is amazing!

It gets the models to OBJ pretty much instantly. Doesn't get textures as far as I can tell though.

Is it supposed to close after one action though? success or fail, the next key pressed closes the app?
You need to extract textures by yourself, it only does models. Also idk, never tried to press key while it works, it will say when conversion done.

Re: demon's souls FLV file

Posted: Fri Feb 15, 2019 1:46 am
by Bazza
dropoff wrote: You need to extract textures by yourself, it only does models. Also idk, never tried to press key while it works, it will say when conversion done.
After it's done I mean. Success or fail, once it's completed one folder, it closes as soon as you press anything.

Wasn't sure if it's a bug, or if you just re-open the app to do the next folder.

EDIT:

I'm having a lot of trouble with the 'SoulsFormats' project; the enums in the script BinaryReaderEx.cs are coming up with "Constraint cannot be special class 'Enum'" and the build fails. Is there some setup guide or similar for opening/building/importing this?

Re: demon's souls FLV file

Posted: Fri Feb 15, 2019 9:32 am
by dropoff
Bazza wrote:
dropoff wrote: You need to extract textures by yourself, it only does models. Also idk, never tried to press key while it works, it will say when conversion done.
After it's done I mean. Success or fail, once it's completed one folder, it closes as soon as you press anything.

Wasn't sure if it's a bug, or if you just re-open the app to do the next folder.

EDIT:

I'm having a lot of trouble with the 'SoulsFormats' project; the enums in the script BinaryReaderEx.cs are coming up with "Constraint cannot be special class 'Enum'" and the build fails. Is there some setup guide or similar for opening/building/importing this?
It only works with 1 folder, so subfolders doesnt work and yeah after its done you need to run it again for other folder. Also you can ask author of soulsformats (TKGP) about it in souls modding discord server: https://discord.gg/mT2JJjx

Re: demon's souls FLV file

Posted: Mon Feb 25, 2019 7:59 am
by Bazza
Quick thanks here to the lads who've been helping both here and on the discord.

I've got the nexus in-engine, and have been rebuilding all the FX and lighting as I go along; candles, messages, bloodstains, etc....

May thine work help the world be mended :)
the real demons souls starts here small.jpg

Re: demon's souls FLV file

Posted: Fri Apr 05, 2019 10:34 am
by TokiChan
Bazza wrote:
Mon Feb 25, 2019 7:59 am
Quick thanks here to the lads who've been helping both here and on the discord.

I've got the nexus in-engine, and have been rebuilding all the FX and lighting as I go along; candles, messages, bloodstains, etc....

May thine work help the world be mended :)

the real demons souls starts here small.jpg
So cool!
Can u send me stages that you get? I no have luck with my comp for dems maps.
Without fx and lights - I'll use it in keyshot

Re: demon's souls FLV file

Posted: Fri Apr 05, 2019 5:26 pm
by dropoff
TokiChan wrote:
Fri Apr 05, 2019 10:34 am
Bazza wrote:
Mon Feb 25, 2019 7:59 am
Quick thanks here to the lads who've been helping both here and on the discord.

I've got the nexus in-engine, and have been rebuilding all the FX and lighting as I go along; candles, messages, bloodstains, etc....

May thine work help the world be mended :)

the real demons souls starts here small.jpg
So cool!
Can u send me stages that you get? I no have luck with my comp for dems maps.
Without fx and lights - I'll use it in keyshot
Just import map flvers

Re: demon's souls FLV file

Posted: Mon Apr 08, 2019 7:38 am
by TokiChan
dropoff wrote:
Fri Apr 05, 2019 5:26 pm
TokiChan wrote:
Fri Apr 05, 2019 10:34 am
Bazza wrote:
Mon Feb 25, 2019 7:59 am
Quick thanks here to the lads who've been helping both here and on the discord.

I've got the nexus in-engine, and have been rebuilding all the FX and lighting as I go along; candles, messages, bloodstains, etc....

May thine work help the world be mended :)

the real demons souls starts here small.jpg
So cool!
Can u send me stages that you get? I no have luck with my comp for dems maps.
Without fx and lights - I'll use it in keyshot
Just import map flvers
All +100500 files with map fragments? And then put textures in all one by one? I'll dead.

Re: demon's souls FLV file

Posted: Mon Apr 08, 2019 5:28 pm
by dropoff
TokiChan wrote:
Mon Apr 08, 2019 7:38 am
dropoff wrote:
Fri Apr 05, 2019 5:26 pm
TokiChan wrote:
Fri Apr 05, 2019 10:34 am


So cool!
Can u send me stages that you get? I no have luck with my comp for dems maps.
Without fx and lights - I'll use it in keyshot
Just import map flvers
All +100500 files with map fragments? And then put textures in all one by one? I'll dead.
But like with tool you dont need to apply all by hands, like all materials applied, you just need to set path to textures in 3ds max after import, idk how to do it in blender though.

Re: demon's souls FLV file

Posted: Tue Jun 04, 2019 4:52 pm
by Portugalotaku
dropoff wrote:
Mon Apr 08, 2019 5:28 pm
TokiChan wrote:
Mon Apr 08, 2019 7:38 am
dropoff wrote:
Fri Apr 05, 2019 5:26 pm

Just import map flvers
All +100500 files with map fragments? And then put textures in all one by one? I'll dead.
But like with tool you dont need to apply all by hands, like all materials applied, you just need to set path to textures in 3ds max after import, idk how to do it in blender though.
How exactly did you import the maps with correct coordinates by the way? your converter is awesome but way too much stuff comes out of place for some maps.

Re: demon's souls FLV file

Posted: Thu Jun 06, 2019 3:55 pm
by dropoff
Portugalotaku wrote:
Tue Jun 04, 2019 4:52 pm
dropoff wrote:
Mon Apr 08, 2019 5:28 pm
TokiChan wrote:
Mon Apr 08, 2019 7:38 am


All +100500 files with map fragments? And then put textures in all one by one? I'll dead.
But like with tool you dont need to apply all by hands, like all materials applied, you just need to set path to textures in 3ds max after import, idk how to do it in blender though.
How exactly did you import the maps with correct coordinates by the way? your converter is awesome but way too much stuff comes out of place for some maps.
I just got coordinates from msb with msb editor and put into text file, then wrote simple max script to place models on them.