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

Very Basic model format conversion (Shaiya).

Read or post any tutorial related to file format analysis for modding purposes.
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Re: Very Basic model format conversion (Shaiya).

Post by finale00 »

linpost wrote:i dont understand how you know 2C meens 44 bones, i have 3C an i dont see anywhere a number or i dont know
He followed the format and the format says those 4 bytes represent an integer for the number of bones, and 2C 00 00 00 is 44 in decimal (little endian)

The guide assumes you know the terminology used in the format (dword, word, byte, float) and endian-ness, amongst other things.
User avatar
Dinoguy1000
Site Admin
Posts: 786
Joined: Mon Sep 13, 2004 1:55 am
Has thanked: 154 times
Been thanked: 163 times

Re: Very Basic model format conversion (Shaiya).

Post by Dinoguy1000 »

Forget endianness and data types, it sounds like linpost doesn't even understand how hexadecimal works.
Welcome to Xentax!

Rules | Requests | Wiki | Discord

If you run across a post that breaks the rules, please report the post - a mod or admin will handle it from there.
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Re: Very Basic model format conversion (Shaiya).

Post by Mr.Mouse »

Time to read this first, linpost: http://wiki.xentax.com/index.php/DGTEFF
hatyn
advanced
Posts: 47
Joined: Fri Dec 16, 2011 8:30 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Very Basic model format conversion (Shaiya).

Post by hatyn »

when you say "now if we know the file format" what does that mean? if we know how a file is structured? what if all i know is the file type - FLEV - but not much else. I know the 3D data must be in there. I don't know why some FLEVs are .flev and some .flv and I dont know why some have text data within the hex data.
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Re: Very Basic model format conversion (Shaiya).

Post by finale00 »

hatyn wrote:when you say "now if we know the file format" what does that mean? if we know how a file is structured? what if all i know is the file type - FLEV - but not much else. I know the 3D data must be in there. I don't know why some FLEVs are .flev and some .flv and I dont know why some have text data within the hex data.
First you have to know what you're looking at.
If you don't even know that, you're probably not going to get anywhere.

Try looking for 3D data in an image (picture) file; doesn't work.
But what if I use "jpg" for my model extension?

Extensions. You should just forget them since they mean nothing aside from being a name.

An extension is only good for separating files from one another since people at least do that most of the time. I guess you can type it into some search engine, but then you end up with dozens of potential modders looking at something completely irrelevant and making great discussion about nothing cause they noticed that their format ZXY is used in "My Dummy Application That Only I Use" and think that my application might have anything to do with their stuff.

Once you have some idea what the file might contain, you can focus on looking for things that match what you already know.

If you know everything, your job will be easier.
If you know nothing, you're probably not going to get anywhere.
If you know a little, then you might be able to get somewhere.

FLEV doesn't mean anything. It could be an idstring used to verify that the file is what is expected. How someone chooses their extensions might be based on some standard they choose, or just randomly choosing things. I could call my model extension ".LOL" and some people might spend lots of time wondering what that might mean. They could spend years to publish papers about it and then maybe I will break the news and tell them how I came up with the extension.

If two models use two different extensions, then it probably reflects the changes in their content. For example you have static and skeleton meshes; they might name them differently (eg: sm and skem as in Tales of Fantasy)

There is no real difference between "text data" and "hex data". It just happens that you can read one and probably not the other. It is all parsed and handled appropriately. Your role would be to determine how it is used, and whether you need it or not. If you don't know, just skip it. If at the end you get nothing, maybe the stuff you skipped might be important. Or not.

You figure out a file structure as you go. You start from the top and work your way down and find patterns. Once you find a pattern that gets you in and gets you out, there's your file structure. Then you just have to refine it so it looks less like a black box.
hatyn
advanced
Posts: 47
Joined: Fri Dec 16, 2011 8:30 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Very Basic model format conversion (Shaiya).

Post by hatyn »

well having a try with the older flver files that supposedly worked with the blender importer might shed me some light on how to modify the script...so getting that psp game now.
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Re: Very Basic model format conversion (Shaiya).

Post by finale00 »

If you can use the script to trace the file manually you can probably find where the structures are changing.
So for example if it's expecting a name and you're not seeing a name, then you know something is different.
hatyn
advanced
Posts: 47
Joined: Fri Dec 16, 2011 8:30 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Very Basic model format conversion (Shaiya).

Post by hatyn »

not sure how to manually scan the file with the importer python script, my bad. Whenever I import I get some python errors like value shouldnt be negative or string expected should be 64 bits
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Re: Very Basic model format conversion (Shaiya).

Post by finale00 »

You basically look at where the parsing begins, and then try to look at what it's reading.
Although when I tried looking at it, I got lost lol

But ya it looks like the flv format for the two games seem completely different.
hatyn
advanced
Posts: 47
Joined: Fri Dec 16, 2011 8:30 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Very Basic model format conversion (Shaiya).

Post by hatyn »

ah well..will figure it out someday
eri619
veteran
Posts: 80
Joined: Wed May 16, 2012 6:36 am
Location: India
Has thanked: 11 times
Been thanked: 2 times
Contact:

Re: Very Basic model format conversion (Shaiya).

Post by eri619 »

Could you please reupload the images?
Post Reply