Rappelz FarmBot Remeke

10/05/2010 15:34 n1k1sback#106
Is it possible to make a special button ONLY for color check?

you can cheat around that problem that way, if it works^^

otherwise you might set 1 one as start button for color check, if "color check" is activated. It could work if autoit doesn't give you a kind of runtime error, if you use the same start button for 2 things. But the condiitons are different

I only did some low level java coding some years ago, but I could imagine, that it works like that
10/05/2010 16:06 spreejunky#107
so hab jetzt auch alles installiert und eingestellt trotzdem geht es nicht richtig, wenn ich das fenster verlassen will dann flippt die maus zwar aus und geht zurück ins spielfenster, doch da tut sich nix.

ja ich habe win 7 x64
ich habe auf epic 5 einstellungen zurückgestellt, und habe auch die {Fx} tasten richtig eingestellt, wenn ich die per hand bediene funzt auch alles.

hab auflösung 1024x768 windowmode an, das script auch im x64 compiled und auch als admin ausgeführt.

kann da jemand helfen oder ne idee äußern woran es liegen mag, danke
10/05/2010 18:53 sliwja#108
Quote:
Originally Posted by n1k1sback View Post
Is it possible to make a special button ONLY for color check?

you can cheat around that problem that way, if it works^^

otherwise you might set 1 one as start button for color check, if "color check" is activated. It could work if autoit doesn't give you a kind of runtime error, if you use the same start button for 2 things. But the condiitons are different
ehh that not good idea, i cant run 2 ways code runing by presing 2 butons. Think it must start 1 main way which start other way (second line function) and go far main function. at end of main line function it must turn off second line way, otherways u couldnt turn off bot. But im not a programer and can mistake.

i have problem when i start bot it dont see colors. think it might have something with rappelz windows active in multithreat
10/05/2010 20:34 Mr Guitou#109
I think it is a little more hard than you thought.

It made a looooong time since I learn to develop multithreaded apps, but my teachers always insist on the fact that when you use a global var or a general function, you MUST lock them for the full use of this var and function.
We'd used to add "semaphore" (don't know english translation, it's a french word, don't know if english is near or not) for "lock" the var or the function for the time we need to be sure nothing else use it in other thread.

So your problem should be because, when you read colors, other side of your program write something in them. So you get partial data, or in worst case wrong data...
Same thing when using functions... If a same function is called twice for two different event, it should make lots of bug.

One of my teacher used comparison with trains, when rail only permit to have only one to go on. If an other train have to pass the way, some flags are up to indicate if it can pass or not... If it can't pass, it wait until way is free.
Same way with var and function. If way is free, then func and var are used as needed by your thread. If not, thread wait until other have finish their job
10/05/2010 22:52 n1k1sback#110
Quote:
so hab jetzt auch alles installiert und eingestellt trotzdem geht es nicht richtig, wenn ich das fenster verlassen will dann flippt die maus zwar aus und geht zurück ins spielfenster, doch da tut sich nix.

Dann verlass das rappelz fenster nicht oO ganz einfach

btw. denk dran mit rappelz im vordergrund den bot zu starten.
10/05/2010 23:06 sliwja#111
Mr Guitou (or someone else) can u look on it think it should work
start multithread:
line 1598 AdlibRegister ("readcolor") >> go to readcolor (one thread)
line 1599 AdlibRegister ("infostats") >> go to line 2474 (second thread)

"infostats" is line 2474 to line 2642

line 1626 to 1643 >> geting info from "infostats"

and ending threads
line 1675 AdlibUnRegister("readcolor")
line 1686 AdlibUnRegister("infostats")

sory for pl gui

This wersion is not for farm. dont use it for farm
10/06/2010 07:42 spreejunky#112
Quote:
Originally Posted by n1k1sback View Post
Dann verlass das rappelz fenster nicht oO ganz einfach

btw. denk dran mit rappelz im vordergrund den bot zu starten.
ich verlass das fenster ja nur weil sich im spiel nichts regt und ich wissen will ob das programm überhaupt an ist,
und ja ich habe rappelz im vordergrund und starte via tastendruck den bot, doch wie gesagt im game tut sich nix, kein klicken der mobs kein chippen kein angreifen, hab auch mal alle skills deaktiviert und nur chippen und angriff drin gelassen, wenn ich die eigestellten tasten im spiel betätige funzt es aber das progi macht es nicht, ne idee ?


I leave the window so only because the game suggests anything and I want to know whether the program is ever on,
and yes I have rappelz in the foreground and run via keystroke offered, but as I said the game does is nothing, no clicking of the mobs no chipping no attack, have sometimes all skills disabled and only chipping and attacking inside left, when I set actuated key in the game it works but it does not decode it, an idea?
10/06/2010 11:17 n1k1sback#113
hast du dir dem dem bot auch ein-setting profil erstellt und es richtig geladen?

der bot funzt nur nachdem die einstellungen in einem bereits erstellten profil gespeichert wuren, das heißt, wenn du alles nur einstellst, ohne zu speichern, wird es nicht gehen
10/06/2010 11:39 spreejunky#114
Quote:
Originally Posted by n1k1sback View Post
hast du dir dem dem bot auch ein-setting profil erstellt und es richtig geladen?

der bot funzt nur nachdem die einstellungen in einem bereits erstellten profil gespeichert wuren, das heißt, wenn du alles nur einstellst, ohne zu speichern, wird es nicht gehen
was meinst du mit richtig laden?

ja habe ich, ich hab das alte grade ebend sogar nochmal gelöscht und ein neues erstellt, und es gespeichert und geladen.
kann es sein das es an den Colors scheitert??

kann ich dir irgendwas hochladen oder schicken damit du es dir ansehen kannst ? (screens oder die die setting datei)
10/06/2010 12:26 n1k1sback#115
entpack den bot einfach mal neu und nimm die standart color einstellungen, kann sein das es daran liegt.

Bei mir hat der color check auch erst bugs ausgelöst.
10/06/2010 12:40 spreejunky#116
Quote:
Originally Posted by n1k1sback View Post
entpack den bot einfach mal neu und nimm die standart color einstellungen, kann sein das es daran liegt.

Bei mir hat der color check auch erst bugs ausgelöst.
ich hab ja nichts an den colrs gemacht sind aj noch die standart werte, der colorcheck will owieso nicht gehen der weirft mir nur 00000 und so raus, und was ich gelesen habe würde das auch nur bei einer petclasse funktionieren.

muss ich das script compilen oder ist es auch ok wenn ich es so starte ?
sonst irgendetwas eim compilen zu beachten ?
10/06/2010 13:24 n1k1sback#117
rechtsklick aufs script "compile script" ....unter keinen umstand "compile script (x86)" denn dann würde es nicht gehen.

Nach "compile script" die erstellte exe datei als admin starten
10/06/2010 13:30 Mr Guitou#118
Quote:
Originally Posted by sliwja View Post
Mr Guitou (or someone else) can u look on it think it should work
start multithread:
line 1598 AdlibRegister ("readcolor") >> go to readcolor (one thread)
line 1599 AdlibRegister ("infostats") >> go to line 2474 (second thread)

"infostats" is line 2474 to line 2642

line 1626 to 1643 >> geting info from "infostats"

and ending threads
line 1675 AdlibUnRegister("readcolor")
line 1686 AdlibUnRegister("infostats")

sory for pl gui
So first, take in mind that my knowledge is really really short. before make my little analyze, I want you to understand few things:

-> I don't really know how developing with auto-it (except GUI and file-use, it's the only things I think I can do without need to look at help every line ^^)
-> I study C/C++ when I was younger, but it made 7 years that I don't practice it at all so now I just have some theoric knowledge remind.
-> As I'm french and only study english at school and never have any need to speak technical english with other people, I should make some sentences that just have any sense. So don't hesitate to ask if you don't understand something I said. Multithread is enough hard to use for take time to really understand everything needed. I know I have poor english ^^ So help me to improve it ^^
-> I'm not a teacher, and i'm not a proffessional developer. I have my own way to wrote code, my own way to see things. It should be really strange if we have exactly the same, and mine should not be better than yours, so if you disagree with me, don't hesitate to explain your way ^^

If you understand all that, then we should start learning something together ^^
First of all, little analisis you required:

-> What I saw in AutoIt help about function you use, is exactly what I ask you to take care of, so you made what I said without know it :D
In fact, when functions you declare in AdlibRegister is used, other thread, all the other (GUI, farm func, other AdlibRegister function, etc...) are just paused while the function haven't reach its end.
-> It still multithread, even if said as I did further it don't really look like. It is multithread because AdlibRegister function call define function every XXX ms (it's the second parameter of AdlibRegister ;) )
-> AdlibRegister may be usefull for fast value treatment. Not for calling 4/5/6 other functions. So according to this, what you did should not work as you wish.

And then, few advices, don't think it's the best way, it's just the way I should have made it if I here you:

-> You should write and call full new function for readcolor, dedicated for detect pixel and store values in a dedicated thread, and never use this function anywhere else. In the same way, take care at using a real global array variable, not only something allocated in GUI loop, for store data. It should be more clear to debug, and really more easy to use...
-> Same thing for Inforstat. Write a full new one, dedicated to make operating stuff on stats values, and nothing else. And never use this ful new function somewhere else. Only after AdlibRegister it ;)
10/06/2010 13:41 spreejunky#119
Quote:
Originally Posted by n1k1sback View Post
rechtsklick aufs script "compile script" ....unter keinen umstand "compile script (x86)" denn dann würde es nicht gehen.

Nach "compile script" die erstellte exe datei als admin starten
Kuhl danke das Funktioniert wunderbar und geht wie von geisterhand :D
er macht alles was er soll!
was die pots oder das essen angeht kann ich noch nichts sagen. aber...es geht
"it works!!!"
10/06/2010 18:08 Hennniboy#120
ich glaub ich hab die falschen einstellungen..kann vllt jemand mal nen bild von den Einstellungen seines bots zeigen

bekommt auhc nen thänks:)