Travian Task Queue

By Risi Last update Oct 6, 2008 — Installed 575,478 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 512 posts, 166 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Arandia Scriptwright

Great script - very well written, thanks.

I just had a small feature suggestion (or rather, an un-feature). I dual-account with a friend, and I've run into a problem where I leave this running all night, and when he gets on in the morning he can't change the village he's on because this script automatically resets it to where ever I left it (very frustrating for him! :P). Anyways, I figured the best way to solve this was to have another setting allowing you to disable the switchActiveVillage() function, if desired. I hacked this together, if you're interested.

var sCurrentServer = "";    // Set this to the server's url to override automatic server detection
                            // (i.e. s1.travian.net)
                            // Dont set it if you're playing on multiple servers simultaneously!
var bReturnToVillage = true; // Determines whether the script will return to the original village after executing a command
/**********************
**** End of Settings **** 
***********************/
function switchActiveVillage(did) {
                _log(2, (bReturnToVillage ? "S" : "Not s") + "witching your village back to " +did);
	if(!isInt(did) || !bReturnToVillage) {return;	}
	get("dorf1.php?newdid="+did, null, null);
}

 
jcsky User

It's really a great script. I like it. ^_^
I use tw-language.
I tried attack schedule and I found there was no option to select detecting resource or defense for spies.
And the default option seemed as detecting defense.
Can it be resolved?
3Q!!

 
Len Harvey User

Hey

Great script, using now with no problems, makes me a 24 hour Travian user which is good, putting me ahead among my neighbors, however I have a request...

Is there anyway you could have the script auto calculate when stuff can be built (like Travian helper can based on your resource income) and then have the task queue use that info to input a time ofset by a minute (to compensate for lag or anything) then build? As for the hardest part for me is calculating when i can add stuff to be built, like a 24hour queue to upgrade resource fields and stuff like that.

I did use it last night which was good to keep my farms going all night. :)

Thanks again.

Len

 
BumPoo User

I have been using this script for a few weeks and it is awesome. But it hasn't worked for me for over a week. It just adds things to the queue and when they are ready, the disappear, but nothing gets built.

I wonder if it's a problem on my end or Travain changed something to prevent this script from working? I kinda hate playing the game without this script.

It doesn't work even with no other scripts running in Grease Monkey. I have tried it on multiple .com servers. Tried other variations of this script too, don't work.

Anyone else have problems? Anyone else can tell me if theirs still works? Anyone know what I might do to fix it?

 
Arias Scriptwright

!!! SWEDISH TRANSLATION BUGFIX !!!

case "se": // by Arias
aLangBuildings = ["", "Skogshuggare", "Lergrop", "Järngruva", "Vetefält", "Sågverk", "Murbruk", "Järngjuteri", "Vetekvarn", "Bageri", "Magasin", "Silo", "Smedja", "Vapenkammare", "Tornerplats", "Huvudbyggnad", "Samlingsplats", "Marknadsplats", "Ambassad", "Baracker", "Stall", "Verkstad", "Akademi", "Grotta", "Stadshus", "Residens", "Palats", "Skattkammare", "Handelskontor", "Stor barack", "Stot stall", "Stadsmur", "Jordvall", "Palissad", "Stenhuggare", "Bryggeri", "Fälla", "Hjältens egendom", "Stort magasin", "Stor silo", "Världsunder"];
aLangTasks = ["Konstruera", "Uppgradera", "Attack", "Förbättra", "Träna"];
aLangStrings = ["Konstruera senare", "Uppgradera senare", "Attackera senare", "Förbättra senare", "Schemalägg uppgiften tills senare.", "Byggnationen påbörjad ", " utfördes med okänt resultat.", "nivå", " kan inte byggas.", " kan inte uppgraderas.", "Uppgiften är schemalagd.", "Nuvarande produktion:", "Det går inte att schemalägga denna uppgift just nu.", "Schemaläggningen är inte tillgänglig!", "Schemalägg uppgift", "Ta bort", "Skicka senare", "Attacken kunde inte bli schemalagd då inga trupper valdes.", "Dina trupper skickades till", "Dina trupper kunde inte skickas till", "Support", "Attack", "Plundring", "Katapulterna ska sikta pa", "random", "vid", "eller efter", "sekunder", "minuter", "timmar", "dagar", "Spionera på trupper och resurser", "Spionera på trupper och försvar", "borta", "Attacken misslyckades, var vänlig och välj en destination.", "ingen destination.", "Sortera efter:", "typ ", "tid ", "mal ", "alternativ ", "by ", "tidigare"];
aLangTroops[0] = ["Legionär", "Praetorian", "Imperiesoldat", "Sparare", "Imperieriddare", "Ceasarriddare", "Murbräcka", "Eld Katapult", "Senator", "Nybyggare", "Hjälte"]; //Romans
aLangTroops[1] = ["Klubbman", "Spjutman", "Yxman", "Scout", "Paladin", "Germansk Knekt", "Murbräcka", "Katapult", "Stamledare", "Nybyggare", "Hjälte"]; //Teutons
aLangTroops[2] = ["Falanx", "Svärdskämpe", "Sparare", "Theutates Blixt", "Druidryttare", "Haeduan", "Murbräcka", "Krigskatapult", "Hövding", "Nybyggare", "Hjälte"]; //Gauls
break;

 
andreedo User

hi all,
this scripts no work on my server.
i cant see where i can programate a new building.
pls help

 
stewen User

MAke troops later doesn't i see the butten for.

 
stonecold User

the send troops later doesn't work as stated by some users before, the Task Schedule window appears when you select the troops and then disappears, but nothing happens. Now something very weird I found out. I am playing 2 servers, s1 and s4. I'm playing teutons at s1, the send later troops works fine there. I am playing romans at s4, but the send later troops option doesn't work there?! It is the same country and the same settings?! Where is the catch?

 
ScriptUser User

Welcome back Risi!

 
sowrov Scriptwright

In the com server Spelling of Armory is 'Armoury' not 'Armory'. But in the script you use Armory, so it does not show the update link there!

 
Mabo User

Hi! This script is great!

But I can't attack every 3 sec. Why ? o.O

Cheers

 
Magnito User

i have problem with the time, it is not sync with the server time, i try it on some other server it work, it dont work in server 1 i dont know why any idea

 
Magnito User

@Voltron , how i can edit it, can u please explain for me how to get the file to be edited ?

 
Alejololz User

I love you Voltron, it works! You made me so happy.

 
Voltron User

@Alejololz

Just substitute the case net for this one. It works for me perfectly.

case "net":  //Spanish - by Carlos R (fixed by Mr.Kurt & Voltron).
            aLangBuildings = ["", "Leñador", "Barrera", "Mina", "Granja", "Serrería", "Ladrillar", "Fundición", "Molino", "Panadería",
 "Almacén", "Granero", "Herrería", "Armería", "Plaza de Torneos", "Edif. principal", "Plaza reuniones", "Mercado", "Embajada",
 "Cuartel", "Establo", "Taller", "Academia", "Escondite", "Ayuntamiento", "Residencia", "Palacio", "Tesoro", "Oficina de Comercio",
 "Cuartel Grande", "Establo Grande", "Muralla", "Terraplén", "Empalizada", "Cantero", "Cervecería", "Trampero", "Hogar del héroe",
 "Almacén Grande", "Granero Grande", "Maravilla"];
            aLangTasks = ["Construir", "Mejorar", "Atacar", "Investigar", "Entrenar"];
            aLangStrings = ["Construir más tarde", "Mejorar más tarde", "Atacar más tarde",	"Investigar más tarde",
 "Programar esta tarea para más tarde", "Hemos empezado a construir el edificio ", " fue intentado con resultado desconocido.",
 "Grado", " no puede ser construido.", " no puede ser mejorado.", "La tarea ha quedado programada.", "Producción actual:", 
"No se puede programar esa tarea ahora.", "ˇLa programación de tareas no está disponible!", "Tareas programadas",
 "Eliminar", "Enviar más tarde", "No se selecionaron tropas.", "Tus tropas se enviaron a", "Tus tropas NO han podido ser enviadas",
 "Refuerzo", "Atacar", "Saquear", "Catapultas atacarán...", "aleatorio", "a", "o después", "segundos", "minutos", "horas", "días",
 "Espiar recursos y tropas ", "Espiar defensas y tropas", "fuera(away)", "El ataque no se ha programado porque no se fijo el objetivo.",
 "al cuadrante nş", "Ordenar por:", "tipo ", "hora ", "objetivo ", "opciones ", "aldea ", "Historial de tareas", "Borrar Historial", 
"Se ha empezado a investigar ", " no puede ser investigado.", "Mejorar más tarde", "Espiar", "Entrenar más tarde", "tropas.",
"Entrenar", "Se ha empezado a entrenar ", " no se puede entrenar."];
            aLangTroops[0] = ["Legionario", "Pretoriano", "Imperano", "Equites Legati", "Equites Imperatoris", "Equites Caesaris",
 "Carnero", "Catapulta de Fuego", "Senador", "Colono", "Héroe"];  //Romanos
            aLangTroops[1] = ["Luchador de Porra", "Lancero", "Luchador de Hacha", "Emisario", "Paladín", "Jinete Teutón", "Ariete",
 "Catapulta", "Cabecilla", "Colono", "Héroe"];  //Germanos
            aLangTroops[2] = ["Falange", "Luchador de Espada", "Batidor", "Rayo de Theutates", "Jinete Druida", "Jinete Eduo", "Ariete",
 "Catapulta de Guerra", "Cacique", "Colono", "Héroe"];  //Galos
            break;

 
Alejololz User

I play on s1.net, and the script doesn't work for me perfectly. It can programate a new building, but it can't upgrade existings buildings. Is it a bug or that the script isn't configurated? I'm roman if it is needed.

 
Alejololz User

Hiho, I play on s1.net
The scripts can program to build a building if it hasn't been built. I can't upgrade the existing buildings. Is it a bug? or that the script can't updgrade existing buildings

 
Mijo User

@ Baby_Yoda
Hi!
Use a better text editor, like notepad++! I think Risi is using some kind of Unix (Linux or Mac), which OSes only use a single char to separate lines (CR or LF), that is why in that stupid M$ Notepad the script looks strange.
Mijo

 
Joca Scriptwright

I cant select the hero when he's not around.

When that special function?

The problem is when i send the hero with the troops.
I cant sheddule the new attack with the hero, because it is not avaliale in the rally point.

See this at:

Imagem hospedada por Servimg.com

 
Voltron User

@Baby_Yoda

Wow, it seems like a mess x_x. Maybe if you reinstall the script it will work perhaps? It's weird, because it should look organized when you open it with notepad.

 
xen121 User

Is it a bug when I'm using "Server time" that the time for upgrade later or send later is blank but if I use "Local time" its filled in with current time?

 
Baby_Yoda User

@Voltron
Yes, I wanted to do that, but when I try to change the script, and I open it with notepad, it's very weird :S Other scripts I can read properly, but this one I can't :S
I really don't understand how I could edit this one :S It's very weird :S
This is what I get: http://cmdstud.khlim.be/~jbollansee/pablo/Scrip...

Greets

(btw, *offtopic* I really want to write scripts myself, anyone knows good tutorials ? Or something that could help me ? Thanks)

 
nuno21nt User

@tiagozn

Eu não tenho a certeza absoluta, mas acho que as tarefas têm que ser agendadas com um mínimo de 30 segundos. Tenta com 45 segundos ou assim e depois diz o que aconteceu. Sou português.

@tiagozn

I'm not sure, but I think that tasks must be scheduled to a minimum of 30 seconds. Try with 45 seconds or so and then let us know what happened.

 
tiagozn User

Hi guys. I'm having problems to send troops later. To upgrade resources and buildings is OK!

I schedule to 15 seconds after, the Task Schedule window apeears until there, everything ok.

At the time I scheduled, the "Task Schedule" disapeears and nothing happens. The "Task History" doesn't open and the "Confirmation of The Task" either.

I got this error messages, copied from "Error Console" as Bug Report instructions.

Alert: Error in processing of value of property 'font'. Declaration ignored.
Source-file: http://s3.travian.com.br/a2b.php?z=339081
Line: 0

alert: Error in processing of value of property 'FILTER'. Declaration ignored.
Source-file: http://s3.travian.com.br/unx.css
Line: 488

alert: Error in processing of value of property 'float'. Declaration ignored.
Source-file: http://s3.travian.com.br/dorf1.php
Line: 1

alert: Error in processing of value of property 'float'. Declaration ignored.
Source-file: http://s3.travian.com.br/dorf1.php
Line: 1

alert: Error in processing of value of property 'FILTER'. Declaration ignored.
Source-file: http://s3.travian.com.br/unx.css
Line: 488

alert: Error in processing of value of property 'float'. Declaration ignored.
Source-file: http://s3.travian.com.br/dorf1.php
Line: 1

alert: Error in processing of value of property 'float'. Declaration ignored.
Source-file: http://s3.travian.com.br/dorf1.php
Line: 1

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel