Author Topic: TG Crafting Factory 2.8  (Read 39525 times)

0 Members and 1 Guest are viewing this topic.

Offline The GhostTopic starter

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: TG Crafting Factory 2.5
« Reply #60 on: February 15, 2017, 03:08:42 PM »
0
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

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +161
  • Referrals: 2
    • View Profile
Re: TG Crafting Factory 2.5
« Reply #61 on: February 19, 2017, 03:09:15 AM »
0
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

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


Offline The GhostTopic starter

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: TG Crafting Factory 2.6
« Reply #62 on: February 19, 2017, 04:39:46 AM »
0
New Version had been posted.  Now support Making Sack of flour. 

Just make you you are seating near a Flour Mill.
Thx Nobama.

Offline REEFHAWK

  • Jr. Member
  • **
  • Posts: 43
  • Activity:
    0%
  • Reputation Power: 0
  • REEFHAWK has no influence.
  • Gender: Male
  • Respect: +2
  • Referrals: 1
    • View Profile
Re: TG Crafting Factory 2.5
« Reply #63 on: February 19, 2017, 05:56:47 AM »
0
I will give it a go this morning

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +161
  • Referrals: 2
    • View Profile
Re: TG Crafting Factory 2.5
« Reply #64 on: February 19, 2017, 08:58:55 AM »
0
You know, we could probably modify this pretty easily to fill BODs as it goes...hmm...

Offline REEFHAWK

  • Jr. Member
  • **
  • Posts: 43
  • Activity:
    0%
  • Reputation Power: 0
  • REEFHAWK has no influence.
  • Gender: Male
  • Respect: +2
  • Referrals: 1
    • View Profile
Re: TG Crafting Factory 2.5
« Reply #65 on: February 19, 2017, 09:13:41 AM »
0
I just made a ton of wood pulp and Exceptional Flour with no problems at all.  Thanks for letting us use your script.

Offline REEFHAWK

  • Jr. Member
  • **
  • Posts: 43
  • Activity:
    0%
  • Reputation Power: 0
  • REEFHAWK has no influence.
  • Gender: Male
  • Respect: +2
  • Referrals: 1
    • View Profile
Re: TG Crafting Factory 2.5
« Reply #66 on: February 19, 2017, 11:21:52 AM »
0
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.

Offline REEFHAWK

  • Jr. Member
  • **
  • Posts: 43
  • Activity:
    0%
  • Reputation Power: 0
  • REEFHAWK has no influence.
  • Gender: Male
  • Respect: +2
  • Referrals: 1
    • View Profile
Re: TG Crafting Factory 2.5
« Reply #67 on: February 19, 2017, 11:53:13 AM »
0
Ghost, due you have time to meet me in Luna on Pac?

Offline coachcraig

  • Jr. Member
  • **
  • Posts: 15
  • Activity:
    0%
  • Reputation Power: 1
  • coachcraig has no influence.
  • Respect: +5
  • Referrals: 0
    • View Profile
Re: TG Crafting Factory 2.5
« Reply #68 on: December 07, 2017, 03:41:00 PM »
0
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

Offline The GhostTopic starter

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: TG Crafting Factory 2.7
« Reply #69 on: December 07, 2017, 05:09:54 PM »
0
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.

Offline coachcraig

  • Jr. Member
  • **
  • Posts: 15
  • Activity:
    0%
  • Reputation Power: 1
  • coachcraig has no influence.
  • Respect: +5
  • Referrals: 0
    • View Profile
Re: TG Crafting Factory 2.7
« Reply #70 on: December 07, 2017, 05:56:29 PM »
0
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.

Offline The GhostTopic starter

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: TG Crafting Factory 2.7
« Reply #71 on: December 07, 2017, 06:11:38 PM »
0
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

Offline coachcraig

  • Jr. Member
  • **
  • Posts: 15
  • Activity:
    0%
  • Reputation Power: 1
  • coachcraig has no influence.
  • Respect: +5
  • Referrals: 0
    • View Profile
Re: TG Crafting Factory 2.7
« Reply #72 on: December 07, 2017, 08:08:09 PM »
0
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!
« Last Edit: December 07, 2017, 08:15:40 PM by coachcraig »

Offline The GhostTopic starter

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: TG Crafting Factory 2.7
« Reply #73 on: December 08, 2017, 02:54:24 AM »
0
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.

Offline coachcraig

  • Jr. Member
  • **
  • Posts: 15
  • Activity:
    0%
  • Reputation Power: 1
  • coachcraig has no influence.
  • Respect: +5
  • Referrals: 0
    • View Profile
Re: TG Crafting Factory 2.7
« Reply #74 on: December 08, 2017, 07:17:15 AM »
0
hehe I learn something new every day!

Tags: