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

VGExtreme - DiplomacyBot 2.2 : VGExtreme Programs

Posted: May 8th, 2008
beergeek
Just ran the hotfix that you posted (both of them) and still not working as intended but working well enough. I now have half of the server on my allowed list lol so yay no more errors, but for some reason upon a tell thats not on my list, rather than play the sound like selected it just gives me another error message. As you know normally I would post the exact info for you but like a moron I just hit reset and added the person to the list.
Here's a fix:

Replace the following procedure in dbinclude.vbs:

Code: Register to unlock hidden link

sub ClearLog()
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objFile = objFSO.OpenTextFile(Logpath, ForWriting)
    Set objFile = objFSO.OpenTextFile(Logpath, ForReading)
    strSearchString = objFile.ReadAll
    objFile.Close
    arrLines = Split(strContents, vbCrLf)
    Set objFile = objFSO.OpenTextFile(Logpath, ForWriting)
    For i = 0 to UBound(arrLines) - 1
        objFile.WriteLine arrLines(i)
    Next
    objFile.WriteLine ("Clearing Log")
    objFile.Close
End sub
with this:

Code: Register to unlock hidden link

sub ClearLog()
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objFile = objFSO.OpenTextFile(Logpath, ForWriting)
    objFile.WriteLine ("Clearing Log")
    objFile.Close
End sub
Further, make sure the wav file specified in TSound in dbconfig is a valid file. I had to change ring.wav to ringin.wav


EDIT: looks like mythic posted while I was doing the same :)
Posted: May 9th, 2008
Total Posts:55 Joined:2005
I have been noticing another small issue too, sorry if I seem to be finding lots... But when you do for instance a bartender parley and YOU are to go first, the script keeps failing saying that your opponent has nothing to play and ends the parley.

Even though I keep saying I have found this and that I have to say really good work on this project and its a fantastic little script. Last night I watched a couple of movies while doing some schematic farming and before you knew it I had over 40 of them with no issues :D

So for beer and mystic Im not trying to find faults but when I see one I try to point it out incase of any new user being stuck or if you dont find it yourself. For anyone reading this who wants to run the script, I can 100% say with confidence that this is a fully working diplomacy bot and I use it with great success.

Keep up the good work
Posted: May 9th, 2008
beergeek
don't feel bad about reporting bugs; this is how we can improve the bots for everyone. It becomes very difficult for one person to find and squash them all, especially the more complex a proggy gets.

If I didn't like doing it, I wouldn't be posting.
Posted: May 9th, 2008
Total Posts:77 Joined:2007
I think beergeek summed that up nicely. Don't feel bad at all about posting bugs, your feedback is important :)
Posted: May 9th, 2008
Total Posts:77 Joined:2007
valmir wrote:I have been noticing another small issue too, sorry if I seem to be finding lots... But when you do for instance a bartender parley and YOU are to go first, the script keeps failing saying that your opponent has nothing to play and ends the parley.
I was not aware of this. I am leaving my friends house now (where I can mess with the bot). I look into this sometime tonight or tomorrow.
Posted: May 9th, 2008
Total Posts:55 Joined:2005
mythicskunk wrote:
valmir wrote:I have been noticing another small issue too, sorry if I seem to be finding lots... But when you do for instance a bartender parley and YOU are to go first, the script keeps failing saying that your opponent has nothing to play and ends the parley.
I was not aware of this. I am leaving my friends house now (where I can mess with the bot). I look into this sometime tonight or tomorrow.
My very first issue was relating to this and after a full clean install it worked if you remember back, but I did try another NPC when I got it working, after a clean install it still has the same issues on the bartender in house caberton (NT) so if you wanted a mob that I remember had an issue with the script there is your man. He is in the same room as the leader of house caberton and you can easily find the info on VGTact wiki if you dont know where he is.

Like I said other than teething issues this script works very nicely, I think the hardest part is sitting there and filling out your deck, but hey even thats easy enough just time consuming hehe.
Posted: May 9th, 2008
Total Posts:77 Joined:2007
*UPDATE 2.2*

- BugFix for NPCs that do not have the civic diplomacy button in the dialog window, such as bartenders.

- Added, Const DoAllTypes
Setting this to True will cause the bot to select the top parley until the NPC has no more available or ParleysPerNpc is reached.
Posted: May 10th, 2008
Total Posts:55 Joined:2005
Ah, thats obviously what the problem was... canot belive I didnt spot it lol. Now after reading it, obviously bartenders dont have the civic option before picking a parley, which is why it starts then ends.

Great work matey and keep up the good work.
Posted: May 12th, 2008
Total Posts:55 Joined:2005
Just thought I would post a quick message to you both. I was using it today in khal and within 5 mins of me starting the program I had a GM spawn next to me and tell me that I was a suspected bot, then continued to go on about this and that before handing out a 7 day suspension. I was there at the time of contact and the script paused because of the tell warning system.

I think they are cracking down on all 3rd party software so I think that we may need a little more protection put into the scripts and Im just happy that I dont afk while I run them otherwise I would be in for a total ban not just 7 days.
Posted: June 4th, 2008
Total Posts:77 Joined:2007
You were likely approached by a GM due to player reports. I say this because it is known that Sony does not scan your machine. You were running the bot for 1-2 days with lots of people on your 'safelist' and one of them probably reported you.


The nature of the bot usually requires you to be in a populated area. So always use the 'Bot Safety' settings when you are not there to monitor it.
As always, use at your own risk.
Posted: June 5th, 2008
User avatar
Premium
Total Posts:6662 Joined:2004
I have yet to see anything in the code that would reflect detection, so I am leaning at this point also to a player report.

That said, in that case, I would have argued that is just how you play. He would have no proof that you were a bot.

_________________
Use Search first, ask questions later!
Posted: June 25th, 2008
Total Posts:62 Joined:2008
Does this work with CoreUI, or do you have to use the default UI?
Posted: June 29th, 2008
beergeek
glass40 wrote:Does this work with CoreUI, or do you have to use the default UI?
I'm not sure the exact differences in coreui, but it can be made to work.

The quick setup assumes hotkeys and cards are in specific positions relative to one another, but it's not terribly difficult to tweak the numbers so it hits the right spot.

Perhaps a setup option should be added for non-default shells which may take a little longer, but allow any ui to be accommodated without tweaks.
Posted: July 10th, 2008
Total Posts:77 Joined:2007
Unfortunately I no longer have a VG sub so a cannot develop the bot further. However, as Beergeek has stated, you can get your own mouse coordinates and enter them yourself.

Also, I don't recall, but if CoreUI alters the dialog window that the Conversation options appear in, you will need to set the bot to do all conversation types. This will bypass the pixel check required to determine the conversation types.
Posted: July 23rd, 2008
rommel62
Not sure if anyone is using this anymore, but it was very useful for the few months I used it. It stopped functioning properly around GU5, and hasnt worked since. It apparently can not determine card cooldown anymore, and because of this, keeps trying to use card one, to no avail. After a number of reinstalls , etc, I am guessing it has to do with a broken API that determines card cooldown.

Of course, I could be wrong and this is working fine for everyone else, and there is something on my end that is messed up.

If anyone is using this script successfully, please let me know, otherwise I'll assume that it no longer can be used.

Thanks
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