Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Swords of Legends Online .hkc and .model Files

Post questions about game models here, or help out others!
Post Reply
Mirailiyeon
ultra-n00b
Posts: 1
Joined: Wed Sep 23, 2020 12:20 am

Swords of Legends Online .hkc and .model Files

Post by Mirailiyeon »

Hello! So i used the QuickBMS script to extract the dat files in Swords of Legends Online, and I looked in the "models" folder and there are two model file types: .hkc and .model

I am trying to open one or the other, but cant seem to find a way to do so. I will include a google drive link with some samples. Thanks for your time! <3

https://drive.google.com/file/d/1S4NZ1b ... sp=sharing
dimis9138
veteran
Posts: 85
Joined: Mon Jul 27, 2020 6:37 pm
Has thanked: 41 times
Been thanked: 8 times

Re: Swords of Legends Online .hkc and .model Files

Post by dimis9138 »

For the female hair 010 .model faces should start at 0x05EC46 and should be short type. Verts have 0x20 bytes inbetween them (I think) but I can't quite find their starting offset.
Looking for someone patient enough to teach me how to write noesis plugins :(
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4286
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1147 times
Been thanked: 2242 times

Re: Swords of Legends Online .hkc and .model Files

Post by shakotay2 »

female_hair_main_010-model.png
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
dimis9138
veteran
Posts: 85
Joined: Mon Jul 27, 2020 6:37 pm
Has thanked: 41 times
Been thanked: 8 times

Re: Swords of Legends Online .hkc and .model Files

Post by dimis9138 »

shakotay2 wrote: Thu Jun 17, 2021 9:33 am female_hair_main_010-model.png
The verts are float type? I tried offset 0x086 with short sign/float/half-float and I'm wondering what I did wrong.

EDIT: Okay nevermind, I'm dumb it was my padding. I kept trying earlier with short / half-float but never thought to try float. Good job and thanks a ton shako, I'm sure OP would thank you too.

For hair 13: Image

With AXE: Image

Only thing I wasn't able to figure out was the UVs with AXE because I am not very certain on how to do that sort of thing yet.
Looking for someone patient enough to teach me how to write noesis plugins :(
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4286
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1147 times
Been thanked: 2242 times

Re: Swords of Legends Online .hkc and .model Files

Post by shakotay2 »

not sure, looks a little bit strange:
.
female_hair_main_010-maybe_uvs.png
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
dimis9138
veteran
Posts: 85
Joined: Mon Jul 27, 2020 6:37 pm
Has thanked: 41 times
Been thanked: 8 times

Re: Swords of Legends Online .hkc and .model Files

Post by dimis9138 »

shakotay2 wrote: Thu Jun 17, 2021 2:17 pm not sure, looks a little bit strange:
.
female_hair_main_010-maybe_uvs.png
What offset is the uv position exactly? Like in mesh extractor how does the uv pos relate to the vertices? Like the 20 number you put.
Looking for someone patient enough to teach me how to write noesis plugins :(
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4286
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1147 times
Been thanked: 2242 times

Re: Swords of Legends Online .hkc and .model Files

Post by shakotay2 »

Dunno what you mean exactly, uvs start 20 bytes after vertices for this .model format:
.
SwordsOfLegends_model.format-FVF_block.png
(FVF means "flexible vertex format")
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
dimis9138
veteran
Posts: 85
Joined: Mon Jul 27, 2020 6:37 pm
Has thanked: 41 times
Been thanked: 8 times

Re: Swords of Legends Online .hkc and .model Files

Post by dimis9138 »

shakotay2 wrote: Fri Jun 18, 2021 12:44 pm Dunno what you mean exactly, uvs start 20 bytes after vertices for this .model format:
.
SwordsOfLegends_model.format-FVF_block.png
(FVF means "flexible vertex format")
Thank you, that makes a lot more sense now. And UVs look correct I think since it's supposed to be hair anyway.
Looking for someone patient enough to teach me how to write noesis plugins :(
Trophi Hunter
n00b
Posts: 15
Joined: Wed Dec 09, 2015 7:50 am
Been thanked: 1 time

Re: Swords of Legends Online .hkc and .model Files

Post by Trophi Hunter »

hey @Mirailiyeon how did you get the file names from the bms script. Used
new_sword_legends.bms 0.2.5
reydria
ultra-n00b
Posts: 2
Joined: Fri Mar 06, 2020 2:06 am

Re: Swords of Legends Online .hkc and .model Files

Post by reydria »

Hi there I hope I can ask this here, I am trying to import my exported models from the bms script for swords of legends. I tried using the 3d object converter and when I import a .model, it says bad polygons and nothing shows up. Should I be using a different program? any help would be awesome :[
Post Reply