Struct fields only where this exe confirms them; 600 verified fields; generated src/structs.hpp
REPENTOGON targets 1.9.7.12 and its offsets drift, so they are no longer trusted by themselves: scripts/zhl_fields.py (replaces fix_offsets.py) keeps a REPENTOGON field only when a getter or the game's Lua field table confirms it, or it sits between two confirmed fields with the same shift. 8 agents verified the rest against code (Game/Manager/Entity_Player shift in steps; Room, ANM2, EntityConfig unshifted). src/structs.hpp is generated from the confirmed fields with static_asserts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d2b8a9229a
commit
5d1b595294
11 files changed
+5713
-1608
No files matched your search
@@ -42,7 +42,7 @@ case "$MODE" in
|
||||
IFS=$'\t' read -r _ _ ENUM TARGET LABEL ANCHOR SHARES <<< "$ROW"
|
||||
echo "---- $ENUM: case at 0x$TARGET, shared with: $SHARES"
|
||||
"$D/decompile.sh" "^Entity_Player::$F\$" | awk -v r="$LABEL" -v a="$ANCHOR" -v n="${3:-60}" \
|
||||
'a == "-" || index($0, a) {on = 1} on && !w && $0 ~ r {w = n; print "---- line " NR} w > 0 {print; if (!--w) exit}' ;;
|
||||
-v t="LAB_$TARGET:" 'a == "-" || index($0, a) {on = 1} (on && !c && $0 ~ r && ++c) || index($0, t) == 1 {w = n; print "---- line " NR} w > 0 {print; w--}' ;; # also the case code under its LAB_ label (a case that is only a goto)
|
||||
player) H=$(printf '0x%x' "$ARG") # player-type read, then a compare/case with ID within 4 lines
|
||||
awk -v r="([!=]= |case )($H|$ARG)([^0-9a-fx]|$)" '/^\/\/@@ / {h=$2" "$3; next} /_playerType|0x13c0|GetPlayerType/ {w=5} w-- > 0 && $0 ~ r {gsub(/^ +/, ""); print h "\t" $0}' "$T/all.c" ;;
|
||||
enum) grep -P -- "$ARG" "$D/repentogon/libzhl/functions/Global.zhl" | sed 's/^ *//' ;;
|
||||
|
||||
Reference in new issue
Block a user