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

Late spring-clean #39

Merged
merged 5 commits into from
Jun 5, 2023
Merged

Late spring-clean #39

merged 5 commits into from
Jun 5, 2023

Conversation

Kenzzer
Copy link
Collaborator

@Kenzzer Kenzzer commented Jun 1, 2023

Its time for some clean up around the extension.

  • First we add smsdk_ext.cpp, while it has no uses as of right now. It might become useful, if PR Deprecate CreateInterface alliedmodders/sourcemod#2001 isn't merged by the time we use more functionalities from tier1.

  • This fixes Extension broken as of SM 1.12 revision 6998 #38. And because Add methods for clearing netprop cache alliedmodders/sourcemod#1943 still isn't merged, we can't rely on the gameinterface versioning to tell which definition of CHalfLife2 we're dealing with. So we piggy back off sourcemod's version convar. I've dug for alternatives that wouldn't require parsing the convar, but SM is completely opaque when it comes to letting plugins or extensions which version is currently running.

  • Finally, ubuntu-18 has been deprecated for github CI. So replace it with the image ubuntu-19. I've also added windows-latest to the os matrix, since windows-2022 has become available and no longer maps to windows-2019 which we were already building against.

@Kenzzer Kenzzer requested a review from KitRifty June 4, 2023 12:52
Copy link
Collaborator

@KitRifty KitRifty left a comment

Choose a reason for hiding this comment

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

Tested with both 1.12.7024 and 1.12.6983 on Windows by repeatedly reloading the Scout NextBot plugin and I didn't run into any issues.

Having to rely on the "sourcemod_version" cvar is a huge stinker but seems like the most effective solution for now. Once 1.12 becomes stable, the CHalfLife2 hack should be revisited, as well as when we decide to drop 1.11 support and/or alliedmodders/sourcemod#1943 gets merged, whichever comes first.

@Kenzzer Kenzzer merged commit a8e2894 into master Jun 5, 2023
@Kenzzer Kenzzer deleted the sm1.12 branch June 5, 2023 08:40
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.

Extension broken as of SM 1.12 revision 6998
2 participants