script not working partially.

in
Subscribe to script not working partially. 29 posts, 15 voices



freak86 User
FirefoxWindows

the "Auto ResUpD" works.
but manual scheduler option is missing for schedule building,schedule training of troops,market(auto& custom).the button is simply missing..
the script worked perfectly until around 6 hours ago.i got suddenly logged out and travian page won't open for around 10 mins.when i did log in after 10 mins or so,the buttons were missing..
also,the task i had added previously(imperians training repeat 100 times),its there on the task list and is working..
may be its just something wrong with my pc,but i though its worth mentioning here.
also,auto-demolition just demolishes 1 level and disappears from the task-list.

i tried in s2,s4,s6,s9.travian.com...
cheers

 
shock User
FirefoxWindows

your right suddenly it is not working

 
freak86 User
FirefoxWindows

just discovered...new buildings can be scheduled..
but the above mentioned are absent..

 
Pygmalion User
FirefoxWindows

Same here. Obviously code of the webpage has changed... again.

 
ptr77 User
FirefoxX11

I can confirm that it don't work anymore on com9. It still works on it6

 
John Kilroy User
FirefoxWindows

... and it's because they added an additional around the building level, which breaks the detection.

 
maxisbored User
FirefoxWindows

Same thing for me too on s6.com.

 
John Kilroy User
FirefoxWindows

.. and it's because they added an additional "span" around the building level, which breaks the detection.

 
John Kilroy User
FirefoxWindows

I got it to work again with the following changes:

insert a new function

function stripHTML(){
var re= /<\S[^><]*>/g
return arguments[0].replace(re, "");
}

raplace all "h1in().innerHTML" against stripHTML(h1in().innerHTML)

done.

 
maxisbored User
FirefoxWindows

Hm, for the non-scripters, can you copy and paste what the function should look like? I'm sure i can replace x with y, but i tried to insert the function and it didn't seem to work.

 
Pygmalion User
FirefoxWindows

GREAT! Thanks a lot!

 
freak86 User
FirefoxWindows

thanks John...it works now..
for maxisbored this is what i did,open the script in notepad,
ctrl+f---> "h1in().innerHTML" replaced all search results
with "stripHTML(h1in().innerHTML)"
and after you are done just paste the new function mentioned above at the bottom of the script..
and it works.
cheers john!

 
wenhaur User
FirefoxWindows

Great! It's work again... Thanks.

 
maxisbored User
FirefoxWindows

Booya, it works.

cheers!

 
travianabuser User
FirefoxWindows

Tried three times, and it didnt correct issues for me.

 
swiftcase Scriptwright
FirefoxWindows

good work, John!
11 matches replaced.
thank you

 
polle1 User
FirefoxWindows

Can someone upload a working version of this script...I have tryed to make the modifiktions, but it don't work for me :S

 
khalid562 User
FirefoxWindows

please upload working version :( :(

 
STARCOLD Scriptwright
FirefoxWindows

I upload the modified one at http://userscripts.org/scripts/show/60086
enjoy

 
khalid562 User
FirefoxWindows

thamk you very much
it's work :)

 
Tuga Script's Author
FirefoxWindows

khalid562 wrote:
please upload working version :( :(

The problem is are servers working with the old code yet...
If I change now some servers will not work...
and the situation will be same..

Thanks for your understanding

Download a provisory version:
http://userscripts.org/scripts/show/60086

Thanks STARCOLD

 
John Kilroy User
FirefoxWindows

The problem is are servers working with the old code yet...
If I change now some servers will not work... 

Did you try that? THIS modification should work with old and new servers, as it does not RELY on some changed structure, but rather ramoves any (possible) additional decoration in the string before it is compared.

I worked on some other fixes to re-enable "auto-enhance" and "create new bulding". THAT would possibly break old servers.

 
Tuga Script's Author
FirefoxWindows

John Kilroy wrote:
The problem is are servers working with the old code yet...If I change now some servers will not work... 
Did you try that? THIS modification should work with old and new servers, as it does not RELY on some changed structure, but rather ramoves any (possible) additional decoration in the string before it is compared.
I worked on some other fixes to re-enable "auto-enhance" and "create new bulding". THAT would possibly break old servers.

Yes,I did... I tryed and some server stop working

 
hotbedstanning User
FirefoxWindows

The upgrade button disappeared for me as well on s7.travian.com. I was able to get the button back by using John's suggestion.

 
Tuga Script's Author
FirefoxWindows

hotbedstanning wrote:
The upgrade button disappeared for me as well on s7.travian.com. I was able to get the button back by using John's suggestion.

Sorry, now is working fine

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