Do some more file format spelunking

`WarHammer.ani` turns out to be a regular `obj` file; `WarHammer.idx`
is partially decoded, but I'm struggling to link it to the former in
a reasonable way at the moment.
This commit is contained in:
2020-04-15 00:27:43 +01:00
parent e2ad8f61c1
commit acb7882549
7 changed files with 413 additions and 196 deletions

View File

@@ -499,7 +499,23 @@ def build(filename)
File.open(filename, "w") { |f| f.write(built.to_data) }
end
def unknown16(filenames)
objs = filenames.map { |f| load_obj(f) }
results = Set.new
objs.each do |obj|
obj.sprites.each do |spr|
results << spr.header.unknown16
end
end
puts "Unique widths for u16,4"
pp results
end
case command = ARGV.shift
when "unknown16" then
unknown16(ARGV)
when "sprites" then
ARGV.each { |filename| sprites(filename) }
when "sprite" then