Scripts

Case number:671071-2007685
Topic:Game: Other
Opened by:Mike Cassidy
Status:Open
Type:Suggestion
Opened on:Thursday, April 11, 2019 - 21:21
Last modified:Monday, April 22, 2019 - 18:59

It would be nice if line numbers were added. Error messages give you numbers but to find the line for a large script you need to cut paste it to BBEdit then use its line numbers.

(Thu, 04/11/2019 - 21:21  |  1 comment)


LociOiling's picture
User offline. Last seen 49 min 6 sec ago. Offline
Joined: 12/27/2012
Groups: Beta Folders

Agree with the suggestion, but not sure about the priority relative to the other problems.

For a Lua recipe, there's an alternative to cut and paste:

  1. open the recipe in the Foldit recipe editor
  2. click "Save As"
  3. click "Export"
  4. locate the spot where you want to save the recipe
  5. give the saved recipe a name, preferrably including ".lua" as the extension

Now you can open the recipe in your favorite full-function editor, BBEdit or what have you.

On Windows, Notepad++ is free, and has an option to show line numbers. If you used ".lua" in the filename (MyRecipe.lua or the equivalent), Notepad++ highlights Lua keywords and gives the option to collapse or expand multi-line commands like "if...then...end" or "for...end".

This method is a little clunky for just finding one line, but it does give you lots of options.

If you change the recipe, you can bring it back into Foldit using "Load" -> "Import" in the recipe editor, reversing the export process.

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