Conversion from 010 BT? #2155
-
I was a user of 010 but Im finding ImHex a lot nicer, the only issue i have is i have lots of .BT template files from 010 and it would be nice to be able to convert them to ImHex's language. I also struggle a bit with the pattern language in general, like how do you translate:
into the Imhex equivalent? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hey! You're probably looking for something like this: import std.mem;
struct SequenceItem {
s32 width;
s32 height;
u8 bitmap[parent.frameSize - 4];
};
struct MyFormat {
s32 frameSize;
SequenceItem frames[while(!std::mem::eof())];
};
MyFormat myFormat @ 0x00; |
Beta Was this translation helpful? Give feedback.
-
No, the |
Beta Was this translation helpful? Give feedback.
-
I have done lots of conversions from bts because until a year or two ago I was like you so I translated all my templates and also translated other ones I found I needed. Some are pretty easy, some can be hard. others may not be possible without adding some functionality to imhex like importing dlls. The stuff that is harder are the loops that make arrays. they can be a pain to trace and see what patterns it is creating when they are nested. |
Beta Was this translation helpful? Give feedback.
-
Can you actually do multi-dimensional arrays? |
Beta Was this translation helpful? Give feedback.
No, the
while(!std::mem::eof())
means "keep that array growing until it reaches the end of the file".MyFormat myFormat @ 0x00;
is the entry point basically. "Create a new MyFormat pattern and place it at address 0x00 in the data"