Project:
RSS

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009542New issuesScriptingpublic2017-01-29 09:342017-02-11 12:10
ReporterDrakath 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionno change required 
PlatformOSOS Version
Summary0009542: [Request] Add "Server shutdown" quit reason to onPlayerQuit
DescriptionI have a save script that saves the game progress on two occasions: onPlayerQuit and onResourceStop (in case of restarting the resource). When the server shuts down or restarts, the save script is triggered two times. It would be great to have a quitType "Server shutdown" to prevent onPlayerQuit part from executing.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0025656)
arranTuna (manager)
2017-01-29 19:56

What is the quit type / reason when the server is shutting down currently? Also I don't see the issue because by the time onResourceStop is called there would be no players left so it wouldn't even be saving the data twice.
(0025659)
Jusonex (administrator)
2017-01-30 21:31

If you're looking for a more generic solution, using onElementDestroy instead of onPlayerQuit might fix your problem.
(0025668)
Drakath (viewer)
2017-02-08 20:58

Alright, this is not necessary after all. Close please.

- Issue History
Date Modified Username Field Change
2017-01-29 09:34 Drakath New Issue
2017-01-29 19:56 arranTuna Note Added: 0025656
2017-01-29 19:56 arranTuna Severity minor => feature
2017-01-30 21:31 Jusonex Note Added: 0025659
2017-02-08 20:58 Drakath Note Added: 0025668
2017-02-11 12:10 arranTuna Status new => closed
2017-02-11 12:10 arranTuna Resolution open => no change required


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker