-
Notifications
You must be signed in to change notification settings - Fork 124
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
Add plugin dependency constants #458
Add plugin dependency constants #458
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the sample mod/plugin, seems to work as intended. Code looks good.
@catornot Merge conflicts :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any code that handles characters in the plugin name that aren't valid for squirrel constants.
Things like spaces and special characters should get handled, or the squirrel constants might become unusable
I was thinking that the plugin creator would be responsible for that but I guess I could add a warning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me, requested change was implemented
Merging based on reviews |
Adds dependency constants for plugins so mods can rely on plugins without always producing script errors when the plugin is missing
testing
If you trust me :)
test plugin : rrplug_test.zip
test mod : cat_or_not.ProximityChat.zip
expected result : no compile errors and a message on CLIENT load "we have RRPLUG_TEST" with the plugin