All Functions Modules Pages
savedata

Functions

BOOLEAN data.save (STRING data, STRING gametittle, STRING gameid, STRING subtittle, STRING description, NUMBER mode)
 Allows to save the game. More...
 
BOOLEAN data.save (STRING data, STRING gametittle, STRING gameid, STRING subtittle, STRING description, NUMBER mode, STRING resources)
 Allows to save the game. More...
 
STRING data.load (STRING gameid, NUMBER mode)
 Allows to load a savegame. More...
 
STRING data.delete (STRING gameid)
 Allows to delete savedata. More...
 

Detailed Description

Savegames.

Function Documentation

BOOLEAN data.save ( STRING  data,
STRING  gametittle,
STRING  gameid,
STRING  subtittle,
STRING  description,
NUMBER  mode 
)

Allows to save the game.

Parameters
dataData to save (up to 256 chars).
gametittleTitle which is shown on the VSH or the save/load dialog (up to 128 chars).
gameidOur game ID, specially for distinguish our savedatas (up to 13 chars).
subtittleSavedata subtitle (up to 128 chars).
descriptionDetails or description of the savedata (up to 1024 chars).
modeMode of saving data:
  • 0 For show save dialog (5 slots).
  • 1 Autosave (dialog not shown).
Returns
true If saving data success, false otherwise.
BOOLEAN data.save ( STRING  data,
STRING  gametittle,
STRING  gameid,
STRING  subtittle,
STRING  description,
NUMBER  mode,
STRING  resources 
)

Allows to save the game.

Parameters
dataData to save (up to 256 chars).
gametittleTitle which is shown on the VSH or the save/load dialog (up to 128 chars).
gameidOur game ID, specially for distinguish our savedatas (up to 13 chars).
subtittleSavedata subtitle (up to 128 chars).
descriptionDetails or description of the savedata (up to 1024 chars).
modeMode of saving data:
  • 0 For show save dialog (5 slots).
  • 1 Autosave (dialog not shown).
resourcesPath which contains the resources which will be saved or shown in our savedata. The resources you can customize are these, and must match the name:
  • ICON0.PNG Savedata icon, size 144*80.
  • ICON1.PMF Video to be shown on the savedata (only at XMB).
  • PIC1.PNG Background image for the savedata, size 480*272
  • PREVIEW.PNG Icon to be shown in the save dialog.
  • SND0.AT3 Sound to play in the savedata, .at3 format and XMB only.
Returns
true If save success or false otherwise.
STRING data.load ( STRING  gameid,
NUMBER  mode 
)

Allows to load a savegame.

Parameters
gameidMust be the same ID used in the data.save() function.
modeLoad mode:
  • 0 for show the load dialog and choose savedata,
  • 1 Autoload, loads the oldest savedata(requests confirmation).
Returns
The loaded data, or nil in case of error.
STRING data.delete ( STRING  gameid)

Allows to delete savedata.

Parameters
gameidMust be the same ID used in the data.save() function.
Returns
Nothing. Due on the Delete savedata dialog will indicate the result.