FarmingMachine

By sowrov Last update Feb 16, 2009 — Installed 152,765 times.

Problems And Issues

in
Subscribe to Problems And Issues 294 posts, 87 voices



m4rtini Scriptwright

yes that was my suggestion. that would be the perfect way to do it. although as i said, for me, how it works now is fine. And that's something I'm gonna leave for sowrov to do if he thinks it would be a god improvement. tho bugfixes should be #1 priority.

@ Kreon
I actually didn't know that you could use the keybord before you said that, lol ^^
it's possible to add a onkeydown event handler that would respond on the arrow keys. I'll look into it =)

 
w1sefool User

Yeh, the code martini gave earlier should be added so that it wont stop when connection is lost...
and also the waiting for enough troops like in the older versions =)

 
royan User

@m4rtini

yes i understand you, but for example i have a first target with 50 axeman and a second target with 30 paladins, i have to wait untill there are enought axeman and the paladins are waiting in the city while they could be ataking to the second target.

It could be fixed flagging the targets and when every target is ataked then clear all flags and begin the list again.

Another fix could be a check box to enable "go to next target if there isn't enought troops"

 
w1sefool User

I don't think this is a good idea... because this could mean that one farm could be farmed and 5 minutes later; due to the randomness; it will be farmed again... but this farm will be empty... it's better to wait untill enough troops have arrived and just follow the list so you give different farms the time to fill up again.

 
wewez User

i wish it could be done like what martini suggested.

 
sowrov Script's Author

sorry guys because I am not replying your dreamy option requests/ideas! It is just because I will add any option to this script if and only if I feel that option is necessary for me :p (you guys are not paying me, you know... hehe)
My way of using this script is just running the script for few minutes and my almost all troops are gone for raiding and I am happy because now I don't have to do all those boring job again and again (most probably It is saving about 2hr for me):p
Anyways You guys keep pushing ideas and I will try to add them if I find that necessary :)

And about Connection Error: at this moment I use an addon called "TryAgain". It fix that problem of page not found and constantly try to load the page after some interval, and if it become successful then FM continue its work ;)

 
wewez User

sry if i miss any topic but i wanted to know is it other version before the latest 1, the troop sending wont skip 1 farm until it got the troops needed? can state what version and where can i get it? sry again if someone already mentioned it before.

 
m4rtini Scriptwright

as a fellow scriptwriter i totally understand you! don't do anything that you don't feel will benefit your own use of the script. only exception i can see is if the code is already written and tested by someone else and don't interfere with or prohibit the original design.
I'm forever grateful for this script!

 
wewez User

well~~ nvm..
i already changed to v3.5.0 ;P
whatever is, the main point is that this script is really GOOD! LOV IT ^^

 
BenPaolo User

for those who have troubles with their farming machine stopping, just use this

// ==UserScript==
// @name AutoReload
// @namespace http://userscripts.org/users/78243
// @include http://userscripts.org/users/78243
// ==/UserScript==

window.setTimeout('window.location="http://speed.travian.com/build.php?id=39"; ',60000);

make a new script then paste that, include all pages under your server (Eg. http://speed.travian.com/*) 1 script per server. just edit the 'window.location="http://speed.travian.com/build.php?id=39" into your server. 60000 is 60 seconds.

 
Bugflicker User

What's the point with the farms being yellow like your own village?

 
wewez User

@Bugflicker
it means that village already in your FM list

 
w1sefool User

@BenPaolo doesn't work =X

@sowrov i tried "TryAgain" but then it gets stuck when it wants to reload... I get (dutch) "Opnieuw verzenden" or in english "Send Again" in a bar...

 
Vister User

Heya guys.
AS i can see, script is wonderful. But i got a little problem.
I added 1 village to my farming machine list. I Selected 10 horse riders witch such a wands in icon of them [ sry, im Polish ]. I went to ' Regruop Place ' or whatever its called and turned the farming machine on.
10 units have gone to the village, but it tryied to send another 10 units. And it refreshed evry 10-15 sec's telling me, taht I need 10 units and there's 0 avible. What the fuck is going on? x DD.

Polish:

Widze, ze jakis polak sie tu wypowiadał. Może mi pomożesz :-P

Blad -
Brakuje jednostek do grabiezy -
[0]Djskowal98 : Osada: Djskowal(-170,64)
Dostepne: 0 Potrzebne: 10
Nie ma zadnej wolnej wioski! Czekam ~7 sekund

Pojawia sie ten komunikat co każde 7 sekund, od chwili, gdy wcisnalem Start Farming machine ... Tak jak by caly czas chciał wysyłać te 10 Gromów Teutatesa, a wczesniej one były już wysłane...
Co mam zrobić? ;(

______________________

I USE TB ! x DDDDD. [ if that can help to solve my problem ].

 
Noam123 User

Can I make it farm every hour or so? That would be great...

 
BenPaolo User

its working for me :) i dont know about yours. ill try making another one tonight

 
KReoN User

Sowrov, could u add m4rtini's fix for lost connection in next update plz ? I have unstable internet connection and this problem is actual for me, like many other users I suppose. I know, we don't pay u anything, but hope u will add it. Thanx

 
w1sefool User

I'm still having this problem: jar:file:///C:/Program Files (x86)/Mozilla Firefox/chrome/browser.jar!/content/browser/a2b.php NOT FOUND, very strange, can someone help me =) thanks!

 
Vister User

Hello ! ! ! .

Can some1 help me?! ; <

 
m4rtini Scriptwright

i would help you if you said what was wrong. what you described is the normal function of the script...

 
w1sefool User

I sometimes get this error, the script stops and then firefox sais that the file at that location couldn't be found

 
m4rtini Scriptwright

@cever
if you read through the whole discussion you will se that the same thing is mentioned several places before. and the source of the problem is found, but not solved.
the problem acours when the Internet line disconnects and the script tries to redirect to another page.

 
uuuuuu1 User

First and foremost I would like to say that this is one of the best-case scenario
Quote of the (coly User)
Why Farming Machine does not stop after the attack
Example
I choose to choose Farm and 500 troops attacked. Have a 1500 soldier
Machine sends 500 troops to the farm and then send 500 soldiers back to the Farm and then send the same 500, Total 1500 to the same Farm
Why does not stop after the first attack,
Unfortunately do not speak English. Translator Google

 
m4rtini Scriptwright

this script is only useful if you have many farms. the script will loop through every farm on the list. so if you only have one farm it will attack that one all the time. dono how to explain that tho since you don't speak English :P

 
sowrov Script's Author

uuuu1: try to add some more farm! if you don't set EndIndex then FM will always try to send troops to your farms, it don't remember how many time it send attack to a specific farm. So as soon as it gets enough troops it will send an attack. So only solution would be Try to add some more farms :)

And I will try to update FM within next month. I think I will add time delay for each farm in the next update. At this moment I am little busy but I will try to manage some time to go through the source again.

@m4rtini: I didn't try to understand what your reload function is doing, so it will be convenient for me if you rewrite the code in the following way:

function reload(urlOfNextPage){
     while(try until success){ //of course it will not be a blind loop! you know why ;)
          load : urlOfNextPage;
     }
}

though that TryAgain addon is doing excellent job for me! After installing it(you have to enable it) I never got that error message :)