Version 3.2.1: whole bank copies of voice lines, unique names, docs figures checked by tools/check_docs.py
This commit is contained in:
@@ -294,7 +294,8 @@ def cmd_game(a):
|
||||
def cmd_verify(a):
|
||||
if a.catalog:
|
||||
from .verify import catalogcheck
|
||||
rep = catalogcheck.run(_game(a), [x.upper() for x in a.archive] or None, quick=a.quick)
|
||||
archives = [x.upper() for x in a.archive] or ([a.lang] if a.lang else None)
|
||||
rep = catalogcheck.run(_game(a), archives, quick=a.quick)
|
||||
for (arch, kind), n in sorted(rep.counts().items()):
|
||||
print("%-14s %-10s %d" % (arch, kind, n))
|
||||
for arch, kind, key, detail in rep.issues[:a.show]:
|
||||
@@ -310,6 +311,9 @@ def cmd_verify(a):
|
||||
ok = selfcheck.run(ws, log=print)
|
||||
sys.exit(0 if ok else 1)
|
||||
from .verify import ingame
|
||||
if a.lang and a.lang != ws.game.language():
|
||||
raise GameError("the game plays its own language (%s); set it in Steam (game properties > Language) to "
|
||||
"test %s in the game" % (ws.game.language(), a.lang))
|
||||
if a.banks:
|
||||
rep = ingame.run_banks(ws, a.sound or None)
|
||||
elif a.texts:
|
||||
@@ -385,7 +389,7 @@ def build_parser():
|
||||
s = add("verify", cmd_verify, "self-check (offline), catalog cross-check (--catalog), or test in the real "
|
||||
"game with --ingame (Windows)")
|
||||
s.add_argument("--catalog", action="store_true", help="cross-check the catalog against the game files")
|
||||
s.add_argument("--archive", action="append", default=[], help="with --catalog: only this archive (repeatable)")
|
||||
s.add_argument("--archive", action="append", default=[], help="with --catalog: only this archive (repeatable; --lang X: only X)")
|
||||
s.add_argument("--quick", action="store_true", help="with --catalog: loose banks + a sample of packages")
|
||||
s.add_argument("--show", type=int, default=30, help="with --catalog: issues to list (default 30)")
|
||||
s.add_argument("--ingame", action="store_true"); s.add_argument("--target", default="SFX:EDF036D6/393BC53A")
|
||||
|
||||
Reference in New Issue
Block a user