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

[BUG] AI Swapper doesn't detect deactivation of dependent extensions, referencing NIL value for activating AIs that are not present #6

Open
Krarilotus opened this issue Nov 10, 2024 · 1 comment

Comments

@Krarilotus
Copy link

This BUG is currently plaguaing the behaviour of working with the AI Swapper in the UCP GUI:

  1. If you apply any AI changes to the AI Swapper, things get added to config.
  2. You can then remove the plugin that supplies files to the AI swapper from content
    • The AI Swapper doesn't unload the config changes
    • you start the game and the AI Swapper tries to load something that isn't loaded and can'T be accessed -> accessing NIL value and
    • everything thats loaded from that point on for AIs is not loaded but everything that was previously loaded is loaded
@Krarilotus Krarilotus changed the title AI Swapper doesn't detect deactivation of dependent extensions, referencing NIL value for activating AIs that are not present [BUG] AI Swapper doesn't detect deactivation of dependent extensions, referencing NIL value for activating AIs that are not present Nov 10, 2024
@gynt
Copy link
Collaborator

gynt commented Nov 10, 2024

The nil access was happening in the aicloader which logged using WARN instead of WARNING
Which has been fixed upstream just now

https://github.com/UnofficialCrusaderPatch/extension-aicloader/blob/main/init.lua#L45

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

No branches or pull requests

2 participants