Tuesday, February 9th 2010, 10:23pm UTC+1

You are not logged in.

  • Login
  • Register

Sagawa

Colon

Date of registration: Mar 2nd 2006

Posts: 1,057

1

Saturday, January 26th 2008, 12:03am

Avancement des construction

Description :

Ce script vous permet d'ajouter une barre sous votre construction et/ou votre rechecher. Il y a aussi un % d'indiqué.



Installer le script:

Pour Firefox:

Vous n'avez pas de compte commandant : Installer
Vous avez un compte commandant alors : Installer pour batiment et installer pour labo

Pour IE:

Vous avez un compte commandant alors : installer pour labo [Non testé donc sa fonctionne peut être pas même si je fais toutes confiance en THSK.


En cas de problème on fais comme toujours :D
Les recycleurs recrutent pour l'univers 72 [Gemini]. Candidature sur notre Forum.
Top 20 Univers 38

This post has been edited 17 times, last edit by "Sagawa" (Mar 29th 2008, 5:21pm)

  • Go to the top of the page

didoman

Diplomate

Date of registration: Dec 1st 2005

Posts: 843

Gender: male

Location: Entre ici -><- et là -><-

2

Saturday, January 26th 2008, 12:32am

ha c'est dommage je compter l'installé ^^ enfin bon j'attendrai lol

sa a l'air d'etre pas mal.

edit : maintenant que sa marche, c'est super merci

Uni 22 : Retraité

This post has been edited 1 times, last edit by "didoman" (Jan 26th 2008, 10:13am)

  • Go to the top of the page

El greco10

Diplomate

Date of registration: Nov 28th 2006

Posts: 959

Gender: male

Location: Ottignies louvain la neuve [belgique]

3

Saturday, January 26th 2008, 8:08am

excellent ce script!

Au moins je vois mieux l'avancement car les heures et les jours ne m'aidaient pas beaucoup
Uni 14 dirk pitt top 177 => 5.334.243
Uni 21 Dirk pitt top 32 => 9.143.286
Uni 46 Dirk Pitt Top 75 => 5.365.987 - 5 HOF
UNI 56 Dirk pitt Top 57 => 3.742.636
  • Go to the top of the page

Date of registration: Sep 19th 2007

Posts: 833

Gender: male

4

Saturday, January 26th 2008, 9:36am

+ 10 comme dab tres interessant :)
ca fait un style en plus pas degueulasse en plus
bien joué
continu comme ca :)

merci

Ex top 80 uni 50 sans forcer
  • Go to the top of the page

Date of registration: Dec 22nd 2007

Posts: 21

Gender: male

Location: cherbourg

5

Saturday, January 26th 2008, 9:56am

RE: Avancement des construction

Il est super ton scripts ! Mais il y en à un pour les vaiiseaux et la defanse ?
Ce serait cool ! !
Mais si il y en a pas c'est pas grave ! :D
  • Go to the top of the page

Date of registration: May 13th 2007

Posts: 2,213

Gender: male

Location: O_o t'a rien d'autre à faire non ?

6

Saturday, January 26th 2008, 10:21am

Plop,

Bon, ce script m'a l'air très interesdsant, super inutile, mais comme on le sait tous, tout ce qui est inutile nous devient rapidement indispensable :D.

Bon, en attendant, j'ai un chtit probleme : sur mon compte .org (le seul quoi :P ), cela ne fonctionne pas....Et d'après xce que j'ai testé, cela ne vient pas du server .org, mais du fait que j'ai le compte commandant.

Aussi, je voulais savoir si une modulation était possible ;).

Stil waiting...

  • Go to the top of the page

belgaran

Trial Modérateur

Date of registration: Jan 29th 2006

Posts: 1,174

Gender: male

Location: toulouse

7

Saturday, January 26th 2008, 10:31am

c'est normal que sa marche pas avec le compte commandant?

uni 30-----top 11-----Of borg-----off
uni 62-----top 30-----Of borg-----off
  • Go to the top of the page

didoman

Diplomate

Date of registration: Dec 1st 2005

Posts: 843

Gender: male

Location: Entre ici -><- et là -><-

8

Saturday, January 26th 2008, 10:53am

oui pareil, j'ai le meme probleme pour les batiments avec le commandant

Uni 22 : Retraité
  • Go to the top of the page

maxsteel56890

Diplomate

Date of registration: Jan 18th 2006

Posts: 595

Gender: male

Location: Vannes

9

Saturday, January 26th 2008, 11:01am

assez génial comme script!

+1
Max Steel [EpSy.] uni 6
Max Steel [..OV.AO.] uni 35
  • Go to the top of the page

Date of registration: Jan 7th 2008

Posts: 110

Gender: female

Location: New York City

10

Saturday, January 26th 2008, 11:35am

oui génial au points que ça marche pas avec le compte commandant es ce normal ??
  • Go to the top of the page

leobigboss

Raideur

Date of registration: Jun 1st 2007

Posts: 292

11

Saturday, January 26th 2008, 11:47am

trés bon script +10
  • Go to the top of the page

Aristide

Diplomate

Date of registration: Jul 5th 2006

Posts: 751

Gender: male

Location: Paris

12

Saturday, January 26th 2008, 12:21pm

Mwuhahahaha complètement inutile, mais je suis déjà addict' :D
L'Autorité vaincra.
  • Go to the top of the page

chessmatt30

Apprenti

Date of registration: Feb 21st 2007

Posts: 226

Gender: male

Location: Gard

13

Saturday, January 26th 2008, 12:38pm

tres bonne idee !

et super fun en plus !!!!!

a quand une generalisation a toute la communaute sur une nouvelle version ? ^^

==>W.D.S<== =)

Top 250 uni 42
Top 30 uni 1 sk
  • Go to the top of the page

Date of registration: Mar 13th 2007

Posts: 1,105

Gender: male

Location: france ^^ dans le chn'ord

14

Saturday, January 26th 2008, 12:51pm

encore un script de saga :D moi j'ai la flem en ce moment :O autrrement très bon script :)

ps: sagawa tu me voulait quoi hier soir :D




Uni 42: top 400:admin: " Reprise le 24/09/08 après 3 mois d'arrêt d'ogame":j4d3:

  • Go to the top of the page

Date of registration: Sep 19th 2007

Posts: 833

Gender: male

15

Saturday, January 26th 2008, 3:12pm

Quoted

call of duty a écrit :
ps: sagawa tu me voulait quoi hier soir :D



euhhhh pas de truc love ou hot ici stp :D :D :D

Ex top 80 uni 50 sans forcer
  • Go to the top of the page

Sagawa

Colon

Date of registration: Mar 2nd 2006

Posts: 1,057

16

Saturday, January 26th 2008, 3:16pm

Quoted

call of duty a écrit :
encore un script de saga :D moi j'ai la flem en ce moment :O autrrement très bon script :)

ps: sagawa tu me voulait quoi hier soir :D


Pff lacheur. j'ai besoin de toi en plus "Help me" :D

Alors oui deux problèmes :

- Le premier impossible de l'avoir avec un compte commandant actuellement. Le problème viens du faites que sa ce passe pas tout a fais pareil en construction les skinneur connaissent bien ce souci donc je vais chercher une solution.

- Le deuxième est que la barre d'avancement et le % est loin d'être exact avec des très longue recherce. A reveirifier pour affiner le calcul sa parait simple mais ces peut être ce qui sera le plus galère

edit 1 :

Black hawk quel unis .org? les normaux ou l'u670? precise moi par MP je t'envoie de quoi tous les plomber en org. et ces toi skywalker la bas? :D car mon angalis est plus nul que le tiens :D

edit 2 : sa va être tendu pour les commandant en faite mais soyez patient.
et pour les chantier oui ces faisables mais pareil y a un gros travail du faite qu'on ne devra pas la placer au même en dorit ou qu'on devrai en placer plusieur donc a voir.

Edit 3 : mais ce ne sont que des jouais ma vrai surprise arrivera bientot et sa sera probablement ma dernière action sur ogame.
Les recycleurs recrutent pour l'univers 72 [Gemini]. Candidature sur notre Forum.
Top 20 Univers 38

This post has been edited 3 times, last edit by "Sagawa" (Jan 26th 2008, 3:23pm)

  • Go to the top of the page

iguypouf

Pilote

Date of registration: Aug 12th 2006

Posts: 2,429

Gender: male

17

Saturday, January 26th 2008, 4:23pm

Quoted

Sagawa a écrit :
- Le deuxième est que la barre d'avancement et le % est loin d'être exact avec des très longue recherce. A reveirifier pour affiner le calcul sa parait simple mais ces peut être ce qui sera le plus galère


Je ne sais pas ce que tu entends par très long...

Mais moi si je divise 337h restante par 390h au début... J'ai le compte exact !!!



Bravo !
Easy Forum
Lunes - crées : 52 - détruites : 3
RIPs Pownées : 785
~ Be Tout Pourri ~

This post has been edited 1 times, last edit by "iguypouf" (Jan 26th 2008, 4:23pm)

  • Go to the top of the page

Sagawa

Colon

Date of registration: Mar 2nd 2006

Posts: 1,057

18

Saturday, January 26th 2008, 4:42pm

Quoted

iguypouf a écrit :

Quoted

Sagawa a écrit :
- Le deuxième est que la barre d'avancement et le % est loin d'être exact avec des très longue recherce. A reveirifier pour affiner le calcul sa parait simple mais ces peut être ce qui sera le plus galère


Je ne sais pas ce que tu entends par très long...

Mais moi si je divise 337h restante par 390h au début... J'ai le compte exact !!!



Bravo !


Bas en faite j'ai un souci sur une techno de plus de 1000h en faite il m'en reste genre 995h et il me met 75% alors que je suis genre a 10%. bug passager ou temporaire pas encore de details mais si vous voyez ce genre de choses ne soyez pas intriguer du pourquoi du comment.

Pour call of dutty ces pour que tu m'aide sur un outils. Mais je veux pas encore en parler en officiel.
Les recycleurs recrutent pour l'univers 72 [Gemini]. Candidature sur notre Forum.
Top 20 Univers 38

This post has been edited 1 times, last edit by "Sagawa" (Jan 26th 2008, 4:44pm)

  • Go to the top of the page

ymmy

Recrue

Date of registration: May 1st 2007

Posts: 33

Gender: male

19

Saturday, January 26th 2008, 6:41pm

Pas mal ton logiciel bravo :)
  • Go to the top of the page

THSK

Diplomate

Date of registration: Jun 27th 2005

Posts: 952

Gender: male

Location: France, Nord

20

Saturday, January 26th 2008, 7:45pm

Petite amélioration du code :

-coins arrondis sous firefox
-affichage des % amélioré
-fond de barre transparent, fond d'avancement allant du rouge au vert selon l'avancement.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// ==UserScript==
// @name Bar de progression de la fabrication labo ou batiments
// @include http://*/game/index.php?page=b_building&*
// @include http://*/game/index.php?page=buildings&session=*&mode=Forschung
// ==/UserScript==

(function(){
  try {
    if (!document.getElementById('bxx')) return;

    var m, td, pro, divOut, divIn, time = 0, totalTime = 0;
    var reTimeLeftBuilding = /pp\=\'(\d+)\'\;/igm;
    var reTimeLeftResearch = /ss\=(\d+)\;/igm;

    var scripts = document.getElementsByTagName('script');
    for(var i=scripts.length-1;i>=0;i--){
      m = scripts[i].innerHTML.match(reTimeLeftBuilding);
      if(m){ time = m[0].replace(reTimeLeftBuilding,'$1'); break; }
      m = scripts[i].innerHTML.match(reTimeLeftResearch);
      if(m){ time = m[0].replace(reTimeLeftResearch,'$1'); break; }
    }

    td = document.getElementById('bxx').parentNode.previousSibling;
    m = td.innerHTML.split(/<br>/i);
    for (var i=m.length-1;i>=0;i--)
      if(m[i].indexOf(':')!=-1){
        totalTime = m[i].split(':')[1];
        break;
      }
    m = totalTime.match(/(\d+)/igm);
         if(m.length==4) totalTime=(m[0]*24*3600)+(m[1]*3600)+(m[2]*60)+(m[3]*1);
    else if(m.length==3) totalTime=(m[0]*3600)+(m[1]*60)+(m[2]*1);
    else if(m.length==2) totalTime=(m[0]*60)+(m[1]*1);
    else if(m.length==1) totalTime=(m[0]*1);
    if (totalTime<time){ // missing seconds in total time
           if(m.length==3) totalTime=(m[0]*24*3600)+(m[1]*3600)+(m[2]*60);
      else if(m.length==2) totalTime=(m[0]*3600)+(m[1]*60);
      else if(m.length==1) totalTime=(m[0]*60);
    }

    if(td && totalTime && time) {
      pro = new String((totalTime-time)*100/totalTime)
      pro = pro.replace(/(\d+\.[\d]{0,2})\d+/,'$1');
      divTop = document.createElement('div');
      divIn = document.createElement('div');
      divIn.innerHTML = '&nbsp;'+pro+'%';
      divTop.appendChild(divIn);
      td.appendChild(divTop);
      divTop.style.cssText = 'width:99%; height:13px;\
                              border:1px #0c0 solid;\
                              -moz-border-radius:15px;\
			      background-color:transparent;';
      divIn.style.cssText = 'width:'+pro+'%; height:13px;\
                             font-size:10px; font-weight:700;\
			     line-height:13px;\
			     -moz-border-radius:15px;\
			     text-align:center; color:#000;\
                             background-color:rgb('+(100-pro)+'%,'+pro+'%,20%);';
    }//else{alert('td:'+td+'\ntime:'+time+'\nallTime:'+allTime);}

  }catch(e){
    alert('productionPercent:'+e+'\n'+(e.stack||''));
  }
})();


J'ai essayé de faire une actualisation auto, mais Greasemonkey ne permet pas cela (sauf si quelqu'un sait faire des timeout, je suis preneur)
  • Go to the top of the page