Rebuild option in GUI script / User selection dialog in Lua scripts

Started by ipatrol

ipatrol Lv 1

I wanted to create a script that would wiggle and rebuild a selected section, but the two tools are only found in different script types. These should each be added as features to their respective scripting engines.

jeff101 Lv 1

For a list of links about LUA programming, see
http://foldit.wikia.com/wiki/LUA

Below are some of my favorites:

http://foldit.wikia.com/wiki/Foldit_Lua_Functions
lists the many Foldit function available in LUA.

http://www.lua.org/manual/5.1/manual.html
gives an overview of LUA.
http://www.lua.org/manual/5.1/#index
is its index and table of contents.

http://lua-users.org/wiki/TablesTutorial
is searchable and gives pages like this about particular LUA topics,
here tables (like arrays, vectors, or matrices, but more general).

It helps a lot to look through the public and group-shared Foldit recipes:
http://fold.it/portal/recipes
for things that sound like what you want to do.
You can then look at their source code and imitate the bits you need.
Maybe you will just want to tweak a recipe that someone else wrote.
Sometimes you can get more detailed advice by messaging the authors of these recipes.

It seems like writing scripts in LUA V2 is the best way to go right now.

These are all suggestions from someone fairly new to the site
(I started about a month ago) who has previous programming experience.

Good luck!