Doubts, help and support about QuickBMS and other game research tools
-
hearhellacopter
- Posts: 8
- Joined: Tue Nov 26, 2019 12:14 am
Post
by hearhellacopter »
Can anyone help me with making a simple BMS script that that converts this file into json? I have a .bt templete for it.
I would like it to look like this
Code: Select all
"Entries": [
{
"Unknown0": 100,
"Unknown2": 1,
"Unknown3": 1,
"Unknown4": 0,
"Unknown5": 0,
"Unknown6": 600,
"Unknown7": 0,
"Unknown8": 200,
"Unknown9": 0,
"UnknownA": 0,
"UnknownB": 2,
"UnknownC": 100,
"UnknownD": -1,
}
-
aluigi
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi »
Code: Select all
ushort magic
ushort version
int count
int max_size
int start
print " \"Entries\": ["
for i = 0 < count
print "{"
for x = 0 < 0xd
int unknown;
print " \"Unknown%x%: %unknown%,"
next x
print "},"
next i
print "]"
Just use the redirect at command-line to dump the output:
Code: Select all
quickbms.exe script.bms file.bin > file.json