Locked Home » Forums » Legacy & Archived » Archived Content » Vanguard » VGExtreme Programs

VSOH - Advanced Crafting Bot v1.1 : VGExtreme Programs

Posted: January 1st, 2008
Total Posts:55 Joined:2007
housing TMs adjust to your level, so they run 1-50. Due to this, i would be wary on leaving it running for long periods unattended out there.
Posted: January 1st, 2008
ve_necro
No fear about that one my friend, I never leave it unattended as I have my laptop set up next to it for movies while I craft lol. Bad news for me but good news for my crafting is I have insomnia so I tend to sleep only once every couple of days anyway.

I appreciate the speedy responce there officers, happy crafting to you all.
Posted: January 1st, 2008
ve_necro
Bah double post sorry. Still I guess I can ask another question to you officer...

I noticed you were having the same issue as me with it not reading your skills, I did the debug and saw I have the same issue, did you fix it in the end and if so how exactly did you do it?

Works ample without, but I know it would work so much better if I could get it doing complications and actions more effectivly.
Posted: January 1st, 2008
Total Posts:55 Joined:2007
What i did was go into your ACBinclude.vbs and adjust the code and hard-code the stats in.

Sub getBaseCraftingSkills() is the section your looking for.
getBaseCraftingSkills" end if
refStat = 148
'Crafting_BaseRefStatSkill()
refTool = 199
'Crafting_BaseRefToolSkill()
refUtil = 196
'Crafting_BaseRefUtilSkill()
finStat = 130
'Crafting_BaseFinStatSkill()
finTool = 250
'Crafting_BaseFinToolSkill()
finUtil = 250
'Crafting_BaseFinUtilSkill()
is what you can do for example.
Posted: January 1st, 2008
ve_necro
TY officers, will give that a try now. I assume I will have to auto update that once in a while to keep it in line or for you did it auto update after the hard code?
Posted: January 1st, 2008
beergeek
First, if you're going to hard-code the numbers in, be sure to turn off the autoBalanceSkills option (set to False).

I'll try to check my six crafters tonight to see if any are returning zero values; it's working fine for me.

Work orders on housing islands don't dry up. You will always have wo from 1 to 50. Now if you have highly restrictive criteria, or you skip too many pages with the options in acbuserdata, you may run out of work orders that meet your criteria. In that case, the script will try both taskmasters then pause with a popup box stating you're out of work orders.
Posted: January 1st, 2008
kronfu
I ran the log right before a complication came up and below is what it recorded. Everything else runs fine, except for the same issue necro is having.

2008-01-01 23:08:22 notIdentified: False
2008-01-01 23:08:22 comp name: NULLDATA active comps: 1 index: 0 num remedies: 1 remedy order: 1 full order: 1234
2008-01-01 23:08:22 sub performCompRemedy, skipRemedy = False
2008-01-01 23:08:22 fcn convInt
2008-01-01 23:08:22 action list: '1' desired remedy action: '1'
2008-01-01 23:08:22 action info: 1
2008-01-01 23:08:22 action type: 1
2008-01-01 23:08:23 Click comp: 961, 397
2008-01-01 23:08:23 Click remedy1: 1011, 487
2008-01-01 23:08:23 case for click (number remedies avail): 1
2008-01-01 23:08:26 compDurationCount =
2008-01-01 23:08:26 craft: skipCraft = True
2008-01-01 23:08:26 iterations left: 1
2008-01-01 23:08:26 sub Craft
2008-01-01 23:08:26 Crafting Step = 2
2008-01-01 23:08:26 sub checkLog
2008-01-01 23:08:26 Match comp removed
2008-01-01 23:08:26 sub removeComp
2008-01-01 23:08:26 sub idGreenComp
2008-01-01 23:08:26 craft: skipCraft = False
2008-01-01 23:08:26 step name = 'Cleaner'
2008-01-01 23:08:26 Util1 action family identified
2008-01-01 23:08:26 sub idUtil1 args: 2
2008-01-01 23:08:26 sub pressHotkey args: 2
2008-01-01 23:08:29 Util HK2
2008-01-01 23:08:29 iterations left: 1
2008-01-01 23:08:29 sub Craft
2008-01-01 23:08:29 Crafting Step = 2
2008-01-01 23:08:29 sub checkLog
2008-01-01 23:08:29 craft: skipCraft = False
2008-01-01 23:08:29 step name = 'Cleaner'
2008-01-01 23:08:29 Util1 action family identified
2008-01-01 23:08:29 sub idUtil1 args: 2
Posted: January 1st, 2008
kronfu
I went ahead and hard coded the skills in and it works fine that way. Being that everthing else runs fine, i don't know why it would not read the skill levels. Craft is currently level 31 and i have my files setup in c:\vgscript directory.
Posted: January 1st, 2008
lazzer
Finishes the first step of a work order then quits with:

Error: Line: 784, Char: 12 :: Type mismatch: 'Crafting_StepName'

Ran it in debug and right before the error is the following:

Crafting Step = 2

I tried different work orders but its all the same. Does the first step then nothing.

Not really to sure what to do from here. Any help would be greatly appreciated.
Posted: January 1st, 2008
beergeek
lazzer wrote:Finishes the first step of a work order then quits with:

Error: Line: 784, Char: 12 :: Type mismatch: 'Crafting_StepName'

Ran it in debug and right before the error is the following:

Crafting Step = 2

I tried different work orders but its all the same. Does the first step then nothing.

Not really to sure what to do from here. Any help would be greatly appreciated.
That is a vgcrafting variable. Sounds like you are either running in exhume and not vgextreme or vgextreme needs to be updated.

In your exhume directory, delete vgextreme.exe, delete all the .dll and .tgb files and delete vgextreme.vbs. In the includes subdirectory, delete vgcrafting.vbs, vgservice.vbs, navigation.vbs and vgparley.vbs. Back in the exhume directory, run UpdateVGExtreme.exe and let the patcher replace all the files, then try running the script again.

If it still doesn't work, download and run VGExtreme Radar and make sure it operates properly. It will be obvious if it works.
Posted: January 1st, 2008
lazzer
Thank you so much beergeek. I followed your post deleting the files and downloading the Radar and that seems to fix it. Your bot is fantastic. Thank you again!
Posted: January 2nd, 2008
vanguardmarco
beergeek wrote:
vanguardmarco wrote:ok now i'v again changed the logpatch
in my case : C:\xunleashed\VGExtreme1.13
i's the same of VGExtreme.exe
i'v started the script in front sculpiting table ..it opens work orders interface... it realizes that no wo are and pg goes to finTM

it opens interface and tres to select fist current wo but script anded..
in the lower box's vge program's i can read:
error line 369, char 4:: authorization denied
and the cursor places in:

Set objFile = objFSO.OpenTextFile(Logpath, ForWriting) ..

in the Sub checkLog()....advancercraftingbot file subrutine.
this is a random error..not the same step, but sometime i get it in front of the table or when it is selecting the second or third current wo from fin um.

if i change the patch log: C:\xunleashed\VGExtreme1.13\Exhume (one sub dir from vgextrem.exe...i do it to permit the scrip run..but obviously no utility buys or other think that need vgologfile works).
Try this: Do a search on your machine for VGLogDump.log and delete every instance of the file you find. Run the script briefly, then stop it. Do the search again and you should find the file recreated. Put the full path to that file in the variable, including the filename, and try again. Make sure it is entered without typos, you seem to have quite a few of them here :)

vanguardmarco wrote: Targeting table: I assume you're saying when it tries to target the table it issues a command: "/target ?Artificer Sculpting Table?" (ignore quotes)? If so, that would be very strange. It will send chr(34) (ascii for double quote) before and after the name specified in acbuserdata and should not generate question marks. If you confirm it is doing this, though, I can give you a workaround...
yes in the vangaurd chat i read :
say: target offensive clear
says: target ? Artificer sculpiting table ?

after that the pg turn around and goes no stop straight line to wall.. remote from any waypoint marked.
This should fix your problem with the question marks... I think you are using a different keyboard layout where the "?" mark is above the " ' " key.

Go to the advancedcraftingbot.vbs script, scroll approximately 1/3 the way down until you see the subroutine "Sub MoveToCT" and replace with this:

Code: Register to unlock hidden link

'This moves back to the Crafting Table
Sub MovetoCT()
                                    if debugState then debugLog "sub MovetoCT " end if
    if isFinishing and buyUtilities then
        NavigateWP(WPumToFinTab)
        VGSendCommand "/targeto clear"
        VGSendCommand "/target " & chr(34) & finTableName & chr(34)
    elseif (NOT isFinishing) and buyUtilities then
        NavigateWP(WPumToRefTab)
        VGSendCommand "/targeto clear"
        VGSendCommand "/target " & chr(34) & refTableName & chr(34)
    elseif isFinishing and (NOT buyUtilities) then
        NavigateWP(WPfinTmToFinTab)
        VGSendCommand "/targeto clear"
        VGSendCommand "/target " & chr(34) & finTableName & chr(34)
    else
        NavigateWP(WPrefTmToRefTab)
        VGSendCommand "/targeto clear"
        VGSendCommand "/target " & chr(34) & refTableName & chr(34)
    end if
    Sleep 500
    if NOT OKtoContinue then
        exit sub
    end if
    MoveToMob getTarget
    UpdateCurrLoc
    i = DistToTargetTo(CurrX, CurrY, getTargetX, getTargetY)
    if myArchetype = "Blacksmithing" then
        prefDist = 380
    Else
        prefDist = 180
    End if
    Do Until i <= prefDist       'inches into position at the table.  If it's overshooting (likely speed buff), reduce the multiplier in the next line
        i = Round((i-prefDist)*1.9)
        if i < 15 then
            i = 15
        end if
        StepForward(i)
        Sleep 250
        MoveToMob getTarget
        UpdateCurrLoc
        i = DistToTargetTo(CurrX, CurrY, getTargetX, getTargetY)
        debugLog "intermediary distance to target = " & i
    Loop
    Sleep 500
    Start_Crafting
End SubMend Fabric, Quick Sip, Reinforce Strength


Sub
That should correctly put quotes around the name, regardless of keyboard layout, and inch toward the crafting table. I'll include this version in the next update.[/quote]

i'v tried to deleate any vglogdump istance..and put again the patch of the auto creation vglogdump...but after a lot of test, the problemeverytime popup.

i'v tried to unable antivirus..and now is one huor that it run great..
it buys utility,changes toolbalt etc.

i don't know if is that the problem ...but now is running well and i havn't courage to stop it :).


whit your scrip modification (char 34 in the codex..) the table now is selected.. i think is keyboard layout me too.

magnificent work beergeek
thanks much
Posted: January 2nd, 2008
beergeek
Could very well have been your AV software. That stuff can do crazy things and will always bog your system down with extra overhead to boot. I've never used AV on my machines and *crosses fingers* my systems haven't blown up yet.
Posted: January 4th, 2008
Total Posts:77 Joined:2007
New Comp:
Blacksmithing

Comp: "Major Injury!"

Effect: "Basic Upkeep"

Rem1: "Tend Wound" - Utility - Bandages(2)

Rem2: "Brush Off" - Station

My preferred Rem order would be 2,1

Hope that's all you need.

Very nice script, keep up the good work :)
Posted: January 4th, 2008
Total Posts:7 Joined:2007
Curious about making the bot stop doing the quality actions if below a certain # of AP's. I've turned off the remedies when below a certain amount but looking through the code for tool, util use and such not sure where I could put in the Crafting_ActionPointsLeft check...

Any help would be appriciated
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 1 guest
Locked