VG Work Order (v1.51)

Status
Not open for further replies.

Hendrix

Well-Known Member
Read Me Before You Start:
Extract this rar file to your base Innerspace folder. The UI file for this script uses a hard coded path to your vanguard directory (which I am trying to change). Before you start the script please go to the Interface folder in your base Innerspace directory and open up VGSkin.xml in a text editor. Make sure that every line that looks similar to this: "C:\Program Files\Sony\Vanguard\VGUIAssets\Shells\Default\Textures\VgrdParts.tga" matches your path to YOUR Vanguard Directory.

Even if you have used my script before, please reread this ENTIRE post.

Automated Work Orders are here!!!! The following is the progression that the script will follow while running.
1) Obtains work order
2) Runs to crafting station (this is necessary in order to obtain the information we need from the recipes.
3) Runs to the supplier (at this point it will open any supply packs and empty the contents into your inventory).
4) Sells everything on your sell list from the supply packs that were opened in step 3 then buys all supplies needed to complete the work order.
5) Runs back to the craft station.
6) Completes all work order recipes
7) Returns to the work order NPC, completes or abandons (only abandons if for some reason we fail to complete it) all current work orders, and picks up more.
8) Repeat steps

The way that I have the logic setup to obtain work orders is to attempt to get your first choice of difficulty and type. If that fails (it may if the work order giver doesn’t have your preferred difficulty and type) it will then attempt to get your primary difficulty with your secondary type. If that fails it will attempt to obtain a work order with your primary type with your secondary difficulty, and if that fails as well it will attempt to obtain a work order with your secondary difficulty and secondary type. For best results have 2 different settings for difficulty and Type

Make A Path:
To do this we are going to type the following into the console: “run vgpather filename”
*NOTE* filename can be anything you want it to be. I like to call mine craft, but if you have multiple crafters you could have one named smith and one named outfitter to keep your 2 crafters paths apart**

The first thing that you will want to do is run to a point that always has line of sight to your work order NPC.

Once you are at that point hit F2 on your keyboard and a window will pop up. In that window type workorder and then hit ok.

Now start moving to your craft station hitting F1 every so often so that you create points between your work order point and your crafting station.

When you get to your crafting station hit F2 again and name this point craftstation

*NOTE* If you run into a door while making your path, hit F2 and name the point in front of the door something with door in the name. I use door1, door2, door3, ect while making my paths**

After you make your craftstation point, run to your materials supplier.

When you get there hit F2 yet again and name this point supplier. After you do that hit F3 to save all of your points and then hit F11 to exit vgpather.

*NOTE* If your crafting station is right next to a door then it may mess up my door open code. It is best to pick a crafting station that is in the back of a room or something**

What if I dont always have LOS to my Work Order Person?
There is a new feature in version 1.5 of VG Work Order. Make your workorder point at the farthest possible point that your Work Order giver can be at, then make a point (using F2) at the closest possible point your Work Order person can be at. Name this new point findNPC.

Now we are finally ready to start working on crafting!!! To start the script simply walk over to your work order NPC and type runscript vgworkorder. You will see a UI pop up that looks like this...



This is where you set things such as desired quality and complication fixes. We will ignore this for now...



This is the Work Order tab. The meat and potatos of the UI. At the top you will notice a drop down box. This is where you select the path that you want to use. Your newly created path won't be in this box. Since it is not there we want to hit the New Path button on the left. You will see a popup box, and in this box type the filename you gave the last path. As I said, I like craft so that is what you see in the picture. Fill in the boxes with all of your information and click Save. It is VERY important that you click save.ALSOIf you don't see a skill that you think you should have in the Type drop down boxes, it means you currently have 1 skill or less in that Type. It is up to you to correct that issue if you want to use it. NOTE: To delete a path from this list, select it from the drop down box, then right click on the box. Don't worry though, you are not deleting the path file, only the settings that go along with it. At this point you can click start and the script will run, but there are 2 more tabs with good things on them so lets look into that...



This is your Options Tab. At the moment it only has 2 settings. "Movement Precision" and "Object Precision" Lets take a closer look at what these actually are...
Movement Precision: When you are following a path from your path file, Movement Precision is what tells moveto.iss how close it needs to get to that next point before it is considered there. The lower this number is, the closer you have to be to that point. If this number is set to low then you will end up running past the point, turn around, move towards it again, run past it, turn around, and basicly dance around the point until you hit it just right then move on. I find that having this set between 150 and 200 works best, but the lower you can put this without dancing, the better.
Object Precision: When I tell the script to move to an object it uses object precision. Basicly all you need to know is, Merchants require a max of 5 in this setting to talk to them. Crafting stations require a max of 2. It is best to just leave this at 2.



This is the last tab that we care about. Anything in the list box will be sold if it comes out of a suppy bag while doing work orders. Just time the name in the box and hit add and it will show up at the bottom. If you decide later that you want to keep these items simply select it from the box and right click on it.

Code:
[11:11] <+Hendrix> this is how i handle a door
[11:12] <+Hendrix> lets say | is a door and * is a point with door in the name...
[11:12] <+Hendrix> when going through a door, my path file looks like this *****|*****
[11:13] <+Hendrix> that guarantees that it will have the door open when i get to it by spaming the door open command
[11:14] <+Hendrix> and notice that i am still spamming door after going through it (so that when i run the path backwards it opens the door as well)
The Version of VG Craft that is packaged with VG Work Order is the only version of VG Craft that I support. I can not guarantee that my script will work with other versions.

I would like to thank Allen and Shaba for their beta testing and suggestions.
Special thanks to rlane187

Patch notes!!!
Code:
Version 1.51
*Fixed a bug where it would not sell items.


Version 1.5
*The User Interface has arived!!!
*No more defines. Settings are saved per path...
*Squashed Various bugs.

Version 1.04
*ISXVG Version 20070215a is no longer supported, please update.
*Added Manual Mode!!!
    -Instead of giving it a path file to run type manual (run vgworkorder manual)
    -Please start at the WO giver with no tasks like always
    -After it obtains tasks, it will pause the script. While paused you can run around
     buy supplies, or whatever. When you are ready to craft go to your crafting
     table and hit F1.
    -After it finishes crafting your work orders it pauses yet again. Run back to the 
     WO giver and hit F1, it will turn in and obtain more work orders.


Version 1.03 (Note, 1.03 is an untested release)
*Updated to work with version 20070215b of ISXVG


Version 1.02
*Added Face into the script. No more buying or crafting while daydreaming.
*Fixed a bug that would cause things to stop working if you run out of action points. (No Really this time!!)
*Fixed a bug that would cause things to stop working if you run out of fuel mid craft.


Version 1.01
*Fixed a bug that would sell your fuel if you received fuel from a supply pack.
*Fixed a bug that would cause things to stop working if you run out of action points.


Version 1.0
Initial Release!!!!
 

Attachments

Last edited by a moderator:
Status
Not open for further replies.
Top Bottom