Skip to content

fix(logic): model precaching checks#23

Merged
Rushaway merged 5 commits intomasterfrom
Rushaway-patch-1
Mar 21, 2026
Merged

fix(logic): model precaching checks#23
Rushaway merged 5 commits intomasterfrom
Rushaway-patch-1

Conversation

@Rushaway
Copy link
Copy Markdown
Member

Added error logging for model precaching failures.

Added error logging for model precaching failures.
Copilot AI review requested due to automatic review settings March 21, 2026 09:24
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves robustness of the Shop_ZRSkins SourceMod plugin by adding checks and logging around model precaching so invalid/missing models don’t get registered or applied.

Changes:

  • Bumped plugin version to 1.2.1.
  • Added a post-PrecacheModel verification (IsModelPrecached) with LogError and skipping of invalid items.
  • Prevented SetEntityModel calls unless the requested model is already precached.

Comment thread addons/sourcemod/scripting/Shop_ZRSkins.sp Outdated
Comment thread addons/sourcemod/scripting/Shop_ZRSkins.sp Outdated
Ensure KeyValues object is deleted after use to prevent memory leaks.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread addons/sourcemod/scripting/Shop_ZRSkins.sp
Comment thread addons/sourcemod/scripting/Shop_ZRSkins.sp Outdated
Added error handling for empty skin paths and improved model precaching logic.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@Rushaway Rushaway merged commit 943ee5c into master Mar 21, 2026
6 checks passed
@Rushaway Rushaway deleted the Rushaway-patch-1 branch March 21, 2026 10:20
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