EVENT LOADGAME: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
m This event has a RETURN value
 
Line 1: Line 1:
{{EventTable|EVENT_LOADGAME|Current Player|[[i|Player->i]]|none}}
{{EventTable|EVENT_LOADGAME|[[screenpeek]]|[[i|Player->i]]|1 value}}


EVENT_LOADGAME is a [[EDuke32 event list|Game Event]].
EVENT_LOADGAME is a [[EDuke32 event list|Game Event]].


This [[event]] is fired immediately after a savegame is loaded.
This [[event]] is fired immediately after a savegame is loaded.
[[RETURN]] is set to the value of [[userbyteversion]] stored in the savegame (read-only), if the savegame is not extended JSON format (as used by Ion Fury). Otherwise, the value is set to 0.
This can be used to detect the version of the game that is loaded in the savegame, for backwards-compatibility changes for example.


[[Category:Events]]
[[Category:Events]]

Latest revision as of 07:51, 4 February 2022

Event ID player# THISACTOR RETURN
EVENT_LOADGAME screenpeek Player->i 1 value

EVENT_LOADGAME is a Game Event.

This event is fired immediately after a savegame is loaded.

RETURN is set to the value of userbyteversion stored in the savegame (read-only), if the savegame is not extended JSON format (as used by Ion Fury). Otherwise, the value is set to 0.

This can be used to detect the version of the game that is loaded in the savegame, for backwards-compatibility changes for example.