blt4linux / blt4l

PAYDAY 2 SteamOS/Linux LUA loader.
Other
57 stars 14 forks source link

DB:create_entry needed for custom assets #75

Closed Kazenin closed 7 years ago

Kazenin commented 7 years ago

I would like to see AddFiles for BeardLib feature in BLT4L. An example below:

https://modworkshop.net/mydownloads.php?action=view_down&did=19760

Thank you so much

RomanHargrave commented 7 years ago

Could you please describe AddFiles?

Additionally, if this has to do with adding asset DB entries, I have done some work reverse-engineering the DB internals, but haven't worked more on it lately.

If this requires the ability to modify asset DB state, this feature isn't easily added.

Kazenin commented 7 years ago

For example, the mod that I put the link has an .xml file inside its directory and I realized that this type of texture is not working with the current version of BLT4L. On windows works perfectly. Please bring it down and take the test. It's a custom weapon.

Kazenin commented 7 years ago

In addition, beardlib is required for this type of overrides

RomanHargrave commented 7 years ago

Custom weapons need to modify the DB, which is something that, as far as I can tell, is not present in the Linux version of the game in any functional manner (unlike the case with mod_overrides).

So in order to support this, we would need to completely reverse engineer the internal structure of DB and MainDB, the two classes that handle the Diesel asset system. From what I can tell, it uses a system built with either std::tree or std::map, what is stored in them though, I am unsure.

RomanHargrave commented 7 years ago

Duplicate of #70