Skip to content

Conversation

teammate165
Copy link

Requires SteamWorks and SMJansson include to compile and their extension files to function.

Default value for Max Tier changed to 7
Generalized Chat Prefixes
Added missing includes for compiling.

Requires SteamWorks and SMJansson include to compile and their extension files to function.
Default value for Max Tier changed to 7
Generalized Chat Prefixes

Added missing includes for compiling.
@sneak-it sneak-it requested review from sneak-it and mbhound December 2, 2020 13:08
Copy link
Member

@sneak-it sneak-it left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my notes for requested changes, also:

  • Please remove additional includes that are not shipped with MCE - we do not want to be responsible for keeping includes up to date. These would go great as Compilation Requirements linked in a Readme file (steamworks, colors, emitsoundany, smjansson)
  • I generally try to stay away from 3rd party extension requirements due to them being an absolute pain to recompile when they break after major game/SM updates. Because global API plugins use it I won't require it for now, but if you could utilize the sm-json library which takes care of json responses rather than SMJansson that would be a huge plus: https://github.com/clugg/sm-json

Thank you!

}
if (StrEqual (szName, "gokz-core"))
{
g_bKzTimer = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GOKZ should be on its own boolean - returning that KZTimer exists breaks GOKZ usability with other parts of this plugin.

}
if (StrEqual (szName, "gokz-core"))
{
g_bKzTimer = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto with above

A replacement for the double Library check to account for both GOKZ/KZTimer.

However I haven't tested this on a LAN server where people usually ignore the GlobalAPI error (usually due to missing SMJansson/Steamworks extensiosn). I'm hoping that since the plugin failed to load it's library won't be registered hence the bool value for KzGlobal will be false.

Minor changes:
- Proper usage of ChatPrefix Convar
- Commented the "_" line in universal.txt
- Renaming the rockthevote_extended config file, enforcing a naming scheme
- Removed 3rd party includes
- Added guide for compiling.
@teammate165
Copy link
Author

Apologies for disappearing, now that I have alot of free time I'd like to continue working on this.

Instead of checking for KZTimer and GOKZ libraries, we'll check for GlobalAPI's library. However I'm unsure whether GlobalAPI's library will still be registered if the plugin fails to load (most common reason for failure would be missing SMJansson/Steamworks). I'm thinking if the plugin fails to load due to missing dependencies, some of its function such as RegPluginLibrary won't be executed. Please correct me if I'm wrong.

As for integrating sm-json, I'll try to look up examples of its used and hopefully get it working in MCE.

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

Successfully merging this pull request may close these issues.

2 participants