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

VSOH - Advanced Crafting Bot v1.1 : VGExtreme Programs

Posted: December 22nd, 2007
beergeek
officers wrote:I changed pressHotkey(idStat2(1)) to pressHotkey(idStat2(3)) and it works fine now.
Very odd... it is correct on mine, which is why I didn't spot it. That would definitely cause that step to fail. Still, the debug log you sent showed "1" as the argument to the hotkey procedure, not "3". Oh well, as long as it's working now.
Posted: December 23rd, 2007
Total Posts:55 Joined:2007

Code: Register to unlock hidden link

'Station 2: begin tier 5
            Elseif  (Crafting_StepName(CS) = "Inspect") Or _
                    (Crafting_StepName(CS) = "Analyze") Or _
                    (Crafting_StepName(CS) = "Ply") Or _
                    (Crafting_StepName(CS) = "Embroider") Or _
                    (Crafting_StepName(CS) = "Appraise") then
                if Tool1Done AND Tool2Done AND Util1Done AND (Crafting_Quality <CQ>= (50+(75*(Round((Crafting_StepHealth(CS)+15)/30))))) AND (statSkill >= 500) Then
                    pressHotkey(idStat2(2))
                                    if debugState then debugLog "stat2 HK2"    end if
                else
                    pressHotkey(idStat2(1))
                                    if debugState then debugLog "stat2 HK1"    end if
                end if
                Sleep 2500
This is the code in the acbinclude.vbs from a fresh install of the newest version. It looks like the file in the .zip needs to be updated.
Posted: December 23rd, 2007
beergeek
Yes, the skill check needs to be removed (btw, it was put in as a placeholder), but it clicks the correct hotkey. As I said before, action 2 is rarely used and not completely necessary, so I'll wait until next release for the update.
Posted: December 23rd, 2007
Total Posts:55 Joined:2007
pressHotkey(idStat2(1)) should be pressHotkey(idStat2(3))
Posted: December 23rd, 2007
Total Posts:22 Joined:2007
Tried the new version, works great. I can finally craft those bags in huge numbers :D.
One question--before you provided a fix for those of us who do not do automatic buying/wo to stop when it runs out of WOs. I tried the same thing and it does not seem to work. After clicking a few times on Begin buttton my char starts spinning madly in place. Is there a way to make the bot quit whenever there is a stoppage? (It seems to stop fine when crafting real items).
Thank you.
Posted: December 24th, 2007
kronfu
Ran into a new complication here is the info:

Artificer lvl 24

Unidentified Comp: Ideal Opportunity

Two remedies are:
Minor Repair 35 AP
Fuse Material 50 AP
Posted: December 24th, 2007
beergeek
kronfu wrote:Ran into a new complication here is the info:

Artificer lvl 24

Unidentified Comp: Ideal Opportunity

Two remedies are:
Minor Repair 35 AP
Fuse Material 50 AP
Ack!! Sorry, forgot to remove the code that creates a breakpoint when a new comp occurs. To include the comp for proper resolution, I would also need to know the complication effect and what skill each remedy uses (tool, station or utility). Eventually, I'll get it coded, but it should just perform a default remedy. To get this to stop popping a message box, find the procedure "sub compIdent(newComp)" in acbinclude.vbs (about 80% down), find the section below and delete the msgbox and sleep 3000 lines:

Code: Register to unlock hidden link

    if notIdentified then
       msgbox "Unidentified Comp: " & newComp
        sleep 3000
        activeComps(numActiveComps,1) = "1234"
        activeComps(numActiveComps,2) = 0
        activeComps(numActiveComps,3) = numCompRemedies(0)
        activeComps(numActiveComps,1) = Left(activeComps(numActiveComps,1),activeComps(numActiveComps,3))
    end if
railshot wrote:Tried the new version, works great. I can finally craft those bags in huge numbers .
One question--before you provided a fix for those of us who do not do automatic buying/wo to stop when it runs out of WOs. I tried the same thing and it does not seem to work. After clicking a few times on Begin buttton my char starts spinning madly in place. Is there a way to make the bot quit whenever there is a stoppage? (It seems to stop fine when crafting real items).
Thank you.
An oversight, since I always use the buy utility function. In acbincluderecipes.vbs, all the way at the bottom, replace this:

Code: Register to unlock hidden link

    If (Crafting_State <> 3) Then
        Mouse.LMouseClick CN_X, CN_Y, 1, 1
        if NOT makingRealItems then
            MovetoTM
            If buyUtilities Then
                MovetoUM
            End If
            MovetoCT
        end if
    End if
with this:

Code: Register to unlock hidden link

    If (Crafting_State <> 3) Then
        Mouse.LMouseClick CN_X, CN_Y, 1, 1
        if NOT makingRealItems then
            MovetoTM
            If buyUtilities Then
                MovetoUM
            End If
            MovetoCT
        end if
        if NOT buyUtilities then
            OKtoContinue = False
        end if
    End if
That should force the script to stop after your work orders are done.

Railshot: you shouldn't be spinning in circles. Do me a favor: delete your debug.log file in your exhume directory, load the script vartest.vbs attached below, start a crafting recipe manually, then execute the script. It won't do anything but put some data in the log. PM me your new debug.log. It will contain no personally identifying information, but will let me know what offsets are working and which aren't.


Attachments:
vartest.vbs Register to unlock hidden link
(3.59 KiB) Downloaded 17 times
Posted: December 26th, 2007
kronfu
Dont konw if this has been brought up before, all my crafters are experienceing the same issue. When it comes to complications, the script always chooses the middle one, regardless of wehtere there are one, two, or three remideis. If the middle remedy does not have the correct item, it still clicks it anway, and will keep attempint to click it for 3 -5 times. Should remedies be clicked from 1 then 2 then 3, or is it working as intended? Thanks.
Posted: December 27th, 2007
Total Posts:55 Joined:2007
in my experience it does its best to pick the best one to nuke the comp as quick and effectively as it can...
Posted: December 27th, 2007
beergeek
officers is correct... I have programmed in the data an order to be clicked for each complication.

It sounds to me like your skills aren't being read properly, where the script thinks your skills are 0 and therefore only have one remedy available.

Run the script with acbuserdata.vbs options debugState = True and debugLevel = 8 and send me your debug.log after running the bot through one recipe. Oh, delete debug.log first.
Posted: December 27th, 2007
Total Posts:55 Joined:2007
2 problems atm
1) Permission Error on the log file is back with a vengeance. Cant even start it anymore.

2) Crafting_BaseRefStatSkill() etc is returning no value, so it thinks i have 0 skill points.
Posted: December 27th, 2007
beergeek
officers wrote:2 problems atm
1) Permission Error on the log file is back with a vengeance. Cant even start it anymore.

2) Crafting_BaseRefStatSkill() etc is returning no value, so it thinks i have 0 skill points.
1) I still haven't been able to duplicate this. Possible OS bug? What are you running?

2) Tests fine on my machine for all trades, although I had it return garbage data before. Rebooting my machine and starting fresh would fix it, though. Don't know why this happens, but it doesn't just affect these. Sometimes will randomly affect other vgservice offsets, as well.

If you try a reboot and it still doesn't work, you can comment out the memory peeks in the vgextraoffsets.vbs and just have those functions return a value you key in (e.g. Crafting_BaseRefStatSkill = 220). If you do that, make sure you have autobalance turned off in your user file.
Posted: December 28th, 2007
ve_necro
Bot runs smooth as with waypoints etc... that is until I have gone and picked up a new batch, been to the utility vendor etc. I move to the location specified in the waypoints which puts me at the feet of the workstation but then for no reason it searches for it (all part of the program) and then continues to autorun in a straight line, I have all my keys set to default so its not that.

Any idea what can be causing this and how to remedy it?


Last edited by Guest on December 28th, 2007, 8:25 am, edited 1 time in total.
Posted: December 28th, 2007
Total Posts:55 Joined:2007
on a clean boot, it returns 0 on the skills

still using that clean boot, still runs permission errors. Running XP
Posted: December 28th, 2007
beergeek
What tradeskill? I'll try checking skills again.

Nothing has changed with regards to the logfile parsing and I've never encountered the permission error on my machine. Certainly, I don't doubt your problem, but I cannot fix it unless I have a way to duplicate it. I'm running xp, too, so if it is an OS problem, it's related to your configuration. Have any AV software running?

Try running the vartest.vbs I posted a few messages up and send me the log.
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