When I started playing four years ago, one of the most confusing parts of Foldit was scripting.
The sample recipes in the cookbook were all GUI recipes. It was less than clear that there were two types of Lua recipes, V1 and V2, which use different functions. The was no mix-and-match between the two versions, so adding V2 functions in a V1 recipe is a no-go.
The wiki didn't do a lot to reduce the confusion. A lot of the scripting pages were written before version 2 of the Foldit Lua Interface was introduced. There was a lot of information, but not a lot of guidance.
So at long last, it was time for an overhaul. It's still a work-in-progress, but here's what we have so far.
The beginner scripting tutorials have been completely revised and converted to V2. There are now five tutorials, each with a technical supplement.
|Beginner 1||Tech 1|
|Beginner 2||Tech 2|
|Beginner 3||Tech 3|
|Beginner 4||Tech 4|
|Beginner 5||Tech 5|
The Lua Scripting page has been heavily reworked. The list of V1 functions has been removed in favor of the auto-generated version. The Lua syntax reference has been moved to its own page. Some of the other links have been updated.
The intermediate and advanced scripting tutorials are next in line for updates.