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

VSOH - Advanced Crafting Bot v1.1 : VGExtreme Programs

Posted: December 28th, 2007
Total Posts:55 Joined:2007
Mineralogy specialization of artificing. Ill try that vartest tonight
Posted: December 28th, 2007
Total Posts:55 Joined:2007
Vartest cant be run...since it cant open a recipe.

Attached is the debug log of the permission denied...

unfortunately it doesnt show the error itself in the log.


Attachments:
debug.log Register to unlock hidden link
(3.9 KiB) Downloaded 11 times
Posted: December 29th, 2007
Total Posts:55 Joined:2007
I went digging through the code...finally figured out what has it working for the moment.

"Set your correct exhume directory" is misleading. It asks to specify the path including the filename VGLogDump.log in it, else the permission error comes up. I had it as the correct path to the folder the log was in, however, with it not specifying the file, it fails.
Posted: December 29th, 2007
beergeek
officers wrote:Vartest cant be run...since it cant open a recipe.

Attached is the debug log of the permission denied...

unfortunately it doesnt show the error itself in the log.
Not sure what you mean about it not being able to open a recipe--it's not supposed to. All it does is take a snapshot of offsets used by the bot and dumps them to your log. It helps greatly to determine if a particular offset isn't working properly.

You are right about the path. I'll change in my version the text to be less misleading, that the full path to the file is required.

Also, from the log you posted, I can see the script is reading your crafting skills fine. Let me know if you have other trouble
Posted: December 29th, 2007
Total Posts:55 Joined:2007
1) Figured the vartest was something that ran while you where in a recipe. So if its showing something...okay...

3) The debug window attached to VGE showed 0's across the board so its possible the offsets are read correctly, but not getting tossed in correctly.
Posted: December 31st, 2007
vanguardmarco
beergeek wrote:
officers wrote:Vartest cant be run...since it cant open a recipe.

Attached is the debug log of the permission denied...

unfortunately it doesnt show the error itself in the log.
Not sure what you mean about it not being able to open a recipe--it's not supposed to. All it does is take a snapshot of offsets used by the bot and dumps them to your log. It helps greatly to determine if a particular offset isn't working properly.

i'vYou are right about the path. I'll change in my version the text to be less misleading, that the full path to the file is required.

Also, from the log you posted, I can see the script is reading your crafting skills fine. Let me know if you have other trouble
i have the same problem; sometime the scrip ended becouse fail authorization to read or writing this file (i think..).
my initial patch was inside the same of unleashed/vgextreme directory
i'v changed this in acbuserdata (simply in main c/: dir ...logpath:= "c:\VGlogdump.log)...but it not buys any utilities material or other function that use reads or write this file; and i must stay near keyboard to help script in this lack.
i have noted that now there are two Vglogdump file ,one in the directory
linked from acbuserdata.vbs (c:\vglogdump.log) and an other file in the old patch c:\unleasched\Vgextreme.

however only this last be updated from vangaurd event craft and in the other file i can read only one clear log instruction. however every two file
are bring up to date.
watchching script when runing, i haven't any authorisation fail....but it always buy the total of materials mark in abcuserdata..and it doesn't change toolbelt.

i think that it continuously writes in one and reads in other blank file.

i'v an other problem, when it target s the working table it affix a 'question mak' fist and before the instruction: target ? Artificer Sculpiting Table ?
..nothing find and pg goes in circle.
Posted: December 31st, 2007
kronfu
Is it possible to run this script with Vanguard in full screen mode?
Posted: December 31st, 2007
beergeek
officers wrote:1) Figured the vartest was something that ran while you where in a recipe. So if its showing something...okay...

3) The debug window attached to VGE showed 0's across the board so its possible the offsets are read correctly, but not getting tossed in correctly.
1: vartest just takes a snapshot, so can be run in a recipe or outside one. Just keep in mind it doesn't actually do anything; it's like hitting your screenshot key to read certain memory locs.

3: I have to see the result file.
Posted: December 31st, 2007
beergeek
vanguardmarco wrote:i have the same problem; sometime the scrip ended becouse fail authorization to read or writing this file (i think..).
my initial patch was inside the same of unleashed/vgextreme directory
i'v changed this in acbuserdata (simply in main c/: dir ...logpath:= "c:\VGlogdump.log)...but it not buys any utilities material or other function that use reads or write this file; and i must stay near keyboard to help script in this lack.
i have noted that now there are two Vglogdump file ,one in the directory
linked from acbuserdata.vbs (c:\vglogdump.log) and an other file in the old patch c:\unleasched\Vgextreme.

however only this last be updated from vangaurd event craft and in the other file i can read only one clear log instruction. however every two file
are bring up to date.
watchching script when runing, i haven't any authorisation fail....but it always buy the total of materials mark in abcuserdata..and it doesn't change toolbelt.

i think that it continuously writes in one and reads in other blank file.

i'v an other problem, when it target s the working table it affix a 'question mak' fist and before the instruction: target ? Artificer Sculpiting Table ?
..nothing find and pg goes in circle.
Let me try to take these one at a time. My apologies in advance if I miss something...

Logfile issue and utility buying: The logfile path must point to the VGLogDump.log file that exists in the same directory where VGExtreme.exe is located, since that is where VGExtreme creates the file. If you are pointing to the wrong directory, even if a file of that name exists there, it will not properly read your inventory as no updates are going in to it (and since it can't read your inventory, it thinks you have nothing and need all the utilities). When you open this log file, you shouldn't see anything but "Clearing Log" as the script deletes the contents after each check so it doesn't match a past event.

Not changing toolbelt: Retry after addressing your logfile problem above. Before it will switch toolbelts, the script needs to realize the tool is missing by doing a logfile check. If the logfile is being read fine, then make sure your hotkey CTRL-SHIFT-0 has a macro with /craftingchangetoolbelt in it. (another fyi: the script will not process complications optimally if the logfile isn't being read)

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.

"pg goes in a circle": I don't know what you're talking about. You spin in place in circles non-stop? If that is the case it sounds like your offsets aren't being read properly and you may need to fully update vgextreme.
Posted: December 31st, 2007
beergeek
kronfu wrote:Is it possible to run this script with Vanguard in full screen mode?
Never tried this, but you're welcome to do so and let me know :)
Posted: January 1st, 2008
vanguardmarco
beergeek wrote:
Let me try to take these one at a time. My apologies in advance if I miss something...

Logfile issue and utility buying: The logfile path must point to the VGLogDump.log file that exists in the same directory where VGExtreme.exe is located, since that is where VGExtreme creates the file. If you are pointing to the wrong directory, even if a file of that name exists there, it will not properly read your inventory as no updates are going in to it (and since it can't read your inventory, it thinks you have nothing and need all the utilities). When you open this log file, you shouldn't see anything but "Clearing Log" as the script deletes the contents after each check so it doesn't match a past event..
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).
beergeek 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.
Posted: January 1st, 2008
ve_necro
Great work here Beergeek, I have found a few small issues such as when doing complications the curser generally goes for the middle option like a previous user stated and on some crafting actions it doesnt always pick the smartest choice, as an example it will use the 50 point low progress rather than the 100 point high one which on occasion will end up with a failed WO.

I have been running this script now for 48hrs straight to test it out and I can tell you this much, I have gone 1-30 in that time with a small break in it for tier quests then right back into the script. The best part for me is I have it on white / blue set up and Im getting A grade almost every WO and the rare supply pouches are rolling in, just a shame I havent found anything of use other than a few rare componants, no tools or clothes worth upgrading.

One small thing I do suggest is that perhaps if its at all possible I dont know if the commands are there, failing that you can always use X, Y locations. Having the code repair the gear when it buys, perhaps there is a way to check item durability I am thinking as if you do this on every set of WO it will work out expensive.
Posted: January 1st, 2008
beergeek
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.[/quote]

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.
Posted: January 1st, 2008
beergeek
ve_necro wrote:Great work here Beergeek, I have found a few small issues such as when doing complications the curser generally goes for the middle option like a previous user stated and on some crafting actions it doesnt always pick the smartest choice, as an example it will use the 50 point low progress rather than the 100 point high one which on occasion will end up with a failed WO.

I have been running this script now for 48hrs straight to test it out and I can tell you this much, I have gone 1-30 in that time with a small break in it for tier quests then right back into the script. The best part for me is I have it on white / blue set up and Im getting A grade almost every WO and the rare supply pouches are rolling in, just a shame I havent found anything of use other than a few rare componants, no tools or clothes worth upgrading.

One small thing I do suggest is that perhaps if its at all possible I dont know if the commands are there, failing that you can always use X, Y locations. Having the code repair the gear when it buys, perhaps there is a way to check item durability I am thinking as if you do this on every set of WO it will work out expensive.
The script shouldn't always go for the middle comp button unless the skills aren't reading properly, where it thinks they are zero and you only have one remedy available.

Set debugState=True and debugLog = 7 in acbuserdata. Start the script for a couple seconds and stop it. Near the top of the debug window you should see some lines like refTool = xxx, refUtil = xxx, etc. Those numbers should be nonzero and equal to your base skill level (the number you see when the log says something like "Your skill in Sculpting Utilities has increased to xxx")

50 point actions aren't used except in a few rare cases, like if you don't have the ap available, or in the case of station1, you only need a little bit of progress to move on. It won't always use high progress actions if the action contains +quality and by its formula decides you don't need quality in this step. It's not perfect for all crafting (high level trivial stuff has more efficient options), but it's pretty effective at hitting your target quality the vast majority of times. If you find you're having a bit of extra ap left over on all recipes, bump up the target quality percent.

Next release I will probably put in an option to repair gear when on player housing islands, where the utility vendor is also a trainer and repair merchant. It is easy to do this where it will repair after every 5 trips or so. I likely won't add support to visit a repair merchant other than the utility merchant as this will require another 3 sets of waypoints.
Posted: January 1st, 2008
ve_necro
Dont get me wrong beergeek, Im happy with what the script does and it like you says hits my target so there is nothing I can say to complain.

On a slightly different note, anyone know when the WOs on a housing island dry up? Im happy crafting here as everything is at my feet, but curious when I have to get my little crafter butt into gear and move from town to town.
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 2 guests
Locked