The Wiki for Tale 6 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Difference between revisions of "User:KasumiGhia/lua"

From ATITD6
Jump to navigationJump to search
Line 8: Line 8:
 
The below is an edited version of the onion planting macro.
 
The below is an edited version of the onion planting macro.
  
<b>[http://atitd.nabiki.org/T6/onions2.lua onions2.lua]</b> (right click and save into the veggietales/luaScripts folder)
+
<b>[[File:Onions2.zip]]</b>  
 +
* extract the archive to the VeggieTales directory.  Image should end up in the top level, the script in the lua directory.
  
  
Line 38: Line 39:
 
**Sets refocus_click_time to 50 if >16 plots
 
**Sets refocus_click_time to 50 if >16 plots
  
 +
*FEATURE: If you have a sheep pen pined open, it'll put all your onions in it at the end of every harvest cycle. 
  
  
<b>[http://atitd.nabiki.org/T6/onions2.lua onions2.lua]</b> (right click and save into the veggietales/luaScripts folder)
 
  
 +
<b>[[File:Onions2.zip]]</b>
 +
* Install the images in the top level of the VeggieTales directory and the script into the luaScripts directory.  (You should be able to just extract the archive to the VeggieTales directory.  I think I've got everything set correctly.)
 
<br>
 
<br>
  

Revision as of 23:27, 29 December 2011

My list of modified LUA files

All these scripts are written as new scripts/files so if veggietales is updated without including these fixes/changes my scripts should keep working.


Onions macro

The below is an edited version of the onion planting macro.

File:Onions2.zip

  • extract the archive to the VeggieTales directory. Image should end up in the top level, the script in the lua directory.


Updates/Tweaks by KasumiGhia:

  • FEATURE: Added prompting for size of area to plant, instead of requiring script editing to change
  • FEATURE: If you claim to have enough jugs to handle the entire planting, it will assume they're already filled, and that it doesn't need to refill them. This allows you to plant at a distance from water.
  • FIX: if slate shows up it will move the fill water icon, causing the original script to error. This version figures out the location of the icon each time to avoid this. (I think this is working, but I'm not 100% sure, it hasn't happened again for me yet)
  • FIX: a couple times it couldn't find the location of the new onion plant. I've added additional offsets to find it.
  • FIX: The script didn't move back to the starting point correctly, so it ended up walking out of the plantable area. I fixed it so it moves back closer to the right place. (still not perfect though)

Updates/Tweaks by Cegaiel:

  • FEATURE: Will now refresh the plant window, after harvesting.
    • This is in case you used all your seeds during planting which makes the plant window to be blank (as there are no more seeds in inventory after you planted your last seed).
    • By refreshing the plant window after harvesting, it will not cause an error (Plant window not found) on 2nd and subsequent passes.
  • FIX: screen_refresh_time changed from 100 to 300, to help prevent pin up problems on slower computers. This doesn't need to be so fast as the game doesn't really keep up anyways on 5x5 or small grids.
  • FIX: Added instructions in the script that 'Right click Pins/Unpins a Menu' must be ON and 'Right click opens a Menu as pinned' must be OFF.

Updates/Tweaks by Taral:

  • FIX: Found/corrected minor bug where the 'fill jugs' routine was off by 1.
    • If you claim to have enough jugs it is not suppose to ask to refill jugs, at beginning. However this was off by one (ie if you said you have 60 jugs AND if your grid required 60 jugs, you would be required to enter 61 jugs to not force you to refill jugs at beginning).
  • Also condensed my 3 lines of updated code, into 1 line of code (refresh plant window routine).

And More By KasumiGhia:

  • FIX: refill water after harvest if that prevents having to refill during the watering cycle. (So it's faster during the critical time)
  • FIX: Run faster if the user selects a large number of plantings. I can successfully run a 20 plant area. The previous version starts failing at around 15.
    • Sets screen_refresh_time back to 100 if >9 plots
    • Sets refocus_click_time to 100 if >9 plots
    • Sets refocus_click_time to 50 if >16 plots
  • FEATURE: If you have a sheep pen pined open, it'll put all your onions in it at the end of every harvest cycle.


File:Onions2.zip

  • Install the images in the top level of the VeggieTales directory and the script into the luaScripts directory. (You should be able to just extract the archive to the VeggieTales directory. I think I've got everything set correctly.)


Older scripts already included in the latest version of VeggieTales

Generic Flax lua

This is an edit of the existing flax and flax_seeds macros to (hopefully) handle any flax seed. It should handle any flax, with any number of weedings/waterings.

  • you will need the following image, Save this file in the veggietales folder with the rest of the images

Flaxgeneric.png Flaxgeneric.png

  • here are the two flax lua, one for seeds and one for normal flax production
  • Flax.generic.lua (right click and save into the veggietales/lua folder)
  • Flax_seeds.generic.lua (right click and save into the veggietales/lua folder)

just start and use the lua´s like the original flax lua´s.

Fixed paper_press.lua

If you get the wood paper manufacturing skill the paper presses change in a way that breaks the paper_press.lua script. It's easy to fix. just save the following image over the current one in the veggietales folder.

PaperLine.png PaperLine.png

For T5 only, not yet useful on T6

chem_helperT5.lua

  • chem_helper.lua updated with all the T5 essence values I could find.
  • chem_helperT5.lua (right click and save into the veggietales/luaScripts folder)