Chulip (PS2) .BIN file table
-
- Posts: 8
- Joined: Mon Jan 04, 2021 4:58 pm
Chulip (PS2) .BIN file table
This file contains a bunch of different textures and models. I've been able to write a script that extracts them separately, but I've recently noticed that it has a file table that looks like it should point to where each texture and model is. The problem is, I can't make heads or tails of how the numbers in an entry relate to the position of the actual data. For example, "/item/semi.bin" refers to an image at 0x27440, but I'm not sure how I would get to it using the entry. Any insight or help would be greatly appreciated.
-
- Posts: 40
- Joined: Thu Jan 11, 2018 7:14 am
Re: Chulip (PS2) .BIN file table
Code: Select all
idstring "BIN\x00"
get start_offset long
math end_id = 1
math index = 0
for i = 0 != end_id
get start_offset long
math i = start_offset
if i == end_id
break
endif
get block_size long
if start_offset != 0 && block_size !=0
math file_name = index
string file_name + ".dat"
log file_name start_offset block_size
math index + 1
endif
next
tada