Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom asset files don't unload when restarting #700

Open
sooooosh opened this issue Jan 17, 2022 · 2 comments
Open

Custom asset files don't unload when restarting #700

sooooosh opened this issue Jan 17, 2022 · 2 comments
Labels

Comments

@sooooosh
Copy link
Contributor

sooooosh commented Jan 17, 2022

Describe the bug

When adding custom units, you used to be able to make small changes in, for example the .object file, reload the editor by clicking "restart game" and the changes would take effect right away. This doesn't seem to work anymore and you have to relaunch the whole game for the changed files to load.
When restarting the level or going back to the main menu and load back into the editor, the old file is still loaded even when you swap it out entirely.

Steps to reproduce the issue

units.zip
<add unload_on_restart="true"> <unit path="units/pd2_mod_hot/test"/> <object path="units/pd2_mod_hot/test" /> <model path="units/pd2_mod_hot/test"/> <texture path="units/pd2_mod_hot/gov_c_int_marble_c_white_df"/> <material_config path="units/pd2_mod_hot/test"/> </add>

  • Add attached custom unit to a level.
  • Load into level and spawn the unit.
  • Alt-tab out of the game and change something in the files (e.g. rename the material in the test.material_config).
  • Switch back to the game and restart the editor by clicking on "restart game" or go to main menu and back in the level.
  • The unit doesn't change.
  • Relaunch the game and load back into the level.
  • Custom unit should have a missing material now.
@sooooosh sooooosh added the bug label Jan 17, 2022
@Luffyyy
Copy link
Owner

Luffyyy commented Jan 17, 2022

Generally best way to report these issues is to provide a project, so I can go straight to the issue. does adding reload="true" work?

@sooooosh
Copy link
Contributor Author

Another Fucking Test Project.zip
here's test project with the custom asset set up

reload="true" did not work, neither did unload="true", but the wiki says that is true by default anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants