Back to Recipes Homepage
recipe picture
Recipe: Deep Rebuild 2020
Your rating: None Average: 4.7 (52 votes)


Name: Deep Rebuild 2020
ID: 103246
Created on: Thu, 01/30/2020 - 06:49
Updated on: Sun, 03/08/2020 - 13:00

Easier to read for beginners; Dev mode added for using a debugger (like Zerobrane Studio) to step through code locally to learn it more easily.

Best For


Joined: 10/03/2019
Groups: None
This is a debug-able version of "Tvdl enhanced DRW 3.0.2"

This version offers the following for users who are new to foldit and lua scripting:

1) Added tons of comments and documentation to make it easier to learn foldit scripting and lua coding in general.
2) Changed names of variables and functions to more easily understand their purpose.
3) Increased code spacing to allow easier viewing (especially for those of us over 40 years old).
4) Added debug functions with random return value generation for debugging locally (also as a learning aide).

Visit for the latest scripts, readme and tips
Visit to Learn more about the original script "Tvdl enhanced DRW 3.0.2" by "Timo van der Laan"


1) Download and install ZeroBrane Studio to learn how to write and debug Lua scripts, including the Rebuild2020.Lua script.
2) Although ZeroBrane Studio is an awesome Lua development environment, it does not have built-in version control abilities.
3) Only attempt to debug scripts in Visual Studio 2019 (VS-2019) or Visual Studio Code (VS-Code) if you want to get frustrated.
4) Although you can debug Lua scripts in VS-Code (with a free plug-in) it crashes often.
5) You cannot debug lua scripts in VS-2019, but you can check in changes to GitHub directly from VS-2019 (that's what I am doing).
6) See for tips on using GitHub within VS-2019

Learn more:
1. See also "Tvdl enhanced DRW 3.1.1" with small fixes and improvements here:
2. See also a different script approach, "Constructor v1.05" by "Grom" here:

Joined: 10/03/2019
Groups: None
Major updates! From version 1 to now version 54!

I just realized that the hundreds of times I have imported my changes, saved them and then ran them, that those changes were never shared to the foldit server. Wow!
So, this latest edition has a MASSIVE number of changes!
This latest version is actually version 54, with each version containing many changes.
Be sure to check out the "End of run" statistics and the "End of script" statistics in the log file. Very cool stuff. The code is also much easier to read now, better organized and has infinitely more comments. Enjoy! Bill

jawz101's picture
User offline. Last seen 13 hours 48 min ago. Offline
Joined: 03/07/2020
Groups: None
Option screens

Is there a way you can make the option screens wider instead of longer vertical? On my laptop resolution I cannot see the OK buttons at the bottom because they end up offscreen and I cannot drag the option boxes any higher.

jawz101's picture
User offline. Last seen 13 hours 48 min ago. Offline
Joined: 03/07/2020
Groups: None
and does this recipe do

and does this recipe do anything helpful as is or is it just a demo of developing a recipe? I didn't quite understand that aspect of the description.

Joined: 04/30/2020
Groups: None
Option screen

I have the same comment. As it is I cannot run this!

Want to try?
Add to Cookbook!
To download recipes to your cookbook, you need to have the game client running.



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