kirby64/tools/report_filetable_mismatch.py
someone2639 4095d840c1
assets.o tracking (#56)
* models migrated to new build system

* bank 0 and 1 images

* bank 0 converted

* update PR action

* dont run level settings converter anymore

* update gitignore; actually add asset makefiles (hopefully this passes CI)

* actually add tools

* bank1 tabled

* cleanup

* pass CI now

* bank2 image

* bank 2 anim

* bank2 tabled

* bank 3 tabled

* ldscript generator works; bank4 tabled

* bank5 tabled

* bank6 tabled

* all banks tabled

* asset linkscripts are fully transient now

* test empty commit

* backup

* did you know that um...

if you do file: dep

that $< will eval to dep?

* transient filetable+headers; game is playable but doesnt match

* assets OK besides objcopy

* OK

* actually commit tools wowie

* hopefully no more assets memes

* remove rogue O file that was destroying CI

* the first .png file

* more bank0 png's

* add tools to make future texture PR better

* n64graphics mod to export kirby64 backgrounds

* _actually_ add backgrounds to build system

* simplify asset image build rule

* n64graphics background heuristic in place for all formats

* bank0 backgrounds reintroduced

* revert ci8 background because I don't have n64graphics ci

* bank 0 1 and 2 new I4 textures matched

* filetable linter; banks 0-4 i4 images matched

* bank 5 too

* images all matched; next is to revert all backgrounds that report incorrect sizes

* assets makefile converted to use ld -r -b; runs much faster

* i4 textures reverted

* some ia4 textures

* some ia8 and i8 images

* use single static pattern for backgrounds

* significantly simplify o file generation in asset makefile

* add the two labeled rgba16 images

* support for relatively arbitrary paths for images/probably others

* remove two now-useless bin container tools

* upgrade n64graphics to 0.4

* new asset extractor implemented (full game doesnt build)

* start separating assets json

* rgb2c submodule; img_getprop (almost done)

* binaries in the repo fail

* it wasnt a binary it was the folder i was using...

* add the tool for real

* move folder

* game builds again; doesnt match nor boot

* OK

* assets skip palettes now; func_8000BE90

* renamed some lbvector functions

* some lbreflect matches

* more HS64 work including initial Camera struct doc

* more camera struct; renamed AObj; OMMtx initial doc

* lots of renamings

Co-authored-by: Faris Awan <farisawan.2000@gmail.com>
2022-04-07 17:41:21 -04:00

17 lines
249 B
Python

import sys, json
jb = []
with open(sys.argv[1]) as f:
jb = json.load(f)
fl = []
with open(sys.argv[2]) as f:
fl = f.readlines()
for line in fl:
if "." in line:
nm = line.split()[0]
if "assets/"+nm not in jb:
print("MISMATCH: %s" % nm)