EVENT LOADGAME: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Created page with "EVENT_LOADGAME is a Game Event. This event is fired when a savegame is loaded. Category:Events"
 
m This event has a RETURN value
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{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 when 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.