Hello. I'm trying to guess specification of text file format from Zanzarah.
I have already something like this:
http://s5.postimg.org/fmx6228t3/screenshot002711.jpg
// FILE HEADER
uint32 {4} - number of text lines (?)
// DATA
//for each entry
uint32 {4} - pointer (?)
these bytes {12} - 030000000000000000000000 almost always the same (?)
uint32 {4} - size of the text with null on the end
char {X} - text
these bytes {8} - 0100000001000000 i think that always the same (?)
uint32 {4} - 04000000, sometimes 8 bytes (?)
char {1} - 00, 0A or 07 (?)
these bytes - 00000000000000020000000100000000 (?)
This is my first guessing with text files, so i can be wrong :p Can you tell me what are the values marked with question mark?
Here are the file and the color map for Hex workshop: http://ikskoks.playloc.pl/XENTAX/Zanzarah_Xentax.rar
The Forum is up for sale: XeNTaX Forum looking for new owner
[REQ][PC] Zanzarah - help with fbs file format
- ikskoks
- Moderator
- Posts: 1648
- Joined: Thu Jul 26, 2012 5:06 pm
- Location: Poland, Łódź
- Has thanked: 643 times
- Been thanked: 419 times
- Contact:
Re: [REQ][PC] Zanzarah - help with fbs file format
Nevermind. I solved my problem. 
And the file format goes like this:
// FILE HEADER
uint32 {4} - number of text lines
uint32 {4} - unknown
uint32 {4} - unknown
uint32 {4} - unknown
uint32 {4} - unknown
// DATA
//for each entry
uint32 {4} - size of the text with null
char {X} - text
uint32 {4} - unknown
uint32 {4} - unknown
uint32 {4} - unknown
uint32 {4} - unknown
uint32 {4} - unknown
uint32 {4} - unknown
uint32 {4} - value, if equal or greater than 3, exception (different size) should occur
??? - unknown, different sizes, depend on the value above
And the file format goes like this:
// FILE HEADER
uint32 {4} - number of text lines
uint32 {4} - unknown
uint32 {4} - unknown
uint32 {4} - unknown
uint32 {4} - unknown
// DATA
//for each entry
uint32 {4} - size of the text with null
char {X} - text
uint32 {4} - unknown
uint32 {4} - unknown
uint32 {4} - unknown
uint32 {4} - unknown
uint32 {4} - unknown
uint32 {4} - unknown
uint32 {4} - value, if equal or greater than 3, exception (different size) should occur
??? - unknown, different sizes, depend on the value above
-
WRS
- ultra-veteran

- Posts: 603
- Joined: Fri Nov 06, 2009 12:13 am
- Has thanked: 74 times
- Been thanked: 136 times
Re: [REQ][PC] Zanzarah - help with fbs file format
your header is wrong.
a parser for your format:
a parser for your format:
Code: Select all
//--------------------------------------
//--- 010 Editor v6.0 Binary Template
//--------------------------------------
#include "prelen.bt"
uint LineCount;
struct LineInfo
{
uint un1_1, un1_2, un1_3, un1_4;
str text1(plen32);
uint un2_1, un2_2, un2_3, un2_4, un2_5, un2_6;
str text2(plen32);
}
Lines[LineCount] <optimize=false>;
Useful tool links:
- ikskoks
- Moderator
- Posts: 1648
- Joined: Thu Jul 26, 2012 5:06 pm
- Location: Poland, Łódź
- Has thanked: 643 times
- Been thanked: 419 times
- Contact:
Re: [REQ][PC] Zanzarah - help with fbs file format
Thank you 
In my last post was information "Nevermind. I solved my problem". I wrote my own tools and they are working fine http://s5.postimg.org/9094mrcbb/zanthp_ ... _15_67.jpg
But still thanks
In my last post was information "Nevermind. I solved my problem". I wrote my own tools and they are working fine http://s5.postimg.org/9094mrcbb/zanthp_ ... _15_67.jpg
But still thanks
- MaKiPL
- advanced
- Posts: 60
- Joined: Sat Sep 13, 2014 2:05 pm
- Has thanked: 10 times
- Been thanked: 20 times
Re: [REQ][PC] Zanzarah - help with fbs file format
Welcome to the CHUJ. xDikskoks wrote:Thank you
In my last post was information "Nevermind. I solved my problem". I wrote my own tools and they are working fine http://s5.postimg.org/9094mrcbb/zanthp_ ... _15_67.jpg
But still thanks
I see what you did there.

