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:
@@ -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
|
||||
|
Reference in New Issue
Block a user