Luffyyy / BeardLib-Editor

Editor for PAYDAY 2 using the power of BeardLib.
MIT License
37 stars 28 forks source link

Editor not loading units when adding from DB #727

Closed AkinariHex closed 2 years ago

AkinariHex commented 2 years ago

Describe the bug

I made a reset of my level/add.xml and loaded all the assets from DB but when testing the map I noticed that only the host could see the guards and civilians.

Heading to the add.xml file I noticed that load="true" was missing for all the units so I fixed them manually.

Loading by DB: Before fixing

After fixing: After fixing

Steps to reproduce the issue

Just delete all the content of add.xml file into your level folder, open the editor, and load all the assets from DB.

Log file

No response

Minimal reproduction

No response

Luffyyy commented 2 years ago

It's possible that the editor just doesn't add load=true for network units' base unit, this needs to be tested and in case it's required we'd just have to tell the code to do that (if there's a husk).

Xeletron commented 2 years ago

Fixed in a95d9fffd6f4b6122b1e73def93e5b65551ddc33