[AutoIt] CrayonCode Bot Project (OpenSource & Free)

04/08/2017 00:04 CrayonCode#46
Quote:
Originally Posted by kukkyh View Post
Just wanna thank @[Only registered and activated users can see links. Click Here To Register...] (and all you guys helping too) for creating an awesome program that actually fishes well and is OPEN SOURCE. I would love to help too, but i have 0 coding skills.

You could actually help me out right now by catching fish that can not be dried.
I need a screenshot of how they look when you are in the drying window.

Quote:
Originally Posted by s3anlike View Post
Auto Restock Trader Selling Goods (Fishes) failing because out of range from NPC, other npcs work for me
You might want to try a different Trader NPC then. Some NPCs are just hopeless to reach with autopathing. You could share the NPC name so people know who to avoid.
04/08/2017 00:59 s3anlike#47
Quote:
Originally Posted by CrayonCode View Post
You could actually help me out right now by catching fish that can not be dried.
I need a screenshot of how they look when you are in the drying window.



You might want to try a different Trader NPC then. Some NPCs are just hopeless to reach with autopathing. You could share the NPC name so people know who to avoid.
Hey Crayon i found the NPC who work, and i know why some npc not work because the waypoint is not the same its changing and then will the working npcs never work because i decided another way but it will work i think you need to change the mouseclick from 1 click to 2 click, if the bot type in npc window the npc name and walk to the npc he will mark the way for the second one he will mark the next way but the mark of the first npc will be deletet and the bot runs anywhere so u need to add like a double click for example first click (marked waypoint of the first npc will be deletet) second click (the new waypoint will be marked) and press T...

I hope you understand it :S "Bad English" sry xD

PS: Please make a Stop function for "Test Restock"!!
04/08/2017 01:45 CrayonCode#48
Quote:
Originally Posted by s3anlike View Post
Hey Crayon i found the NPC who work, and i know why some npc not work because the waypoint is not the same its changing and then will the working npcs never work because i decided another way but it will work i think you need to change the mouseclick from 1 click to 2 click, if the bot type in npc window the npc name and walk to the npc he will mark the way for the second one he will mark the next way but the mark of the first npc will be deletet and the bot runs anywhere so u need to add like a double click for example first click (marked waypoint of the first npc will be deletet) second click (the new waypoint will be marked) and press T...

I hope you understand it :S "Bad English" sry xD

PS: Please make a Stop function for "Test Restock"!!
That is a known issue. The problem is that if you click again you deselect it.
I tried to make the click as reliable as possible. If I would find a way to detect that a path is correctly selected it would be way easier.

Use CTRL + F1 to instantly quit the program.


EDIT: Currently desperately trying to find out why FFAddExcludedArea does not work for shit.
04/08/2017 08:23 ahmedwork#49
@[Only registered and activated users can see links. Click Here To Register...] can you implement a function that changes the pe file header so we can have unique executable file each time we press a button
procedure.
1- create a copy of the executable (using file move function)
2- rename it to some random name
3- change the pe file header
4-close the current executable
5-delete it

i've done this using c# but can't do the same with autoit
04/08/2017 10:23 laservic#50
Quote:
Originally Posted by CrayonCode View Post
Added feeding workers with v0.13. I'll look into drying the fish.
EDIT: You can't dry when you are standing in water right?
EDIT2: You can dry Washed-Up Laundry...



Make sure you use Fullscreen Windowed mode and try the new version.



@[Only registered and activated users can see links. Click Here To Register...]: already added in v0.13
Out of 10 times not one fish was not caught all the time badly! Channel Olivia 1 Altinova.
04/08/2017 13:05 susu11#51
Quote:
Originally Posted by laservic View Post
Out of 10 times not one fish was not caught all the time badly! Channel Olivia 1 Altinova.
How is youre fps ?

I only get bad minigame if i go to energy save mode in windows and my fps drops too bad . when i reduce ingame settings to push the fps over 20 all is good again.
04/08/2017 18:08 CrayonCode#52
Quote:
Originally Posted by ahmedwork View Post
@[Only registered and activated users can see links. Click Here To Register...] can you implement a function that changes the pe file header so we can have unique executable file each time we press a button
procedure.
1- create a copy of the executable (using file move function)
2- rename it to some random name
3- change the pe file header
4-close the current executable
5-delete it

i've done this using c# but can't do the same with autoit
I honestly have no idea how to do it. You want me to run the CrayonCode.au3 then create a copy, rename it randomly and run it again and that each time a button is pressed? Or only when a specific button is pressed?
Or only when you compile it to exe?

If you could show me the C# code I might get a better understanding.
04/08/2017 18:45 ahmedwork#53
Quote:
Originally Posted by CrayonCode View Post
I honestly have no idea how to do it. You want me to run the CrayonCode.au3 then create a copy, rename it randomly and run it again and that each time a button is pressed? Or only when a specific button is pressed?
Or only when you compile it to exe?

If you could show me the C# code I might get a better understanding.
yes I'm talking about the compiled version and anyway it's useless for now since we are sharing an autoit script
Code:
class FileUtils
    {
        #region VARIABLES
        private const int OFFSET_CHECKSUM = 0x12;
        #endregion
 
        #region METHODS
        public static ushort GetCheckSum(string fileName)
        {
            if (!File.Exists(fileName))
                throw new FileNotFoundException("Invalid fileName");
            return GetCheckSum(File.ReadAllBytes(fileName));
        }
        public static ushort GetCheckSum(byte[] fileData)
        {
            if (fileData.Length < OFFSET_CHECKSUM + 1)
                throw new ArgumentException("Invalid fileData");
            return BitConverter.ToUInt16(fileData, OFFSET_CHECKSUM);
        }
        public static void WriteCheckSum(string sourceFile, string destFile, ushort checkSum)
        {
            if (!File.Exists(sourceFile))
                throw new FileNotFoundException("Invalid fileName");
            WriteCheckSum(File.ReadAllBytes(sourceFile), destFile, checkSum);
        }
        public static void WriteCheckSum(byte[] data, string destFile, ushort checkSum)
        {
            byte[] checkSumData = BitConverter.GetBytes(checkSum);
            checkSumData.CopyTo(data, OFFSET_CHECKSUM);
            File.WriteAllBytes(destFile, data);
        }
		#endregion
	}
04/08/2017 19:37 721560329#54
it wont be compatible with VM right ? even tho i gave mine 6 cores and 8gb of ram it still mess up the minigame.. most likely not the script fault since on VM the game run on 18 FPS max.. is there any way you can do a different solving method (maybe like a timer that we can adjust so it hit the minigame right ?) for VM users ?
04/08/2017 19:59 ahmedwork#55
Quote:
Originally Posted by 721560329 View Post
it wont be compatible with VM right ? even tho i gave mine 6 cores and 8gb of ram it still mess up the minigame.. most likely not the script fault since on VM the game run on 18 FPS max.. is there any way you can do a different solving method (maybe like a timer that we can adjust so it hit the minigame right ?) for VM users ?
running fine here 1 processor 2 cores 5.5 gb ram windows 7 x64 20-35 fps in ocean, has been running for about 24 hurs without any problem
04/08/2017 20:01 721560329#56
Quote:
Originally Posted by ahmedwork View Post
running fine here 1 processor 2 cores 5.5 gb ram windows 7 x64 20-30 fps in ocean
vmware or virtual box ?
04/08/2017 20:03 ahmedwork#57
Quote:
Originally Posted by 721560329 View Post
vmware or virtual box ?
vmware u can't use virtual box because it doesn't support vga more than 64 bit as i can remember
04/08/2017 20:07 721560329#58
Quote:
Originally Posted by ahmedwork View Post
vmware u can't use virtual box because it doesn't support vga more than 64 bit as i can remember
then it might be windows 10 problem.. will try on win7.. x64 or x32 ?
04/08/2017 20:09 ahmedwork#59
Quote:
Originally Posted by 721560329 View Post
then it might be windows 10 problem.. will try on win7.. x64 or x32 ?
windows 7 x64 and windows 10 only problem is sppsvc process which will use almost all ur cpu from time to time but didn't face any problem with windows 10 b4
04/08/2017 20:20 721560329#60
Quote:
Originally Posted by ahmedwork View Post
windows 7 x64 and windows 10 only problem is sppsvc process which will use almost all ur cpu from time to time but didn't face any problem with windows 10 b4
nah my CPU as around 20% all the time i guess my problem is im not at the sea... alot of NPCs is around