ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Oct 27, 2020 11:28 am

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Jul 11, 2020 2:17 am 

Joined: Tue Nov 26, 2019 12:14 am
Posts: 8
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:
  "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,
     }


Attachments:
mst_equipment_growth_param.zip [58.16 KiB]
Downloaded 43 times
Top
   
PostPosted: Fri Aug 21, 2020 9:02 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 11696
Code:
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:
quickbms.exe script.bms file.bin > file.json


Top
   
PostPosted: Fri Sep 04, 2020 7:19 pm 

Joined: Tue Nov 26, 2019 12:14 am
Posts: 8
Thank you!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited