Add band strength and quick save slots to scripting
| Case number: | 845813-986949 |
| Topic: | Game: Tools |
| Opened by: | themarquis |
| Status: | Resolved |
| Assigned: | Seth Cooper |
| Priority: | 3 |
| Type: | Question |
| Opened on: | Tuesday, October 27, 2009 - 04:22 |
| Last modified: | Wednesday, February 22, 2012 - 22:06 |
As I've been working with scripting, I've started to realize there are two major components missing:
1) set band strength:
most band-based pull scripts don't work well because the full-strength bands are too powerful. For example, we might set the script to band two segments and then do a global wiggle for one turn. One turn(round?) will often pull the protein completely apart.
2) use quick save slots:
we can do a reset/restore recent best. That's good, but the problem is that there is no way to reset the game to a lower scoring state. The reason we might want to do this are numerous, but one example would be a "shake/wiggle or wiggle/shake" type script that tries a shake/wiggle, then restores to the prior state, then a wiggle/shake, and then restores to best. Something like a quick save slot would really fit the bill here.
On a similar note, is it possible to add the ability to read from a file? I'd like to write my scripts as text files and then just load them from there so as not to have to fiddle with the gui editor.
Thanks for all the hard work with scripting -- and keep adding features :) !
Topic Quick save:
As far as I know, there are 3 slots available in the game interface.
Shift-Ctrl+(1,2 or 3)to save and
Ctrl+(1,2 or 3)to load them.
So they are already there, they could to be "picked up" by script.
Allowing lua to simulate a keypress could make all hotkeys usable.
| Assigned: admin » Seth Cooper |
| Type: Suggestion » Question |
Now that you have "also added save and load structures functions to the scripting API", Which is a form of a quick save/load.
When will Quick save/load puzzle slots be added to scripting API ?
| Status: Open » Done |
Band strength and quicksave are done.
| Status: Done » Resolved |
Marking as resolved.




Affirmative.
Set band strength is available on the regular script, so on lua, it would be useful, too.
On "delicate" puzzles, I always set the band strength to very small values.
What also would be interesting is changing the band length by script.
And how about auto-assigning bands to each bond?