-
Notifications
You must be signed in to change notification settings - Fork 127
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
feat: Bad mod formatting warnings #415
base: main
Are you sure you want to change the base?
feat: Bad mod formatting warnings #415
Conversation
@GeckoEidechse if you want to keep doing your shenanigans, this will ignore your git folders 😁 |
Depending on how fast VTOL switches to using |
Actually I just realised that this might also cause issues for players where there is a leftover It might make more sense to check folder recursively for |
What about mod folders with no |
For that to occur, the player must have manually deleted that file, given that a mod author wouldn't release a mod with missing |
Addressed in c0e44c9. |
concept is good, but would be nicer if this was exposed to script and shown in ui, rather than than shown as a messagebox? messagebox would be annoying in cases where mod formatting isn't an issue since it'd block execution |
What method would you use to show error message in UI? All cool UI methods I know are callable from Squirrel VM.
Yeah that's also cool, because this way we're sure user knows some of their mods are fucked (in comparison with a notification that closes automatically without user noticing it) |
something on the title screen to display warnings would work, would need to expose all messages to squirrel on reload and do some ui stuff in script to display them
it'd be very annoying for developers in situations where they know they'll get the warning and don't want to wait for a blocking textbox every startup, is what i'm thinking |
Marking this as draft while I refactor to address comments. |
Define a global function in the UI that displays a dialog / menu / submenu that explains what's going on and call that function from native after the UI VM is initialized and mods that are formatted wrong are detected |
expose incorrect installs to UI and fix typing
Reviews have been addressed, @uniboi implemented the UI part in R2Northstar/NorthstarMods#597. |
Do note that this changes the function signatures of some script methods as they are currently incorrect. R2Northstar/NorthstarMods#597 fixes those issues as well. |
@Alystrasz just a heads-up that this PR sadly has merge conflicts now ^^" |
Done :) |
@Alystrasz would this need a rework to check |
About I removed the "READY TO MERGE" label since the diff shows this is deleting functions such as |
Waiting for @uniboi to re-add the |
While loading mods, this checks if a
mod.json
file is present in mods directories; if not, this will display a warning message, telling user mod hasn't been installed properly.This does not analyze hidden directories (with a filename beginning with a
.
).Depends on (cyclic dependency):