Page 1 of 1

[FR] Upates scripts

Posted: 2010-03-02 19:52:30
by devilhacker
hello voilà j'ai voulu faire des petites mises à jours de scripts et je suis passé par le module udpates scripts là on me dit que c'est dépassé et qu'une nouvelle va être réinstallé après redémarrage de ant movie ce que je fais. mais le script est vide (0ko) donc plus de moyen automatique de mettre à jours les scripts? plus de "updates scripts"?

Posted: 2010-03-04 20:02:13
by antp
Salut,
Tu devais avoir une assez vieille version.
Le plus simple serait d'installer la dernière version du programme afin d'avoir une version récente de ce script ainsi que de la plupart des autres scripts.

Posted: 2010-03-05 00:02:56
by devilhacker
lol j'ai la dernière du site :lol: :lol: je suis pas noob à ce point là. je n'avais jamais eu ce problème avant les mises à jours je les faisais avec le update scripte mais maintenant ça foire... tout ça parce que quand je l'ai lancé il m'a indiqué qu'une nouvelle version de l'update était là et qu'elle serrait activé au reboot du log... mais elle disparait carrément et ne se retrouve plus dans le menu non plus. et dans le dossier c'est du 0 ko comme je l'ai dit.... bizarre

Posted: 2010-03-07 08:58:46
by antp
Ah, bizarre en effet :??:
Tu peux toujours récupérer manuellement le fichier sur http://update.antp.be/amc/scripts/

Posted: 2010-03-07 10:46:02
by devilhacker
oui c''est ce que j'ai fais ;)

mais dès que je rajoute le udates script et que je lance ant pouf on me dit que c'est une version de scripte dépassé et qu'une nouvelle sera mis à jour au reboot du log...

késako tout ça :hihi: :hihi: :hihi:

Posted: 2010-03-07 13:38:02
by bad4u
Not sure if I understand correct, as google translation looks a bit weird this time.

@Antoine: I'd recommend to upload Update_Scripts script to default server folder again (it's not there anymore). Not sure if that alone is the problem (and solution), but it's definitive the reason for downloading the 0kb version (I did not include error handling for non existing script when updating itself, just did not think about that possibility when I wrote it). Older versions of the script always try to update from this folder, not from archive folder ;)

Posted: 2010-03-08 20:51:14
by antp
bad4u >> no, he said he had the latest version, and even redownloaded it

devilhacker >> quand tu lances le script tu veux dire? pcq quand tu lances le soft il ne lance pas le script... Et d'ailleurs c'est pas au redémarrage du logiciel mais juste à la réouverture de la fenêtre de script.
Quelle version apparaît pour le script après que tu l'aies manuellement mis à jour ?
Quelle version de Windows, au passage ?

Posted: 2010-03-08 23:29:00
by bad4u
antp wrote:bad4u >> no, he said he had the latest version, and even redownloaded it
Yep, but the script automatically tries to dl a new version if date/time comparision shows an older one. Maybe it's a problem with UAC/virtual store when the script tries to read local filedate/time, e.g. new script manually downloaded to program's folder though there is an older one at virtual folder which then is overwritten when 0KB version is downloaded. If I understood correct that the script initialized an auto update of itself, I think there is a good chance of copying the script to default server folder again solves this problem (and it might be good in case there are still older versions around, e.g. from dl sites, as these might dl 0kb file then, too).

Though there still is a chance I'm wrong ;)

Posted: 2010-03-10 11:12:30
by antp
Yes, that's why I asked Windows version...
I am not sure how Virtual Store works in case the program has a newer version of a file in the Virtual Store, and then you replace the original file in its own folder: does it continue to use the Virtual Store or does it switch back to the original one?
Once the file is downloaded manually, it has the date/time of the download, so it should not try to update itself.

Posted: 2010-03-11 19:10:26
by bad4u
antp wrote:Yes, that's why I asked Windows version...
Sorry, didn't understand that from the translation ^^
I am not sure how Virtual Store works in case the program has a newer version of a file in the Virtual Store, and then you replace the original file in its own folder: does it continue to use the Virtual Store or does it switch back to the original one?
Once the file is downloaded manually, it has the date/time of the download, so it should not try to update itself.
It continues using files from Virtual Folder, no matter which files are newer. You'll see the same effect when you edit scriptfiles on program's folder, though there is a downloaded version of the same script on Virtual Folder. You will have to edit or delete the file from Virtual Folder in that case (or edit the file from within AMC of course).