Quote from: poppo on June 28, 2025, 01:35:06 PMBut why is node.size defined as uint32 in obj_node_info.h?
$ makeobj list factory.*.pak
I cannot extract names like that:type name nodes size
---------------- ------------------------------ ----- ----------
factory 4 12140
std::string factory_writer_t::get_node_name(FILE* fp) const
{
obj_node_info_t node; // Name is inside building (BUIL) node, which is a child of factory (FACT) node
fread(&node, sizeof(node), 1, fp); // the sizeof(node) in here is 10 but only 8 in pakfile.
if (node.type != obj_building) return ""; // If BUIL node not found, return blank to at least not crash
fseek(fp, node.size, SEEK_CUR);
return building_writer_t::instance()->get_node_name(fp);
}
Quote from: Yona-TYT on June 26, 2025, 11:43:01 PMst4_list and st3_list , they are no longer defined.
...