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

After fixing missing package, NaniNovel scripts don't recognize extension commands #16

Open
Iseeicy opened this issue Aug 9, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Iseeicy
Copy link
Member

Iseeicy commented Aug 9, 2023

Not sure if this is a bug on our plate to fix or if this is a NaniNovel thing, butttttt.........

I encountered an issue today where the enterSGBProject command would not do anything. It was treated as if it didn't exist while running an existing naniscript - the parser would hop right over it. I modified the implementation of the command to just print something to the console and exit, and it did not fix the issue. I then created a separate test command to see if I could get ANY custom command to work. In doing this, I modified the naniscript. Then, when running that script, both the new test command AND the original naniscript command worked.

I suspect that all I needed to do was re-import or reload the naniscript somehow to make the original command work. I think this is the case because when I originally opened this project, it could not resolve the IMod Naninovel package as it was configured to use a non-existing local disk path. Perhaps when it imported the script, it compiled it somehow and never re-compiled after fixing the package dep?

We should try to re-create this at some point in the future.

@Iseeicy Iseeicy added the bug Something isn't working label Aug 9, 2023
@Iseeicy Iseeicy self-assigned this Aug 9, 2023
@Iseeicy
Copy link
Member Author

Iseeicy commented Aug 9, 2023

Interesting tidbit - when removing the test command from the project, I left it in the naniscript. Immediately afterwards it printed an error about the test command not being valid, and even changed the visual of the test command in the inspector. It's strange that this didn't happen with the enterSGBProject command. Maybe my gut feeling is wrong?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant