When my bot is enabled. I've got engine.exe, game freeze (like disconnect) or getting expelled. For example 20 min after botting or 2 hours. There is no rules when and how.
I am using 3 threads, one for command, one for bot and one for auto heal.
I dont have variable declarations inside of loops. For slow downs I use Sleep.
For example Sleep(15) for running or Sleep(700) for attacking.
I have also tried with 1 thread for Command() function and bot runned from Command () thread. I've also replaced all Sleeps with GetTickCount and IF instruction, but still got same problem.
I think that problem is with SendPacket() function, it crashes the game.
What you think about that and how your code looks?
Well, without a look on your complete source, noone can help you I guess.
Upload it somewhere and send me the link, I will take a closer look. Oh btw, sending snippets wont help at all, since I got no intsource atm to test it :P
I dont want to show my full sources sorry.
I asked for a solution and how your bot code is organized.
How many threads your dll use.
... and anyone had same problems?
Thats my send function, that propably ***** everyting
I've also replaced all Sleeps with GetTickCount and IF instruction
how exactly? if youre spin waiting on GetTickCount then its probably worse than Sleep()ing ^^
I had random disconnects (though much shorter than an hour) when i tried hooking ws2_32's send/recv, perhaps it has to do with a hook you have somewhere?
None of my stuff actually hooks functions, only calls some and I havent run into any trouble so sry im not sure what more to suggest atm
DWORD dwTimer;
int nTimeToWait = 15; // ms
while (true)
{
if (GetTickCount()-dwTimer>nTimeToWait)
{
dwTimer = GetTickCount();
// code to execute
}
else
{
// what to do with waste CPU resource? ;D
// maybe render something? xD
}
}
Yeah its worse then sleep if used in different thread than main(), due to CPU waste.
If code need to be executed in DLLMain() then its better to use GetTickCount() otherwise you may slow down game with Sleep().
BTW.
1. How are you getting the char* buf2 with packets?
2. Hooking send() is no sense for now as packets are encrypted. Do you also figured out buf2 before crypted?
@bluepoison630 1. As far you did not help me. Why you say we? You are not able to help me. Why should I release bot then for you? 2. I cant release something that dont work.
Bots that dont work are already released, just search. 3. Go away from this topic if you have nothing to say and stop spamming every thread. ------------------------
I dont want to release my bot now if ever.
... but I am posting here the snippet code for function that crash the game too.
Its moving character from first point to second. If character reach the 2nd point it goes back to 1st point and forever like that . It also crash my game same as bot. Check code:
PHP Code:
int start_x = 266440;
int start_y = 244581;
int safex = 268494;
int safey = 244180;
int nDifX;
int nDifY;
float nDistance;
float nRange;
int x,y;
// copy this inside your command function
if (strcmp ( command , "mtest" ) == 0)
{
printf("Move test running.\n");
while (true)
{
Teleport(start_x,start_y);
printf("Moving to SPOT coords\n");
Teleport(safex,safey);
printf("Moving to SAFE coords\n");
Sleep(1);
}
}
look kid... i help people with what i understand... and thats mostly cooldown, ug and such... not everyone has a year off to study c++ and all that stuff... and even if u know c++ and all that stuff people like meak wont release working source for int so it is a waste of my time. this thread is dead because everyone leaching. just like 99% of the germans u too are a pure leacher on this forum. even if u release a bot that only works for 20 minutes - 2 hours its a hell of alot better then actually training...but its your choice to leach or not.
ROFL u need 1-2 hours to make a bot noob, learn to leech perfect!
and all can make video from bot that works more then 2 hours.. i help people that will learn something not leech but wayne and yes we all leech here and now?
ok ok where i download a bot XD? LOOOOOOOL
EDIT: and jeah what u sayed i help too the ppl who want learn to make a bot...katze(now he have a bot without expell),xorg(helping now)..
@bluepoison630 1. As far you did not help me. Why you say we? You are not able to help me. Why should I release bot then for you? 2. I cant release something that dont work.
Bots that dont work are already released, just search. 3. Go away from this topic if you have nothing to say and stop spamming every thread. ------------------------
I dont want to release my bot now if ever.
... but I am posting here the snippet code for function that crash the game too.
Its moving character from first point to second. If character reach the 2nd point it goes back to 1st point and forever like that . It also crash my game same as bot. Check code:
PHP Code:
int start_x = 266440;
int start_y = 244581;
int safex = 268494;
int safey = 244180;
int nDifX;
int nDifY;
float nDistance;
float nRange;
int x,y;
// copy this inside your command function
if (strcmp ( command , "mtest" ) == 0)
{
printf("Move test running.\n");
while (true)
{
Teleport(start_x,start_y);
printf("Moving to SPOT coords\n");
Teleport(safex,safey);
printf("Moving to SAFE coords\n");
Sleep(1);
}
}
Well, from reading your code, I guess it crashes as soon as you reach the spot, right? ;D Remove the return 1; and try again :>
No it crashes where it wants. Sometimes working for a long time, sometimes not.
Return 1 has nothing to it. Its only returned parameter as function is Int. I was using this long time ago to check whether character really reached the place.
Deleting return 1 and changing function to void() does not help. .
Quote:
Originally Posted by bluepoison
not everyone has a year off to study c++ and all that stuff... and even if u know c++
I've started month ago, maybe less and I've got bot that crashes. You dont need full year.
You can learn C++ while doing a bot. You also need to learn API.
I've tried even with sending only attack packet, or skill packet, or 10 move packets x+ then 10 x- move packets.
It crashes after some short or long time. Its not stable.
exception.txt
Quote:
OS : Major 5, Minor 1, Name Windows XP Dodatek Service Pack 3
HAL (pure hw vp): NVIDIA GeForce 7600 GS
(1280by878), X8R8G8B8 (D16)
ACP = 1250
[db0 2009/09/10 18:01:01]: ======================= first excpetion
start at 09/09/10 17:47:48
D:\Gry\KalOnlineEng2\engine.exe, run by Marik.
2 processor(s), type 586.
2047 MBytes physical memory.
an Access Violation in module engine.exe at 001b:004e7e81.
Write to location 00000000 caused an access violation.
You're expelled EagleNT 08/10/2013 - Kal Online - 5 Replies After the last server update I could not start KalOnline because of anti hacking problem. :(
I had problems with getting expelled in the past and changed the permissions on EagleNT in my registry "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Services\EagleNT" so Everyone got Full Control Deny to EagleNT.
With this setting HackShield could not detect that i run more clients at once.
After the New server update HackShield detected the changed permissions and I had to reset the permisions to...
Botting error!! 01/17/2010 - Atlantica Online - 0 Replies hey guys,
I believe i set up everything correctly
but when i start bot, it always tells me "Line -1: Error: Variable used without being declared."
What happened?
I get C/L or Expelled 01/15/2010 - Kal Online - 6 Replies When i open 2 Kal clients from same pc in 5-10min i get C/L or Expeled from afk one. I tryed with 2 Users Windows and get the same anyone know some settings to dont get it? My pc have 2gb ram processor 2,6ghz video 512
Thx
You're expelled :o brauche mal hilfe^^ 08/29/2009 - Kal Online - 9 Replies nein es geht hier nicht um bots :D
habe mir letztens windows 7 raufgetan, und egal ob mit oder ohne bot, werde ich nach 5 minuten oder so expelled. auch wenn ich einfach nur iwo rumstehe.
Dachte das liegt vllt an der Firewall von win7... hab sie aber ausgemacht :(
und das merkwürdige kommt jetzt:
wenn ich das game minimiere, kriege ich kein expell... erst sobald ich wieder maximiere und warte kriege ich dann ein expell^^
vllt weiß jemand was von euch und will mir helfen ;D
mfg...
You´re expelled 11/06/2007 - Kal Online - 6 Replies Hi alle zusammen,
Ich hab seit neustem nen Problem auf nem PS. Und zwar bekomme ich nachdem ich die Config gändert habe (z,b für cooldown etc) gleich nach einloggen die Meldung You´re expelled. Hat vielleicht jemand Ahnung wie man das beheben kann?
Bitte keine Aussagen wie benutz Revo... Ich kam bis jetzt mit dem Cofig change immer gut klar und wollte dies auch beibehalten :)
Danke und Grüße ans Forum