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

static variables are not reset after map change which causes features failure depends on tick >< GetGameTime #51

Open
HotoCocoaco opened this issue Apr 9, 2022 · 3 comments

Comments

@HotoCocoaco
Copy link
Contributor

Well not all of them. eg 173 able to move around even if ppl are watching. 096 not able to rage when being watching. the stamina hud test not displaying. after sm plugins reload scp_sf it works normal.
nohud

@HotoCocoaco
Copy link
Contributor Author

Adding sm plugins reload scp_sf to server.cfg is a solution. But not a good solution.

@HotoCocoaco
Copy link
Contributor Author

L 04/09/2023 - 14:55:19: [SM] Exception reported: Invalid timer handle 9ba005c8 (error 3)
L 04/09/2023 - 14:55:19: [SM] Blaming: scp_sf.smx
L 04/09/2023 - 14:55:19: [SM] Call stack trace:
L 04/09/2023 - 14:55:19: [SM]   [0] KillTimer
L 04/09/2023 - 14:55:19: [SM]   [1] Line 554, scp_sf/gamemode.sp::Gamemode_RoundEnd
L 04/09/2023 - 14:55:19: [SM]   [2] Line 636, scp_sf.sp::OnRoundEnd
L 04/09/2023 - 14:55:19: [SM]   [4] AcceptEntityInput
L 04/09/2023 - 14:55:19: [SM]   [5] Line 1257, scp_sf/stocks.sp::EndRound
L 04/09/2023 - 14:55:19: [SM]   [6] Line 537, scp_sf/gamemode.sp::Gamemode_CheckRound
L 04/09/2023 - 14:55:19: [SM]   [7] Line 2560, scp_sf.sp::CheckAlivePlayers

@HotoCocoaco
Copy link
Contributor Author

Reason found:
some important static variables are not reset after map change while engineTime from GetGameTime() is reset to 0 after mapchange.

@HotoCocoaco HotoCocoaco changed the title Have to reload the plugin to make plugin works after map changes static variables are not reset after map change which causes features failure depends on tick >< GetGameTime Jun 25, 2024
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

No branches or pull requests

1 participant