ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Crafting => Topic started by: The Ghost on May 13, 2015, 06:33:06 PM

Title: TG Crafting Factory 2.8
Post by: The Ghost on May 13, 2015, 06:33:06 PM
Code: [Select]
;===================================================================
; Script Name: TG Crafting Factory
; Author: The Ghost
; Version: 2.8
; Client Tested with: 7.0.79.1
; EUO version tested with: 1.5 (version 334)
; Shard OSI / FS: OSI
; Release Date: 13 May 15
; Revision Date: 15 Oct 2019
; Purpose:
;     Craft Wood Pulps ,Blank Scroll, Arrow, Lockpick, Aids, Empty Bottles
;          Dough ; Sack Flour, Ethereal Soulbinder  Until no supply left.
; ========================================
;      _____________            ______________              _____
___  __/__  /______      __  ____/__  /________________  /_
__  /  __  __ \  _ \     _  / __ __  __ \  __ \_  ___/  __/
_  /   _  / / /  __/     / /_/ / _  / / / /_/ /(__  )/ /_
/_/    /_/ /_/\___/      \____/  /_/ /_/\____//____/ \__/

; ====================================
Code: [Select]
; ================== Variable that can be change by User ==========
Set %HideWhileWorking #true     ;  Set to #false if you don't Want to hide.
Set %ToolBag #true              ; set to true to  use Grab tool for bag
set %None_Stack #true          ; set to true to  set Drop not stack item bag
set %grabtool #false
set %Supply_Drag_Amount 80     ; <-------- Enter the Number of Supply Item you want.
set %ingot_Drag_Amount 50      ; <--------- Enter the Number of Ingot
set %wood_Drag_Amount 100
set %Fletching_Drag_Amount 2   ; Number of Arror to make
set %Cloth_Drag_Amount 500    ; <--------- Enter the Number of Cloth
set %Sand_Drag_Amount 1500     ; <--------- Enter the Number of Sand
set %EtherealSand_Drag_Amount 300  ; <--------- Enter the Number of Sand
; ==================== End Variable that can be change by User ==========
Special Thanks:
     - Manwinc for used of his crafting subs
     - Crisis  for used of sub container
     - TrailMyx for used Back pack sub
     - Cush for testing
     - Nobama for the coking suggestion

 Requirements:
    - You need to have a secure with appropriated supply needed (Bark Fragment, Wood Pulp Wood, Feather and
       iron ingots) inside it and within reach. Only have regular supply, no colours ingots or woods
    - Must have 29 tinker to craft tool and at least one tinker tool in your backpack.
    - ( This option is not  working right now) If you have no tinker skill, fill up your Resource bag with 
        appropriated tools.
    - It assume that you use an endless Decanter of Water to make Wood Pulp.

 Revisions:  Ver 1.0 First release
                  Ver 1.4 Change the menu
                  Ver 1.5 Add wait time to look for tinker tool.
                  Ver 1.6 Add fletching (Arrow ) and Hiding Option
                  Ver 1.7 Move Restock location and separate pause from Check Menu
                  Ver 1.8 Add the FindCol so we don't use colour resources.
                  Ver 1.9 Change sub status Box . Fine tune colour protection
                  Ver 2.1 Add Bottle making  (15 ept 15)
                  Ver 2.2 Remove Bottle and add Lockpick (14 Apr 16)
                  Ver 2.3 Add Aids Maker  ( 1 May 16)
                  Ver 2.4 Add Bottle making  (20 Jan 17)
                  Ver 2.5 Add Dough (21 Jan 17) . It only move Sack of Flour, not open Sack
                   Ver 2.6 Add Sack Flour (16 Feb 17)
                   Ver 2.7 Add Sweet Dough  in 2 stage( make dough and after make Sweet dough) 20 Feb 17).
;                             Fix the auto refil tool from a container.  Add a Check box  Bottle will auto setup.
;                             Add auto detect to make Rolking pin if low tinker and Skillet if higher Tinker.
 ;               Ver 2.8  Add Soulbinder Bottle (14 Oct 2019) With capability to store them in a own bag.
 
TO DO:  Fix the Status update. Not dispplay the update properly when less words use.
              Might add a weight Max & timer
              Fix the Resources bag tool.
              Add Regular water pitcher.

 Future Updates:
           Who know what I will be adding next?


Comment
        Choose the type of items you desire to crafting and this Script will craft it for you until he can't find  any supply.

 I have spend a great effort to make this friendly and easy to used. 
 
This should be a good support script for Crisis Fill Spellbook. http://www.scriptuo.com/index.php?topic=13136.0

Title: Re: TG Crafting Factory 1.0
Post by: Crisis on May 13, 2015, 07:36:55 PM
Looks good Ghost! I will give a workout tomorrow, running low on scrolls working on my Legendary Scribe script.
Title: Re: TG Crafting Factory 1.0
Post by: KaliOfLS on May 13, 2015, 09:37:20 PM
Nice, me too.
Title: Re: TG Crafting Factory 1.0
Post by: The Ghost on May 14, 2015, 03:15:40 AM
for the two person that download it. 
at Line 545.   the tinker skill read 50 and it should be 500.  thx.
Title: Re: TG Crafting Factory 1.0
Post by: manwinc on May 14, 2015, 05:25:00 PM
I'll need to get you some more updated crafting subs of mine that make the tools for you if you are low. Super useful.
Title: Re: TG Crafting Factory 1.0
Post by: Tidus on May 15, 2015, 06:58:08 AM
I'll need to get you some more updated crafting subs of mine that make the tools for you if you are low. Super useful.

I heart your crafting subs :)
Title: Re: TG Crafting Factory 1.0
Post by: The Ghost on May 23, 2015, 03:44:00 PM
So any problem from the people who try it.
Title: Re: TG Crafting Factory 1.0
Post by: gimlet on May 23, 2015, 04:14:39 PM
Hope to try it in the next day or 2!
Title: Re: TG Crafting Factory 1.0
Post by: Crisis on May 23, 2015, 08:39:20 PM
Works good, you may want to add in EN's sub for filling pitchers from a water trough in case users do not have an endless decanter. :)


http://www.scriptuo.com/index.php?topic=2454.msg64243#msg64243
Title: Re: TG Crafting Factory 1.0
Post by: The Ghost on May 24, 2015, 03:34:38 AM
I rebuild one of my oldest build.   After seening what you got, I had to get my hand busy again with something light.   I will see how to add EN's sub.
Title: Re: TG Crafting Factory 1.0
Post by: Cush on June 26, 2015, 08:50:07 AM
I will run this in the next couple days for you. I have a TON of bark and need blank scrolls. The current script I use takes forever.

Stay Tuned
Title: Re: TG Crafting Factory 1.0
Post by: Cush on June 26, 2015, 01:37:49 PM
I have created about 75K scrolls so far the script has been running great.

Every once in awhile it hangs up and the status bar says getting more wood pulp. Plenty in the bin and a couple in the backpack. I have to shut down and restart the script at that point.
Title: Re: TG Crafting Factory 1.0
Post by: The Ghost on June 26, 2015, 02:36:25 PM
Glad it work for you.  Thx for the testing.
Title: Re: TG Crafting Factory 1.0
Post by: Cush on June 27, 2015, 12:19:29 PM
Ok I have run another 50K scrolls.

It will run for about 18K or so when first started then it seems to glitch.

I gets stuck at Restocking Wood Pulp. Currently there is over 180K of woodpulp in the resource bin.

I hit the scroll button and it runs another 2K scrolls and stops again with the same
Title: Re: TG Crafting Factory 1.0
Post by: The Ghost on June 27, 2015, 01:12:36 PM
Ver 1.7 posted

Cush that should work better now.  
Title: Re: TG Crafting Factory 1.0
Post by: Tidus on July 14, 2015, 11:43:20 AM
Ok I have run another 50K scrolls.

It will run for about 18K or so when first started then it seems to glitch.

I gets stuck at Restocking Wood Pulp. Currently there is over 180K of woodpulp in the resource bin.

I hit the scroll button and it runs another 2K scrolls and stops again with the same

Do you ever use F7 to step through it and see where it is stuck in the script?  Or is the script completely stopped?
Title: Re: TG Crafting Factory 1.0
Post by: The Ghost on July 16, 2015, 02:09:44 PM
For some reason after it had make the 4 crafting tools,  it return to the beginning loop. 
Line 359  gosub GetMoreTools, when it return from their it make it jump to
Code: [Select]
while #true
{
  gosub CheckMenu
}
 


I need to figure how ManWinc sub work before I can fix it. 
I just load up with 40 craft tools and didn't have any issue.
Title: Re: TG Crafting Factory 1.0
Post by: Cush on July 21, 2015, 07:26:20 AM
Sorry been out backpacking for a few weeks and I leave again in the morning.

I will run it all day today and note at what point it stops and use the F7 for you.

Stay tuned.
Title: Re: TG Crafting Factory 1.0
Post by: Cush on July 21, 2015, 07:49:59 AM
First run made 2600 scrolls

and stopped here on if #menubutton = EUOButton2

Code: [Select]
sub CheckMenu
  if #menubutton = EUOButton1
     gosub Button_CraftPulp
  if #menubutton = EUOButton2
     gosub Button_CraftScroll
  if #menubutton = EUOButton3
     gosub PauseCraft
    return
Title: Re: TG Crafting Factory 1.0
Post by: Cush on July 21, 2015, 08:13:58 AM
This run stopped at 2900 scrolls

Status says "restocking Wood Pulps"

Hung up on Return

Code: [Select]
sub CheckMenu
  if #menubutton = EUOButton1
     gosub Button_CraftPulp
  if #menubutton = EUOButton2
     gosub Button_CraftScroll
  if #menubutton = EUOButton3
     gosub PauseCraft
    return
Title: Re: TG Crafting Factory 1.0
Post by: The Ghost on July 21, 2015, 08:26:27 AM
Thx Crush. 
I figure that one out too.  If you hit the make pulp buttun it will start making now.

 I had 50 pens and made 64900 scrolls.  The issue is that when it exit crafting tool it reset the menue button. 

I will see if I can scan another place to make the tool.   















Title: Re: TG Crafting Factory 1.0
Post by: Cush on July 22, 2015, 05:48:53 AM
I did load my backpack up with scribe pens and it ran about 70K scrolls non stop.

For sure it seems to be something in the pen creation process that creates the hang up.

It would be nice to not have to hit the scroll button again to get it going.
Title: Re: TG Crafting Factory 1.0
Post by: The Ghost on July 22, 2015, 08:18:44 AM
 it just a tinny problem, I'm working on it.  This build is in early contruction.   I need to get more supply to proceed with more testing.
Title: Re: TG Crafting Factory 1.0
Post by: Cush on July 28, 2015, 06:43:34 AM
Just let me know what you need done for further testing. I am around all day
Title: Re: TG Crafting Factory 1.0
Post by: The Ghost on July 28, 2015, 08:08:30 AM
Need to figure  why it jump to the crafting button and not returning properly.   I think  MWinc have a fix in is new build.    I'm just trying work around the issue.
Title: Re: TG Crafting Factory 1.0
Post by: The Ghost on July 29, 2015, 08:41:49 AM
Cush,  Find out that after I finish making the new tools, it seen that the timer to menu been gone to long and exit me from the crating sub.    I'm working on changing the menu selection, so I don't use button.   
Title: Re: TG Crafting Factory 1.0
Post by: Cush on July 30, 2015, 10:00:49 AM
Sounds good. I have 25K pulp left to finish converting to scrolls then I will try out the pulp making side of this.
Title: Re: TG Crafting Factory 1.0
Post by: The Ghost on July 30, 2015, 01:29:00 PM
If you don't run out of tools in ur pack,  you will be fine I have make over 73K scroll so far. with 3 re-start.  ( had lot of pens)
Title: Re: TG Crafting Factory 1.0
Post by: Cush on July 30, 2015, 03:58:27 PM
this run is 218K but I had to reload my pack with pens a couple of times.  ;D

I think I have done about a million with your script in testing
Title: Re: TG Crafting Factory 1.0
Post by: The Ghost on July 30, 2015, 05:26:28 PM
I got the update almost done.  Manage to get loop 4 times.  I will seed you a copy soon.  kept some supply
Title: Re: TG Crafting Factory 1.0
Post by: Endless Night on July 31, 2015, 06:50:03 AM
Works good, you may want to add in EN's sub for filling pitchers from a water trough in case users do not have an endless decanter. :)


http://www.scriptuo.com/index.php?topic=2454.msg64243#msg64243

You reviewed this sub and I err corrected it I added one line of code "set %waterTroughRange %1"   Otherwise if you passed a range it wouldnt use it !!! oops...   Not sure if you used the sub but just incase.
Title: Re: TG Crafting Factory 1.0
Post by: Cush on July 31, 2015, 07:22:29 AM
OK I made it through 5 pen creations just fine however it did  not see the fact that there was only five charges on the tool kit.

Once the tool kit expired it hung up the script waiting for another tool kit. I dropped one in my backpack and it made a pen and continued.

need this to make a toolkit
Title: Re: TG Crafting Factory 1.0
Post by: Cush on July 31, 2015, 10:26:05 AM

Version 1.4

Confirmed this again. Did not create another toolkit before the charges on the toolkit ran out.

I am going to move over to making pulp now
Title: Re: TG Crafting Factory 1.0
Post by: The Ghost on July 31, 2015, 12:53:40 PM
Thx Cush,  I will have a look at the tool kits. 

Title: Re: TG Crafting Factory 1.0
Post by: Cush on August 01, 2015, 07:30:54 PM
1.5 has been running fine all day on Pulp. I will switch to Scrolls in the morning.
Title: Re: TG Crafting Factory 1.0
Post by: Cush on August 03, 2015, 06:51:10 AM
Ran Scrolls all day yesterday with no issues. I think you have this worked out and are ready for the next phase.

Great Job!
Title: Re: TG Crafting Factory 1.0
Post by: The Ghost on August 03, 2015, 07:16:46 AM
Thx Crush for your assistance and testing.  Great timing on my part to get this build release.
Title: Re: TG Crafting Factory 1.6
Post by: The Ghost on August 14, 2015, 07:33:42 PM
Update to Ver 1.6.   

Fix issue with making more tool,
Upgrade the menu to allow better loop.
add few new option.

Go ahead and enjoy.
Title: Re: TG Crafting Factory 1.6
Post by: Cush on August 17, 2015, 11:33:40 AM
VEr 1.6

When making scrolls it will pull the pulp into the pack, make a scroll then pull more pulp into the pack creating a situation where you are overloaded and the scrolls start dropping to the ground.

It is like it is not checking to see if it already has pulp in the pack.

Title: Re: TG Crafting Factory 1.7
Post by: The Ghost on August 17, 2015, 12:55:20 PM
Ok I see the Problem Cush, 

Ver 1.7 Posted.
Title: Re: TG Crafting Factory 1.7
Post by: Cush on August 21, 2015, 07:24:46 AM
I worked on 1.6 yesterday making arrows. Here are a few items.

1. My resource box had everytype of wood in it. and started with regular wood in my backpack. When it was done with the boards in my pack it pulled bloodwood boards from my resource box instead of regular boards. I switched the resource box to a different one and just put boards in and it ran fine.

2. When it finishes a stack of boards in the resource box it stops and says out of resources even though there are several stacks in the box.

3. Ran out of feathers and the script said I was out of boards.

Title: Re: TG Crafting Factory 1.7
Post by: The Ghost on August 21, 2015, 07:46:13 AM
That my bad Cush,  I didn`t add a colour check and forget to add a warring.  My apologie for that.   

Not seeing the other stack is new one. let see what I can do.     

 Cush Did you try ver 1.7
Title: Re: TG Crafting Factory 1.7
Post by: KaliOfLS on August 21, 2015, 09:48:59 AM
I worked on 1.6 yesterday making arrows. Here are a few items.

1. My resource box had everytype of wood in it. and started with regular wood in my backpack. When it was done with the boards in my pack it pulled bloodwood boards from my resource box instead of regular boards. I switched the resource box to a different one and just put boards in and it ran fine.

2. When it finishes a stack of boards in the resource box it stops and says out of resources even though there are several stacks in the box.

3. Ran out of feathers and the script said I was out of boards.



Maybe your feathers were really stiff.
Title: Re: TG Crafting Factory 1.7
Post by: Cush on August 23, 2015, 04:33:34 PM
Fired up 1.7 yesterday and today.

Made a million arrows. The script till does not distinguish wood types when I use my main wood bin it pulls the bloodwood. I switched to a different box with just feathers and wood in it. Seems to run fine that way.
Title: Re: TG Crafting Factory 1.7
Post by: The Ghost on August 23, 2015, 04:40:08 PM
I haven't add any safety precaution.   Just for you and your precious woods, I will attempts to add that ability.

I glad to heard that the build is stable.
Title: Re: TG Crafting Factory 1.7
Post by: Cush on August 25, 2015, 11:19:16 AM
Ran another 2 million arrows through the system seems to be working fine except it doesn't distinguish wood type

When you run out of feathers it states you are out of wood.
Title: Re: TG Crafting Factory 1.7
Post by: The Ghost on August 25, 2015, 02:51:18 PM
In line 316 chance word wood for Feather :)

Title: Re: TG Crafting Factory 1.8
Post by: The Ghost on August 27, 2015, 06:48:04 PM
Ver 1.8  had been posted. 

If some can help me and see what I'm doing wrong is my sub StatusBox.    The sub work but so some reason, when I'm asking  gosub StatusBox Making Arrow  the box show Making Arrow 540_240.     Those the way I build the StatuxBox sub is correct, can't seen to find out why it not showing what I want properly.
Title: Re: TG Crafting Factory 1.8
Post by: TrailMyx on August 31, 2015, 05:11:35 PM
Something to think about......

Code: [Select]
gosub TestSub  this is a test

sub TestSub
  set %text
  for %i 1 %0
  {
    set %temp % . %i
    set %text %text , %temp , #SPC
  }
  display ok %text
return
Title: Re: TG Crafting Factory 1.8
Post by: The Ghost on August 31, 2015, 05:59:45 PM
Thx,  work great
Title: Re: TG Crafting Factory 1.8
Post by: Cush on September 10, 2015, 05:53:54 AM
Why don't you add crossbow bolts to this. Since you have arrows it shouldn't be that big of an update?
Title: Re: TG Crafting Factory 1.8
Post by: The Ghost on September 10, 2015, 06:38:49 AM
Code: [Select]
If you look in the sub MakeArrow you will notice a quicknote at line 323.  Bolt    <  just turn this one on to make Bolt   I wil look at making it more friendly.  For now that how it is.

This will make Arrow
[code]
                gosub MWCraft fletching N/A 2 1 1 ; Arrow
             ;  gosub MWCraft fletching N/A 2 1 2 ; Bolt    <  just turn this one on to make Bolt
              gosub CheckPause

This will make Bolt
code]
              ;  gosub MWCraft fletching N/A 2 1 1 ; Arrow
                gosub MWCraft fletching N/A 2 1 2 ; Bolt    <  just turn this one on to make Bolt
              gosub CheckPause
[/code]
Title: Re: TG Crafting Factory 1.8
Post by: The Ghost on May 04, 2016, 11:39:28 AM
Ver 2.3 had been posted,  it now  will make aids for you.   For now it only use cloth.  I will the both to cloth soon. 

This was a kindle request. 
Title: Re: TG Crafting Factory 1.8
Post by: Cush on May 06, 2016, 08:59:08 AM
I am happy to test this some more. What should I be looking for?
Title: Re: TG Crafting Factory 1.8
Post by: The Ghost on May 06, 2016, 03:24:28 PM
I just put the sub together to help a friend,  I need a find a better flow,  it seen a bit slow but it stable.   I will take stable any day.   If you need aids, just test the aids menu  :)   
Title: Re: TG Crafting Factory 2.4
Post by: The Ghost on January 20, 2017, 04:23:16 PM
With the new BoD, I receive a request from Nobama.

  TG Crafting Factory Ver 2.4 include making Empty bottle.
Title: Re: TG Crafting Factory 2.4
Post by: NObama on January 21, 2017, 05:45:32 AM
Includes dough in this version 2.5.

Strangely, it spams 'Dough'...I must have fat-fingered something.

Title: Re: TG Crafting Factory 2.5
Post by: REEFHAWK on February 15, 2017, 11:43:37 AM
Awesome script.  I just used the Arrow and Dough maker with no problems.  I also changed the %swait, %mwait and the wait times, and it made the items with no problems an fast.  Thanks  so much for letting me use this script. 
Title: Re: TG Crafting Factory 2.5
Post by: The Ghost on February 15, 2017, 01:42:37 PM

Some who use the setup as intended :)     
We all have different connection, so by changing those few wait u can adjust the speed as u want.   
Glad you like it.
Title: Re: TG Crafting Factory 2.5
Post by: REEFHAWK on February 15, 2017, 02:35:05 PM
Just curious, would it be hard to change it to make arrows from Shafts instead of using the wood to make the shaft then the arrow or the bolt.  Awhile back, at an IDOC, I picked up a couple hundred thousand Shafts in deed form.  Thanks
Title: Re: TG Crafting Factory 2.5
Post by: The Ghost on February 15, 2017, 03:08:42 PM
Not tested bu this is were I will start :)

in the sub MakeArrow

replace finditem %Wood C_ , #BackPackID
by  finditem SLK C_ , #BackPackID   ; shaft

replace gosub TG_Restock %Resource_Secure %Wood %Fletching_Drag_Amount
by gosub TG_Restock %Resource_Secure SLK %Fletching_Drag_Amount

remove
gosub MWCraft fletching N/A 1 1 2 ; Shaft
             wait %sWait
Title: Re: TG Crafting Factory 2.5
Post by: NObama on February 19, 2017, 03:09:15 AM
Hi, Ghost.  I added Sacks of Flour:


set %Sack PGG
set %Wheat FTL

;=========================== Making Sack ==============================
; Gosub MWCraft (Tool) (Type) (Category) (Page) (Selection)

sub MakeSack
   gosub StatusBox Making Sacks of Flour ...
    gosub MWCraft Cooking N/A 1 1 1
      repeat
      {
        gosub StatusBox Sacks of Flour ...
         finditem %Wheat C_ , #BackPackID
          if #findkind = -1
            {
              gosub TG_ClearPack PGG %Resource_Secure
               wait %sWait
                gosub TG_Restock %Resource_Secure %Wheat  %Supply_Drag_Amount
                  if #RESULT = #FALSE
               {
               Display You seem to be out of Wheat. Please restock and Resume. Script Pausing!
               gosub PauseCraft
               }
             }
              gosub StatusBox Making Sacks of Flour ...
                gosub MWCraft Cooking MakeLast
                  gosub CheckPause
         }
    until #findkind = -1
     wait %sWait
    Return

; ---------------------------------------------------------------------

Title: Re: TG Crafting Factory 2.6
Post by: The Ghost on February 19, 2017, 04:39:46 AM
New Version had been posted.  Now support Making Sack of flour. 

Just make you you are seating near a Flour Mill.
Thx Nobama.
Title: Re: TG Crafting Factory 2.5
Post by: REEFHAWK on February 19, 2017, 05:56:47 AM
I will give it a go this morning
Title: Re: TG Crafting Factory 2.5
Post by: NObama on February 19, 2017, 08:58:55 AM
You know, we could probably modify this pretty easily to fill BODs as it goes...hmm...
Title: Re: TG Crafting Factory 2.5
Post by: REEFHAWK on February 19, 2017, 09:13:41 AM
I just made a ton of wood pulp and Exceptional Flour with no problems at all.  Thanks for letting us use your script.
Title: Re: TG Crafting Factory 2.5
Post by: REEFHAWK on February 19, 2017, 11:21:52 AM
Ghost, I changed the lines in script to what you had told me above.  I finally tried making arrows from shafts. I had my secure open and I was standing next to secure.  I had a fletching tool in my backpack and about 60,000 Shafts in the secure. Script would not pull shafts from my secure.  It said " You don't have any Arrow Shafts.  However, When I put 100 shafts in my backpack and it made 100 arrows from the shafts.
Title: Re: TG Crafting Factory 2.5
Post by: REEFHAWK on February 19, 2017, 11:53:13 AM
Ghost, due you have time to meet me in Luna on Pac?
Title: Re: TG Crafting Factory 2.5
Post by: coachcraig on December 07, 2017, 03:41:00 PM
Hey Ghost,
First of all Thank You for this script. Works beautifully.

This is my first attempt at coding/messing with scripts. I do a lot of cooking and making ALL the cooking items is a must for filling the BODs. I saw your script as the best option for making the items I needed. I added some subs to this script to make the following.

Sweet Dough, Cake Mix, Cookie Mix, unbaked quiche, unbaked meat pie, uncooked sausage pizza, uncooked cheese pizza, unbaked fruit pie, unbaked peach cobbler, unbaked apple pie and unbaked pumpkin pie.

However, two subs I cannot figure out. MakeCakeMix and MakeCookieMix.
1. For the cake mix I used the makedough sub and added in a restock for %SweetDough (LGG which is the same for Dough) right after the sub to open sack of flour. It grabs the sack of flour good but skips the restock for the SweetDough.
2. For the cookie mix the sub has a find item %SweetDough then has two gosub for restocking SweetDough and Honey. Again it will not pull the SweetDough.

Any help with this and to better help me understand how the code works would be greatly appreciated. Would love to email you what I have so far to see if you would like to add any of it or to let me know what I've done wrong for those two subs.

Again HUGE THANK YOU!!!!!!
CoachCraig
Title: Re: TG Crafting Factory 2.7
Post by: The Ghost on December 07, 2017, 05:09:54 PM
Coach,
 I upload Ver 2.7 that have sweet dough support.   Look how I done it.   Insert the same sub , I perform the task in two step.
Title: Re: TG Crafting Factory 2.7
Post by: coachcraig on December 07, 2017, 05:56:29 PM
Coach,
 I upload Ver 2.7 that have sweet dough support.   Look how I done it.   Insert the same sub , I perform the task in two step.

Nice! Ok so looking at this I could add one more gosub after

gosub MWCraft Cooking N/A 1 1 3    ; Sweet Dough

to make cake mix and/or cooking mix since there's already an open sack of flour. The line I'm thinking would be

gosub MWCraft Cooking N/A 1 1 4    ; Cake Mix
or
gosub MWCraft Cooking N/A 1 1 5    ; Cookie Mix

Is that right or am I completely wrong.

And thanks again for the super fast response. Amazing script btw.
Title: Re: TG Crafting Factory 2.7
Post by: The Ghost on December 07, 2017, 06:11:38 PM
I stop getting into cooking because that was getting a headache.    To be honest I haven't touch cooking since Feb.     If I recall I was planning of make a lot of resource and add the sub of what I need to do. 

Without doing testing,    you seen to be on the right track   Just add an   wait %sWait between.  Let me know if if work
Title: Re: TG Crafting Factory 2.7
Post by: coachcraig on December 07, 2017, 08:08:09 PM
It makes cake mix and cookie mix now. That's all I did was add that one line with a wait in between.

sub MakeCookieMix
gosub StatusBox Making Cookie Mix ...
      repeat
      {
        gosub StatusBox Making Cookie Mix ...
         finditem SGG C_ , #BackPackID     ; Open  Sack of Flour
          if #findkind = -1
              {
                gosub TG_ClearPack NGG %Resource_Secure
                 wait %sWait
                       finditem %Sack_Flour C_ , #BackPackID     ;  Sack of Flour
                         if #findkind = -1
                         {
                         gosub TG_Restock %Resource_Secure %Sack_Flour 3
                             if #RESULT = #FALSE
                             {
                             Display You seem to be out of Flour. Please restock and Resume. Script Pausing!
                             gosub PauseCraft
                             }
                          }
                    wait %sWait
                  gosub OpenFLour
               }
        gosub MWCraft Cooking N/A 1 1 2 ; dough
        wait %sWait

        finditem KRD C_ , #BackPackID    ;Honey
          if #findkind = -1
             {
               gosub TG_Restock %Resource_Secure KRD 20
                  if #RESULT = #FALSE
                   {
                   Display You seem to be out of honey. Please restock and Resume. Script Pausing!
                   gosub PauseCraft
                   }
             }
              gosub MWCraft Cooking N/A 1 1 3    ; Sweet Dough
              wait %sWait
              gosub MWCraft Cooking N/A 1 1 5    ; Cookie Mix
             gosub CheckPause
        }
    until #findkind = -1
     wait %sWait
    Return


I've also got it making all the unbaked items too. Below is what I used for that. I set variables for the ingredients needed. Replacing each sub with the different ingredients needed.

 sub MakeQuiche
   gosub StatusBox Making Unbaked Quiche ...
    gosub MWCraft Cooking N/A 2 1 1
      repeat
      {
        gosub StatusBox Making Unbaked Quiche ...
         finditem %Dough C_ , #BackPackID
          if #findkind = -1
           {
             gosub TG_ClearPack CCG %Resource_Secure
               wait %sWait
                 gosub TG_Restock %Resource_Secure %Dough %Supply_Drag_Amount
                        if #RESULT = #FALSE
                      {
                       Display You seem to be out of Dough. Please restock and Resume. Script Pausing!
                       gosub PauseCraft
                      }
                       wait %mWait
                 gosub TG_Restock %Resource_Secure %Eggs %Supply_Drag_Amount
                        if #RESULT = #FALSE
                      {
                       Display You seem to be out of Eggs. Please restock and Resume. Script Pausing!
                       gosub PauseCraft
                      }
                       wait %mWait
           }
           gosub StatusBox Making Unbaked Quiche ...
           gosub MWCraft Cooking MakeLast
           ;  gosub CheckPause
        }
    until #findkind = -1
     wait %sWait
    Return

Thanks again Ghost! You're so awesome!
Title: Re: TG Crafting Factory 2.7
Post by: The Ghost on December 08, 2017, 02:54:24 AM
Funny to see my Pulp maker and Arrow maker, growing to be a cook at this moment.   Once you have the base sown solid, it easy to add sub to make what you need.   Glad you find other use for it.   

Coach, Can you put you code in bracket  using the # on top.
Title: Re: TG Crafting Factory 2.7
Post by: coachcraig on December 08, 2017, 07:17:15 AM
hehe I learn something new every day!
Title: Re: TG Crafting Factory 2.8
Post by: The Ghost on October 15, 2019, 08:05:25 PM
Sorry to revive this post,
 I make a updated to kept up with new craft able  You can now make Ethereal Soulbinder Bottle. 

Enjoy
Title: Re: TG Crafting Factory 2.8
Post by: Gaderian on November 03, 2019, 01:04:02 AM
I ran this for a few hours this evening. Very impressive. I happened to pick making lockpicks because I had the resources. Ran smoothly.

Gaderian
Title: Re: TG Crafting Factory 2.8
Post by: The Ghost on November 03, 2019, 09:01:47 AM
It will make anything you select until you run out of resources.