demon's souls FLV file

Post questions about game models here, or help out others!
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2606
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 638 times
Been thanked: 1332 times

Re: demon's souls FLV file

Post by shakotay2 » Sun Feb 10, 2019 1:10 pm

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.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

User avatar
dropoff
veteran
Posts: 97
Joined: Sun Dec 18, 2016 3:32 am
Has thanked: 31 times
Been thanked: 11 times

Re: demon's souls FLV file

Post by dropoff » Sun Feb 10, 2019 3:47 pm

Cool, also btw, map models usually placed at right position after import, they misplaced only in tutorial level which is m08.

Portugalotaku
veteran
Posts: 125
Joined: Fri Oct 02, 2015 3:35 pm
Has thanked: 5 times
Been thanked: 3 times

Re: demon's souls FLV file

Post by Portugalotaku » Sun Feb 10, 2019 8:41 pm

All DeS models come out mirrored for me, I assume that is the problem you are having?

User avatar
dropoff
veteran
Posts: 97
Joined: Sun Dec 18, 2016 3:32 am
Has thanked: 31 times
Been thanked: 11 times

Re: demon's souls FLV file

Post by dropoff » Mon Feb 11, 2019 12:45 am

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.

Bazza
ultra-n00b
Posts: 7
Joined: Thu Jan 31, 2019 6:15 am
Has thanked: 4 times

Re: demon's souls FLV file

Post by Bazza » Thu Feb 14, 2019 8:03 am

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?

User avatar
dropoff
veteran
Posts: 97
Joined: Sun Dec 18, 2016 3:32 am
Has thanked: 31 times
Been thanked: 11 times

Re: demon's souls FLV file

Post by dropoff » Thu Feb 14, 2019 9:37 am

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.

Bazza
ultra-n00b
Posts: 7
Joined: Thu Jan 31, 2019 6:15 am
Has thanked: 4 times

Re: demon's souls FLV file

Post by Bazza » Fri Feb 15, 2019 1:46 am

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?

User avatar
dropoff
veteran
Posts: 97
Joined: Sun Dec 18, 2016 3:32 am
Has thanked: 31 times
Been thanked: 11 times

Re: demon's souls FLV file

Post by dropoff » Fri Feb 15, 2019 9:32 am

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

Post Reply