LUA V2 new function save.Slotisfree()

Case number:671071-993397
Topic:Game: Other
Opened by:gramps
Status:Open
Type:Suggestion
Opened on:Sunday, August 26, 2012 - 20:04
Last modified:Monday, August 27, 2012 - 02:16

Suggest a new LUA V2 function approximately like this:

Function: boolean save.Slotisfree(integer slot)
Description: true if there is presently nothing saved to the Quicksave slot. (Range 1 to 100)

By the way, since save.Quickload()is a void function, if you feed it a slot with no previous save in it there doesn't seem to be a way for the LUA V2 recipe to learn this and print out the "Nothing in slot #" message you get in the game using Ctrl-1, etc. Of course you can print() a warning if the score doesn't change. I don't know if this is a bug or if it's worth worrying about.

By the way ^2 ... would it be too difficult to start up a Feedback topic "Game:Recipes" ?

(Sun, 08/26/2012 - 20:04  |  1 comment)


Joined: 09/21/2011
Groups: Void Crushers

Because all saves are now also present as files so are available I suppose in a second recipe, I would suggest you take a look at my DRW, the position stack module. Easy to change it so it will give back the position when you do PushPosition.

Sitemap

Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, RosettaCommons