Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Black Desert
You last visited: Today at 17:38

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[AutoIt] CrayonCode Bot Project (OpenSource & Free)

Discussion on [AutoIt] CrayonCode Bot Project (OpenSource & Free) within the Black Desert forum part of the MMORPGs category.

Reply
 
Old 04/12/2017, 21:02   #106
 
elite*gold: 0
Join Date: Mar 2011
Posts: 108
Received Thanks: 8
Please we need a Discord Channel! xD
s3anlike is offline  
Old 04/12/2017, 23:50   #107
 
killzone's Avatar
 
elite*gold: 100
Join Date: Mar 2006
Posts: 1,819
Received Thanks: 424
No need imo. Development for such project should remain accessible by all.
Not everyone likes to use discord. It defeats the purpose of having the forum in the first place.
killzone is offline  
Old 04/12/2017, 23:57   #108
 
elite*gold: 0
Join Date: Apr 2017
Posts: 108
Received Thanks: 199
Quote:
Originally Posted by ahmedwork View Post
@ great work as usual dude :3

have a look to this code it was implemented to detect when the game dced we can use that and improve it with an autologin

what do you think

Seems like the BDO-Watchdog basically just cmd netstats and it works perfectly. I translated this to au3.

Code:
Func IsProcessConnected($ProcessName)
	Local $PID = ProcessExists($ProcessName)
	If Not $PID Then Return -1
	Local $Pattern = "\s" & $PID & "\s"
	Local $iPID = Run(@ComSpec & " /c netstat -aon",  [MENTION=1024018]SystemD[/MENTION]ir,  [MENTION=330060]Sw_[/MENTION]HIDE, 4 + 2) ;  $STDERR_CHILD (0x4) + $STDOUT_CHILD (0x2)
	If Not $iPID Then Return -2
	Local $sOutput = ""

	While True
		$sOutput &= StdoutRead($iPID)
		If  [MENTION=2544426]Error T[/MENTION]hen ; Exit the loop if the process closes or StdoutRead returns an error.
			ExitLoop
		EndIf
	WEnd

	Return (StringRegExp($sOutput, $Pattern, 0)) ; Returns 1 if connceted, 0 if disconnected.
EndFunc   ;==>IsProcessConnected


@
Code:
12:05.07 Loot:[200][-200][-200][-200]
12:05.07 Pick:[1][0][0][0]
This says blue grade, no special, no event in the first slot and empty in the other three.
The filter decides to pick the first slot since its higher than green.
Sounds fine. The Mouseclick must somehow mess up.

Try settings to loot anything and then check what the bot does whenever it is time to loot. (Where the mouse moves to or if the camera moves)

Are you running windows 8? Most of those issues sound like admin-privilege problems.




I'm running little short on time today. I'll check out the ISN tool and killzones gui tomorrow.

I'd be ok with a good old irc chat. With discord you can't really escape people and they will bother you if you are there or not.

EDIT: Why the fuck is MENTION fucking with CODE ?
CrayonCode is offline  
Old 04/13/2017, 01:36   #109

 
721560329's Avatar
 
elite*gold: 41
Join Date: May 2011
Posts: 1,922
Received Thanks: 1,233
hey just an idea... cant you use the patch icon to check if mout was selected for autopath ?

this is waht i mean:
721560329 is offline  
Old 04/13/2017, 01:51   #110
 
elite*gold: 0
Join Date: Apr 2017
Posts: 108
Received Thanks: 199
Quote:
Originally Posted by 721560329 View Post
hey just an idea... cant you use the patch icon to check if mout was selected for autopath ?

this is waht i mean:
I have already talked about this. This icon is very unreliable and will cause more trouble then good.

Quote:
Originally Posted by CrayonCode View Post
The problem with the red waypoint icon is that is has low priority. So NPCs, other players, your char yourself and the camera angle can all hide it.
The interface can also be on top as well and it is not solid.
CrayonCode is offline  
Old 04/13/2017, 04:51   #111
 
iNiperx's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 610
Received Thanks: 152
Quote:
Originally Posted by CrayonCode View Post
@
Code:
12:05.07 Loot:[200][-200][-200][-200]
12:05.07 Pick:[1][0][0][0]
This says blue grade, no special, no event in the first slot and empty in the other three.
The filter decides to pick the first slot since its higher than green.
Sounds fine. The Mouseclick must somehow mess up.

Try settings to loot anything and then check what the bot does whenever it is time to loot. (Where the mouse moves to or if the camera moves)

Are you running windows 8? Most of those issues sound like admin-privilege problems.
I figured I had to show (toggle) my cursor on for it to work, otherwise the in-game camera would move (The program thinks it can move the mouse but its just moving the camera)
iNiperx is offline  
Old 04/13/2017, 05:58   #112
 
elite*gold: 0
Join Date: Mar 2017
Posts: 13
Received Thanks: 1
Quote:
Originally Posted by CrayonCode View Post
It always helps. Else I have to do everything from scratch. And I'm not really playing BDO so I don't always know how to do things the best way.



@ I wish I could do several things different. The whole KODA autoit GUI feels so stupid imho.
Doesn't even remember listview items on loading and stuff like that.
Never really did GUIs before.
If you want to help out feel free. You can open the CrayonCode.au3 with KODA and fiddle with it, or mock up a new one entirely.


@ Did you convert the pictures somehow? They look like .jpg quality allthough they are in the .bmp format.
And the colors are absolutely inconsistent so I'm pretty sure there is some compression involved.
I send screenshots of the new in the format jpg, I really hope for you that you will help me and make a fishing script for the Russian version of the game! Thanks!
Attached Files
File Type: rar BDORU.rar (3.80 MB, 18 views)
laservic is offline  
Old 04/13/2017, 08:13   #113
 
elite*gold: 0
Join Date: Apr 2017
Posts: 108
Received Thanks: 199
Quote:
Originally Posted by laservic View Post
I send screenshots of the new in the format jpg, I really hope for you that you will help me and make a fishing script for the Russian version of the game! Thanks!
No I need UNCOMPRESSED .bmp or .png
JPEG is no good at all.

If the picture is 1920x1080 .bmp it should be 8 MB in size, but yours have less than 6 MB.



@ Try running the script as admin. It looks like the controlsend command is being ignored that taps CTRL to make the mouse appear and hide.
CrayonCode is offline  
Old 04/13/2017, 08:47   #114
 
iNiperx's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 610
Received Thanks: 152
Quote:
Originally Posted by CrayonCode View Post
@ Try running the script as admin. It looks like the controlsend command is being ignored that taps CTRL to make the mouse appear and hide.
Ummh, I dont use CTRL as my cursor toggle, I use Button 4 from my mouse (extra buttons), I'll have to change it.
iNiperx is offline  
Old 04/13/2017, 09:18   #115
 
elite*gold: 0
Join Date: Feb 2009
Posts: 67
Received Thanks: 5
After testing the script for some time, these are the problems i've found:
- Worker feeding does not work for me, maybe it's because of the location of the button...im not sure
- even though i selected only selling fish in the restock option, it still goes to blacksmith, market and storage...
- the Restock-Function itself gets stuck very often and would need some rework. Most important in my opinion is the ability to stop it it's always a fight against the script when it gets stuck. Maybe also stop restock with F4?

other than that, great work Crayon! Thank you!
limital is offline  
Old 04/13/2017, 10:02   #116
 
elite*gold: 0
Join Date: Apr 2017
Posts: 108
Received Thanks: 199
Quote:
Originally Posted by limital View Post
After testing the script for some time, these are the problems i've found:
- Worker feeding does not work for me, maybe it's because of the location of the button...im not sure
- even though i selected only selling fish in the restock option, it still goes to blacksmith, market and storage...
- the Restock-Function itself gets stuck very often and would need some rework. Most important in my opinion is the ability to stop it it's always a fight against the script when it gets stuck. Maybe also stop restock with F4?

other than that, great work Crayon! Thank you!
Good catch. Fixed in the next version.

Is your worker icon not the 4th position from the left? (Horse/Ship/House/Worker/Pet)
I'll probably change the worker feeding to use ESC -> Workerlist in the future.
CrayonCode is offline  
Thanks
1 User
Old 04/13/2017, 10:17   #117
 
elite*gold: 0
Join Date: Mar 2017
Posts: 13
Received Thanks: 1
Quote:
Originally Posted by CrayonCode View Post
No I need UNCOMPRESSED .bmp or .png
JPEG is no good at all.

If the picture is 1920x1080 .bmp it should be 8 MB in size, but yours have less than 6 MB.



@ Try running the script as admin. It looks like the controlsend command is being ignored that taps CTRL to make the mouse appear and hide.
Do you need such screenshots?
Attached Images
File Type: jpg 2017-04-12_18236109.jpg (28.2 KB, 8 views)
File Type: jpg 2017-04-12_18352677.jpg (26.5 KB, 5 views)
File Type: jpg 2017-04-12_18358088.jpg (25.0 KB, 5 views)
laservic is offline  
Old 04/13/2017, 10:21   #118
 
elite*gold: 0
Join Date: Feb 2009
Posts: 67
Received Thanks: 5
Great, Thanks! My Icon is in 3rd position. Guess thats why it doesnt work
limital is offline  
Old 04/13/2017, 12:34   #119
 
elite*gold: 0
Join Date: Mar 2017
Posts: 4
Received Thanks: 0
Quote:
Originally Posted by CrayonCode View Post
It always helps. Else I have to do everything from scratch. And I'm not really playing BDO so I don't always know how to do things the best way.

Pm sent
rantobot1 is offline  
Old 04/13/2017, 13:07   #120
 
killzone's Avatar
 
elite*gold: 100
Join Date: Mar 2006
Posts: 1,819
Received Thanks: 424
Quote:
Originally Posted by CrayonCode View Post
Good catch. Fixed in the next version.

Is your worker icon not the 4th position from the left? (Horse/Ship/House/Worker/Pet)
I'll probably change the worker feeding to use ESC -> Workerlist in the future.
Right-clicking a BEER from inventory opens worker list too.

Quote:
Originally Posted by limital View Post
Great, Thanks! My Icon is in 3rd position. Guess thats why it doesnt work
Find this from CrayonCode.au3
Code:
[211, 118], _ ; Worker Icon
Then open your C:\Program Files (x86)\AutoIt3 and run "Au3Info_x64.exe".
While the BDO window is open (full window Screen)
Click & Drag the Finder Tool Icon from Au3Info_x64.exe and drag it over to your Worker List icon.
It will tell you exactly where its located and copy the X/Y Position.
Then replace:
Code:
[211, 118], _ ; Worker Icon
Into:
Code:
[NEWX, NEWY], _ ; Worker Icon
Save and start the bot again.

Quote:
Originally Posted by laservic View Post
Do you need such screenshots?
Screenshots should not be compressed. Jpgs are compressed format.
Go in game -> options -> screenshot -> select PNG or BMP.

Zip your screenshots and upload it so the compression is untouched.

Quote:
Originally Posted by 721560329 View Post
hey just an idea... cant you use the patch icon to check if mout was selected for autopath ?

this is waht i mean:
In general, the auto path (finding NPC) is not reliable itself.
Sometimes you have to single click the icon to auto path.
Sometimes you need to double click the icon to auto path.
Sometimes double clicking cancels the auto path.
Sometimes single clicking cancels the auto path.

Although I agree it needs improvement but I dont think it has a higher priority.
You can just fish with Blue minimum rarity and dry the blue fishes.
Drying the blue fishes gives purpose to making dry fish crates.
With the crates, it also adds silver to your daily afk routines.
killzone is offline  
Reply


Similar Threads Similar Threads
[Opensource] PokeMMO Autoit bots
01/12/2014 - Pokemon - 117 Replies
DON'T USE THIS UNTIL WE FIND A WAY TO WORK AROUND THE CAPTCHA!!! Gnomepy's PokeMMO bot V6.1 *31 january 2013* Functions: -Heals when hp/pp is low -Catches shiny's -Train EV (currently only Attack, Speed and Sp.Attack are added)
[OPENSOURCE PROJECT] BROWSERGAME
02/06/2012 - Web Development - 8 Replies
HEYHO Leute :D , Ich suche Leute die Lust hätten mit mir ein eigenes Browsergame zu erstellen. Also ich bräuchte ein ganzes Team so wie Sponsoren usw. Wir Brauchen Programmierer Und eine Idee. Was genau wir veröffentlichen wollen. Alle die Vielleicht nicht mit machen wollen aber eine idee haben bitte in den Kommis Schreiben LG StreetFight
[OpenSource Project] C++ CoCore
01/26/2011 - CO2 Private Server - 59 Replies
Alright, I think I'm done with the lurking for now.. The main reason of me starting this project is to get some people to use C++ instead of C#. There are a few members who I believe have potential, and I think those are pretty much the ones who will take interests into this project. What is this CoCore, and what does it contain?: Unknown (?) Yes.. Unknown. I think I want the members who are interested to provide me with a list of things that should be put in, for example, custom...
Farmville Automatizer OPENSOURCE free bot [AutoIT]
04/05/2010 - Facebook - 2 Replies
Farmville Automatizer released! Open Source >>> Download <<<



All times are GMT +1. The time now is 17:38.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.