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

Document Copy/MoveSaveSlot(), new DeleteSaveSlot() behavior #268

Open
ericoporto opened this issue Nov 21, 2024 · 1 comment
Open

Document Copy/MoveSaveSlot(), new DeleteSaveSlot() behavior #268

ericoporto opened this issue Nov 21, 2024 · 1 comment

Comments

@ericoporto
Copy link
Member

ericoporto commented Nov 21, 2024

https://github.com/adventuregamestudio/ags-manual/wiki/Globalfunctions_General#deletesaveslot

  • Added CopySaveSlot() and MoveSaveSlot(), which moves existing save to another slot.
  • Document that DeleteSaveSlot() no longer rearranges the slots (from PR Script API: expand methods for displaying list of files and saves ags#2541)
    • Calling DeleteSaveSlot() on a slot within 0-50 range will no longer secretly move a save with the topmost number (within the same range) to fill the emptied slot.
/// Copies the save game from one slot to another, overwriting a save if one was already present at a new slot.
import void CopySaveSlot(int old_slot, int new_slot);
/// Moves the save game from one slot to another, overwriting a save if one was already present at a new slot.
import void MoveSaveSlot(int old_slot, int new_slot);
@ericoporto ericoporto added this to the AGS 3.6.2 milestone Nov 21, 2024
@ericoporto ericoporto mentioned this issue Nov 21, 2024
43 tasks
@ericoporto
Copy link
Member Author

ericoporto commented Dec 16, 2024

Still need to document the behavior change in DeleteSaveSlot, but added new functions here
https://github.com/adventuregamestudio/ags-manual/wiki/_compare/a36fe7a5730138438493a010d2f8e25b906f8a8e...fef7be5aa697621462a0499966353329d9363eb4

Probably need to also think of an example that reproduces the old behavior using movesaveslot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant