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.

TaleScripts

From ATITD6
Revision as of 08:36, 12 April 2012 by Cegaiel (talk | contribs)
Jump to navigationJump to search

News

Last Talescript Update: April 9, 2012


Also, Jimbly has been working on a new release of Veggie Tales version 1.6.0 (Now up to version 1.6.3). While we have been testing a beta version and it was scheduled to be released around now (April 8-10th area), but we keep tossing out ideas that will improve it even more. So due to that, the release is be pushed back slightly. It will be worth the extra wait, for sure. We are very appreciative for Jimbly taking time out of his extremely busy schedule to do this!


Confirmed updates: (View ChangeLog.txt)

You will no longer need to use SVN or Git programs to get your updates, or dont even need it installed. Just click the update button from inside Veggie Tales and voila!

  • Update button: Click it to automatically download files AND sync from the current Talescripts version.
    • There is an Update button that appears in two locations. 1) There is always an update button inside the Luascripts menu. This Update button will glows green when it detects there is an update. 2) Only when an update is detected, it will also show a non glowing "Update Talescripts" button on the main menu. So its very hard to miss when a new update is available.
      • But it won't glow green (in luascripts menu) unless it detects there's been a new update on Talescripts.
      • If you make local changes, you can always click Update to get it to sync back to the old version.
  • Backup routine: Any files that exist, that has been modified since the last update, will be renamed from foo.lua to foo.000. If foo.000 exists, then leave foo.000 alone and back up to foo.001, .002, etc. So this means if you was tweaking something and apply an update, it will rename your work to .000, .001, so its not permenantly lost.
  • New Reference File: ScriptingReference.txt which will have the Veggie Tales scripting reference.
  • New Reference File: ThistleReference.txt - Notes about using Thistle Mode
  • Directory Restructure: All image/sound files (.png/.wav) is now located in its own folder, /images folder, instead of the main/root folder. Finding all of the .txt config/reference/log files will be easier to find in the main folder, now that they're not buried amongst many image files. This provides a cleaner root folder. So now when using a function like findAllImages(This.png); it would look in the 'images' folder (for This.png file)instead of the main folder. Or findAllImages(Fishing/Chatlog_nofishbit.png); will look in the /images/fishing folder.
  • Secured LUA execution so that it does not allow access to the OS module (running external programs) nor file I/O outside of text files in the VeggieTales directory. In other words, you can not access files outside the Veggie Tales folder (malicious activity).
  • Fixed various screen scraping functions to throw an error if they are called before srReadScreen instead of crashing.
  • Updated ScriptingReference to include srGetWindowBorders (larame).


Summary

Talescripts is a community driven project to develop, build and maintain a standard distribution of macros for ATITD. The problem, currently, is that each macro user must piecemeal together scripts from various sources, and there's no automatic way to sync up and acquire new scripts and bugfixes.


Any ideas, requests, comments, bugs, etc? Please use the Discussion page.


Recommended Solutions

Currently, only VeggieTales is supported, but support for AHK and ACTools is provided, if we can get some maintainers for those scripts.


Veggie Tales Updater

Recommended:

  1. Run Veggie Tales
  2. Click the Luascripts button
  3. Click the Update button


SVN option

  1. Install TortoiseSVN: http://tortoisesvn.net/downloads.html
  2. Create C:\TaleScripts
  3. right click on C:\TaleScripts and select SVN Checkout
  4. use https://github.com/Vaevictusnet/Talescripts as your target
  5. go into your c:\TaleScripts\trunk\VeggieTales folder and enjoy!


Git option

  1. Install msysgit: http://code.google.com/p/msysgit/downloads/list
    • Should be the file that looks like: msysGit-netinstall-#.#.#-preview#.exe
  2. Install TortoiseGIT: http://code.google.com/p/tortoisegit/downloads/list
    • get the latest version for your system 64-bit or 32-bit
  3. Create C:\TaleScripts
  4. right click on C:\TaleScripts and select Git Clone
  5. use git://github.com/Vaevictusnet/Talescripts.git as your URL
  6. go into your c:\TaleScripts\VeggieTales folder and enjoy!


Syncing (Updating to Latest Copy)

Veggie Tales v1.6.0: (Coming soon)

  • Click the Update button


Git/SVN options:

  • Just use SVN Update or Git Pull with the default options. These options are accessible by right clicking the Talescript folder (in Windows Explorer/My Computer).
    • Synching is the same thing as 'Check for Updates' and patch any files that are needed.


Developers

  • Use Git, for best results. Fork and talk to Vae, Cegaiel, or KasumiGhia about getting pulled into the main release. We can assist if you're unfamiliar with the tools.
  • We also welcome any tweaking/updates/additions that you might come up with. Just let one of us know, you dont have to do the 'git thing', we can do it for you. Just need a link to or email with the file.


Latest Updates

Note in addition to the below summmary, you can also view updates to the repository such as: compare files, see the before and after in the macro source code, etc at https://github.com/Vaevictusnet/Talescripts


  • Apr 8, 2012:
    • UPDATE fishing.lua, fishing_func.inc
      • Updated comments/instructions at top script and in window and in the program window. Major tweaking project/greatly improved, not everything will be listed here, but here is the major ones:
      • Has better error checking/trapping, improved gui status message and Log entries.
      • It now refreshes the lure menu upon starting the script and after using the last lure on the list. This will refresh your pinup menu and reindex, helps prevent it from trying to use lures that were lost recently (causing errors). Also upon losing a lure, it will advance to the next lure to prevent it from trying to fish again with the same one (in case that was your last lure). If you had more than one lure of the lost type, then it will see that on the next reindex.
      • Added new fish: Queen Lionfish to array/database in Fishing_func.inc as well as needed image.
      • Added more stats to screen and fish log.
      • Replaced Fishing/Chatlog_time_11.png. Previously you would get Time errors when trying to fish in the 11:00 hour. New image will fix that.
      • Delete Fishing/Image_rainbow.png - This was an old screenshot someone made and got included back in the old days ^_^
      • Add Fishing/Chatlog_Fish_QueenLionfish.png - New fish that didn't exist in old version. Also added needed entry to Fishing_func.inc.
      • Changed/Added multiple images, in fishing folder, to support this update.
      • New custom variables you can set, what gets logged in the file. You can now view a log file that is almost exact to the main chat screen, in ATITD. GUI shows how many odd, strange, unusual fish you seen, how many lures you lost, how many casts made, how many fish caught and db.
      • NEXT (not this one) update will create a new file, fishstats.txt to show you the statistics of your previous fishing session (same as gui statistics).
    • UPDATE boards.lua - Added a needed delay to make sure all benches get clicked correctly. Adjust the timer between clicks (can be configured by user at top of script). It now also shows how many windows its refreshing (pinned up) and how many windows it is clicking. If you see it is clicking less windows than its refreshing, then that suggests one of your carp blades needs replaced.
    • UPDATE window_unpin.lua - Revamped the code, 1st version was sloppy and a quicky job. Now shows status message every step of the way. Now searches for windows to unpin with 2 methods. Method 1 searches for ThisIs.png and Method 2 searches for Unpin.png By searching both methods, it will now choose all possible windows (including expired windows ie flax window that turned into a seed). Added a ton of comments in the code.
    • UPDATE windows_opener.lua - Minor update to instructions. Now informs you that 'Right click opens a menu as pinned must be ON' in the window.
    • UPDATE window_arranger.lua - Revamped the script so you no longer need to edit the file, manually, each time you do a different building/machine. Now it presents a pulldown menu. Just select the the machine from the pulldown menu and it will use the appropriate layout. Also added layout for Carpentry Benches.
    • UPDATE paint_watch.lua - Replaced with a more an updated version by Ofabit (aka Ofalot) from Tale 5 library. It's still an old version, but better than the original paint_watch.lua thats in Veggie Tales currently. The butttons are in two columns now and you can see the entire screen and status messages without having to resize the Veggie Tales window.
    • UPDATE multi_click.lua - Minor update: Added a second askforwindow (Press Shift to continue routine) in case you need to put ATITD in focus first, to avoid windows not found errors.


  • Apr 1, 2012
    • ADD flax_stable.lua by Tallow. Does flax and flax seeds in one script. An all new way of addressing the issue of pin ups hanging during pin up and refocusing that plagued the old Flax scripts. Many fall back features will ensure it is almost foolproof. Most excellent, I did 6k flax without any errors :)
    • RENAME flax.lua to flax_old.lua, flax_seeds.lua to flax_seeds_old.lua, hackling_rack.lua to hackling_rake.lua
    • UPDATE barrel_vise.lua - Minor fix to typo in error message from 'Could not find Barrel Vice windows' to 'Could not find Barrel Vise windows'
    • UPDATE hackling_rake.lua - Changed sleep timer from '10*60*5' (which is 3000 (3 seconds)) to 1500 (1.5 seconds). After eating 18 endo food + 3 from acqueduct tower bonus (total 21 endo), I found it was going to slow and wasting precious time from the cooked meal. Also changed the prompt box that asks "How many cycles" to "How much flax to process?". It will now divide your input by 10 (rounded down) and use that for cycles. So if you say you are processing 700 flax, then it will do 70 cycles.


  • Mar 26, 2012
    • ADD Thermometer.lua by Skyfeather. Ensure your heater control is set to standard, hover the mouse over the glory hole when you press shift. May still bungle 20% or so of thermometers.
    • Updated 70% of the macros to ensure there is error catching. In other words, if you start a macro up and it can not find the pinned menus it usually just displays and hangs on 'Buttons not found', thus forcing you to break the script with Ctrl+Shift. Now it will immediately exit the script and display an error message (ie 53: Can not find 'Forge' windows.). A prime example is the Forge and Casting Box macros. Previously if no pinned windows were found, it would say 'Buttons not found', but after a 2 second delay, it would still continue the script by counting down as though it did find a pinned menu.
    • Replaced/Updated a couple of images to ensure compatibility with all the macros. Readded Kettle_Take.png. Removed the flaxoldegypt.png, flaxnile.png and flaxtedra.png. These are no longer needed as the flaxgeneric.png works for all flax, including future hybrids.
    • UPDATE crematory.lua Moved the askforwindow() routine (Press Shift key to continue) from 'before' you fill in boxes to: 'after' you fill in boxes. Ocassionally I get 'Crematory window not found errors' unless I put ATITD in focus first (even in high priority mode). By moving the 'Press shift key to continue' to after filling in the boxes, you now have an opportunity to put ATITD in focus, if needed.


  • Mar 24, 2012
    • ADD/REPLACE glass.lua with Skyfeather's update - More time efficient and doesn't need to stop making glass items to spike the temperature. Nice job!
    • ADD window_unpin.lua by Cegaiel - Will right click all windows to unpin them. Note the word 'This' must be visible in the windows for it to be clicked. I find this handy after running 20-25 thistle gardens. Yes this will even unpin windows that are overlapping each other, such as when you use the thistle_new layout (from window_arranger.lua).
    • UPDATE brick_rack.lua, kettles_full.lua and kiln.lua with the above unpin routines. It now will pause and wait for the Shift key before proceeding to unpin. Occassionally I get errors if I do not put ATITD window in focus first (even in high priority mode). This will fix that issue by waiting for you to put ATITD in focus first (if needed). This will give you the opportunity to put ATITD in focus before macro starts.


  • Mar 19, 2012
    • UPDATE windows_arranger.lua - Added paper press, brick racks and kiln layouts.
    • Removed some redundant images from VT folder and images not being used.
    • REPOST Forge.inc, uploaded wrong one yesterday
    • DELETE kettle_unstoked.lua (as the unstoked functions are still included in below Kettle_Full.lua.
  • ADD - the following macros from Bardoth:
    • Brick_Rack.lua - Also tweaked it by adding his "Unpin Windows" button from the Kettle Full script - Nice feature!
    • Kiln.lua - Also tweaked it by adding his "Unpin Windows" button from the Kettle Full script - Nice feature!
    • Kettle_Full.lua - Runs stoked and unstoked kettles.
    • Hackling_Rake.lua - Runs hackling rake and will only click if none of your skills are in the red.
    • Wheat.lua - Keeps your wheat beds watered and harvests them when its time.


  • Mar 17, 2012
    • FIX Forge.inc script - Got broken during last update, this is now fixed.
    • ADD Simon.lua macro by Tallow - Allows you to set click points and it will repeat the pattern. Idea for pinning up a menu, such as paints and have it repeat upon demand.


  • Mar 10, 2012
    • Added Casting.lua / Casting.inc - Casting Box macro by Bardoth
    • Adjusted project times on Forge.inc (added Jan 29) to have less gaps between projects. There was 30s gap on 10 min projects and 60s gap on 15m projects (gap meaning the time between a project getting done and when the next one was clicked to start). Previously the formulas were 70s * project time (ie 70*15000 for a 15m project) which causes the times to drift over time. Times are now in Teppy Time: 1m = 66s + 3 seconds 'safety net' in case of lag (total 69s), etc. I also applied the new times to Casting.inc macro before adding it...


  • Feb 24, 2012
    • Added Crematory.lua - Crematory macro by Tallow


  • Feb 22, 2012
    • Furthur fine tuning to onions2.lua. All updates/tweaks explained in Onions2_update_notes.txt which is included in the luascripts folder.


  • Jan 29, 2012
    • More powerful barley script added: needs a Warehouse and Rain Barrel though
    • Added Forge script by T5 Darkfyre. Also fixed the 'image nill' error on Sheeting and Wire!
    • Fishing Script!
    • Watermine!
    • Strength Monitor!
    • Multiple Barrel Vise!
    • Improved Onions
    • Improved Flax
    • Instructions!


Current File List

This is the current file list as of Apr 9, 2012.

This only shows the 'luascripts' folder inside of Talescripts.


File NameFile Size
acro.lua881
barley.lua10,651
barley2.lua13,703
barrel_grinder.lua2,745
barrel_vise.lua7,799
boards.lua1,503
brick_rack.lua6,624
Casting.inc16,794
Casting.lua4,098
cc_Assist.lua3,454
chem_helper.lua29,418
clay.lua5,741
click_max.lua1,096
crematory.lua19,183
cut_stones.lua2,490
essences.lua14,838
Fishing.lua23,451
Fishing_Func.inc5,080
flax_common.inc8,290
Flax_old.lua8,061
Flax_seeds_old.lua6,680
Flax_stable.lua24,073
forge.inc31,815
forge.lua4,183
glass.lua8,768
Hacking_Rake.lua2,861
kettle_full.lua16,178
kiln.lua8,522
mining_t5.lua6,214
multi_click.lua2,856
onions.lua8,284
onions2.lua11,797
onions2_update_notes.txt8,089
paint_watch.lua5,654
paper_press.lua2,813
papyrus.lua4,683
pump.lua783
quarry.lua7,494
raeli_color_mon.lua2,719
Sand_mine.lua.t51,905
screen_reader_common.inc1,726
silt.lua3,889
simon.lua3,695
single_click_stat_mon.lua2,196
single_click_Strength_mon.lua1,667
testScript.lua.example650
thermometer.lua2,600
thistle_custom.lua6,483
thistle_new.lua8,540
thistle_new_updown.lua.beta9,162
timer.lua776
UITest.lua.example1,115
ui_utils.inc4,510
watermine.lua4,554
wheat.lua3,367
window_arranger.lua5,699
window_opener.lua1,567
window_unpin.lua5,934
wood.lua2,608