The Forum is up for sale: XeNTaX Forum looking for new owner

[XBOX] OTOGI 1 & 2 char, item, maps ? (.dat & .mdl)

Post questions about game models here, or help out others!
Kohryu
ultra-n00b
Posts: 3
Joined: Tue Jul 13, 2021 6:40 am
Has thanked: 1 time

Re: [XBOX] OTOGI 1 & 2 char, item, maps ? (.dat & .mdl)

Post by Kohryu »

Hello! Has there been any progress in the development of the "Otogi Tools" for public release? I am very interested in the models from the game, the weapons in particular, and this seems to be the only place/project with any real knowledge on the subject. So if the tools are working and avalible I would love to test them.
guiltytrace
n00b
Posts: 13
Joined: Thu Sep 24, 2020 4:18 am
Has thanked: 3 times
Been thanked: 3 times

Re: [XBOX] OTOGI 1 & 2 char, item, maps ? (.dat & .mdl)

Post by guiltytrace »

Kohryu wrote: Tue Jul 13, 2021 6:45 am Hello! Has there been any progress in the development of the "Otogi Tools" for public release? I am very interested in the models from the game, the weapons in particular, and this seems to be the only place/project with any real knowledge on the subject. So if the tools are working and avalible I would love to test them.
If you're particularly interested in weapon models, and want a glimpse into extraction and UV mapping, I recommend downloading Noesis and importing this script: https://himeworks.com/redirect.php?type ... Otogi1_mdl. Most of the weapons come out alright if backface culling is enabled, but as mentioned in previous posts, there are some random triangle strips in many of the models, so it's not a perfect solution. But if you get the model to display in Noesis, you can export it for use in Blender or 3DS to map the UVs and manipulate those errant strips.
Kohryu
ultra-n00b
Posts: 3
Joined: Tue Jul 13, 2021 6:40 am
Has thanked: 1 time

Re: [XBOX] OTOGI 1 & 2 char, item, maps ? (.dat & .mdl)

Post by Kohryu »

guiltytrace wrote: Thu Jul 15, 2021 5:55 pm If you're particularly interested in weapon models, and want a glimpse into extraction and UV mapping, I recommend downloading Noesis and importing this script: https://himeworks.com/redirect.php?type ... Otogi1_mdl. Most of the weapons come out alright if backface culling is enabled, but as mentioned in previous posts, there are some random triangle strips in many of the models, so it's not a perfect solution. But if you get the model to display in Noesis, you can export it for use in Blender or 3DS to map the UVs and manipulate those errant strips.
Much appreciated, I have no 3D software experience however, so a simpler solution would be preferred, thus my hope for the Otogi tools. But thanks for the suggestion, I will give this method a try to see if I can manage it any.
NamelessKnight
ultra-n00b
Posts: 4
Joined: Sun May 30, 2021 3:42 pm
Has thanked: 1 time

Re: [XBOX] OTOGI 1 & 2 char, item, maps ? (.dat & .mdl)

Post by NamelessKnight »

guiltytrace wrote: Thu Jul 15, 2021 5:55 pm
Kohryu wrote: Tue Jul 13, 2021 6:45 am Hello! Has there been any progress in the development of the "Otogi Tools" for public release? I am very interested in the models from the game, the weapons in particular, and this seems to be the only place/project with any real knowledge on the subject. So if the tools are working and avalible I would love to test them.
If you're particularly interested in weapon models, and want a glimpse into extraction and UV mapping, I recommend downloading Noesis and importing this script: https://himeworks.com/redirect.php?type ... Otogi1_mdl. Most of the weapons come out alright if backface culling is enabled, but as mentioned in previous posts, there are some random triangle strips in many of the models, so it's not a perfect solution. But if you get the model to display in Noesis, you can export it for use in Blender or 3DS to map the UVs and manipulate those errant strips.
Hello, friend. By any chance, can you tell me how it is possible to extract textures from map objects and enemies in Otogi 1/2? As I understand it textures are stored in data files, which have dds in the name. Thank you in advance for any help...
guiltytrace
n00b
Posts: 13
Joined: Thu Sep 24, 2020 4:18 am
Has thanked: 3 times
Been thanked: 3 times

Re: [XBOX] OTOGI 1 & 2 char, item, maps ? (.dat & .mdl)

Post by guiltytrace »

Oh man, I am sorry for the long, l-o-n-g delay. I hope you're still interested even a bit because the past year has been fruitful. To extract the dds images from the data files, specifically the ddsxxx_data.000 file, I use this little BMS script that searches for and pulls DDS images from a file as it finds the header. I initially needed it for MGR because IIRC those textures are similarly packed into one place and it works for Otogi, too.
findloc OFFSET string "DDS" 0 "" 0
math i = 0
do

goto OFFSET
get DUMMY long
findloc NEXT_OFFSET string "DDS" 0 ""

if NEXT_OFFSET == ""

get SIZE asize
else
math SIZE = NEXT_OFFSET

endif
math SIZE -= OFFSET
log "" OFFSET SIZE
math i += 1
math OFFSET = NEXT_OFFSET

while NEXT_OFFSET != ""
I just ran that script on \map\m027 and it pulled 22 images, one of which is the skybox from the final battle. For the second step, instead of selecting an individual file, you can enter a * and the script will search and execute through the entire folder and any subfolders (which is helpful because there is another .000 in \map\m027\obj).

Edit: I just ran the script on the entire Otogi root folder and I would not recommend it. LOL It generated 1289 folders and there are images scattered everywhere, though it is the quickest method to get everything at once. Going folder by folder could be fun?

https://drive.google.com/file/d/1OVd6NK ... sp=sharing
Kohryu
ultra-n00b
Posts: 3
Joined: Tue Jul 13, 2021 6:40 am
Has thanked: 1 time

Re: [XBOX] OTOGI 1 & 2 char, item, maps ? (.dat & .mdl)

Post by Kohryu »

guiltytrace wrote: Sat Aug 06, 2022 2:37 am Oh man, I am sorry for the long, l-o-n-g delay. I hope you're still interested even a bit because the past year has been fruitful. To extract the dds images from the data files, specifically the ddsxxx_data.000 file, I use this little BMS script that searches for and pulls DDS images from a file as it finds the header. I initially needed it for MGR because IIRC those textures are similarly packed into one place and it works for Otogi, too.
findloc OFFSET string "DDS" 0 "" 0
math i = 0
do

goto OFFSET
get DUMMY long
findloc NEXT_OFFSET string "DDS" 0 ""

if NEXT_OFFSET == ""

get SIZE asize
else
math SIZE = NEXT_OFFSET

endif
math SIZE -= OFFSET
log "" OFFSET SIZE
math i += 1
math OFFSET = NEXT_OFFSET

while NEXT_OFFSET != ""
I just ran that script on \map\m027 and it pulled 22 images, one of which is the skybox from the final battle. For the second step, instead of selecting an individual file, you can enter a * and the script will search and execute through the entire folder and any subfolders (which is helpful because there is another .000 in \map\m027\obj).

Edit: I just ran the script on the entire Otogi root folder and I would not recommend it. LOL It generated 1289 folders and there are images scattered everywhere, though it is the quickest method to get everything at once. Going folder by folder could be fun?

https://drive.google.com/file/d/1OVd6NK ... sp=sharing
Interesting. That's a Noesis script I'm guessing? I wouldn't mind skimming through some of the files next time I get the chance, particularly wondering if there is any cut content like weapons or such. That could be fun to include in the wiki, assuming there is anything like that.

Either way, keep up the good work.
guiltytrace
n00b
Posts: 13
Joined: Thu Sep 24, 2020 4:18 am
Has thanked: 3 times
Been thanked: 3 times

Re: [XBOX] OTOGI 1 & 2 char, item, maps ? (.dat & .mdl)

Post by guiltytrace »

Kohryu wrote: Sat Aug 06, 2022 3:14 am
Interesting. That's a Noesis script I'm guessing?
No, it's a BMS script.
Post Reply