WopsS / RED4ext.SDK

A library to create mods for REDengine 4 (Cyberpunk 2077), independently of RED4ext.
MIT License
93 stars 31 forks source link

Added object package reading #119

Closed psiberx closed 2 months ago

psiberx commented 2 months ago
WopsS commented 2 months ago

For my information, object packages can be .archive files, right?

psiberx commented 2 months ago

They're stored in data buffers inside resource and save files. My main goal was to open data buffers in entity templates (.ent) and appearance resources (.app), which contain entity components. They use another level of packaging to control when objects are desirialized. When you read resource (for example, .ent), only main properties will be deserialized, but components will stay packed in a buffer. You need package extractor to get components out of it.