decompiler: support animation export and support master art groups in build-actor tool (#4260)

Adds support for exporting animations for foreground models. It's not
perfect and doesn't handle the Jak 2/3 animations very well in some
cases (scale can often get messed up, especially for the LZO compressed
ones, I have no idea what is going on with the data in those art groups
sometimes, so that'll have to be revisited later...), but it does a
decent job on Jak 1.

Additionally, the `build-actor` tool has also been changed to support
setting the `master-art-group-name` and `master-art-group-index` fields
to allow for custom art groups to link their animations to a different
master art group, which lets you add custom animations to vanilla art
groups.
This commit is contained in:
Hat Kid
2026-05-04 17:19:41 +02:00
committed by GitHub
parent a7844c9b5d
commit e6260e48ab
25 changed files with 923 additions and 75 deletions
+5 -1
View File
@@ -160,7 +160,11 @@ goos::Object MakeSystem::handle_defstep(const goos::Object& form,
if (in.is_pair()) {
step->input.clear();
goos::for_each_in_list(in, [&](const goos::Object& o) {
step->input.push_back(m_path_map.apply_remaps(o.as_string()->data));
if (o.type == goos::ObjectType::STRING) {
step->input.push_back(m_path_map.apply_remaps(o.as_string()->data));
} else {
step->input.push_back(m_path_map.apply_remaps(o.print()));
}
});
} else {
step->input = {m_path_map.apply_remaps(in.as_string()->data)};