Ace SVN Zip-updating script

Using this great script i'm confused by the SCT addon on the SVN, juste because in fact it's not directly an addon but a directory with 4 addons.

have you a solution for that ?

It was a discussion in the WinAceUpdater thread about this. The author basicly said he want it to be like that and SCT is also considered a final product so it wont be updated regularly on the SVN and when it is it will be updated on wowinterface.com. So its not really needed to be able to update SCT properly. Its not following the "standard" of how mods should be located on the SVN.

I could just make the updater not update SCT or write special code to make it update properly. But the question is if its worth the effort if the mod is not updated regularly on the SVN.

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)

at java.net.URLClassLoader.access$100(URLClassLoader.java:55)

at java.net.URLClassLoader$1.run(URLClassLoader.java:194)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)"

I think it is because your Java VM is old (1.4.x). Please update to the latest version and try again and tell me if you get the same error. It is simply because the program is compiled using Java 1.5 and many things is backwards compatible but some are not.

The jump from 10.3.9 to 10.4 requires you to either buy it or "acquire" it. I certainly wouldn't ask you to take time to write anything else for this script for us cheapos, so don't worry about it. The manual downloading isn't the worst thing in the world, and some day I'll just spring for the update and be happy.

It was a discussion in the WinAceUpdater thread about this. The author basicly said he want it to be like that and SCT is also considered a final product so it wont be updated regularly on the SVN and when it is it will be updated on wowinterface.com. So its not really needed to be able to update SCT properly. Its not following the "standard" of how mods should be located on the SVN.

I could just make the updater not update SCT or write special code to make it update properly. But the question is if its worth the effort if the mod is not updated regularly on the SVN.

I think the "right" answer for this is for the ZIP file to be built based on where it finds TOC files and not based entirely on the SVN structure.

Or someone with the authority (clad) could grab SCT and put it in SVN the right way. :)

I also made it more silent. Now it only report the mods getting updated. Please tell me if you find any bugs or want something to change? I haven had time to try it on linux and i have not Mac so i cant try it on OSX...

I use your script under OSX...
I get this error message:

$ java -jar /Applications/Games/World\ of\ Warcraft/Interface/AceUpdater.jar
You are in the wrong folder...
Run this program from your World of Warcraft\Interface\ folder

I don't know if I am having any better luck than INeDiA. I get the following error with AceUpdater under OS X 10.4.8.

java.lang.NullPointerException
at AceUpdater.getLocalModList(AceUpdater.java:106)
at AceUpdater.main(AceUpdater.java:46)

I get another NullPointerException with JavaAceUpdater.

Exception in thread "main" java.lang.NullPointerException
at com.nickenyfiken.aceupdater.AddonList.findInstalledAddons(AddonList.java:115)
at com.nickenyfiken.aceupdater.JavaAceUpdater.<init>(JavaAceUpdater.java:57)
at com.nickenyfiken.aceupdater.JavaAceUpdater.main(JavaAceUpdater.java:65)

I was trying to get my hands on the perl-based scripts, but every file in this thread seems to throw a "404" error. Any advice?

I got a graphical version that should work better. You can get it here. You can run it from anywhere and it will ask you for your WoW directory on the first run. It is working in Win and Linux (Gnome), i hope you can get it running in OSX too.

Also PProvost and co is working on a mac version of WowAceUpdater, so stay tuned for updates on that program. Hopefully it's working better.

I got a graphical version that should work better. You can get it here. You can run it from anywhere and it will ask you for your WoW directory on the first run. It is working in Win and Linux (Gnome), i hope you can get it running in OSX too.

Also PProvost and co is working on a mac version of WowAceUpdater, so stay tuned for updates on that program. Hopefully it's working better.

I apologize if I wasn't clear, but the JavaAceUpdater.jar I referred to happened to be the graphical version that you have linked. I don't know how keen you are on looking into the matter with PProvost, et. al. working on the WowAceUpdater, but it's great to see a solution for more than one system. The WoW community could use a good addon distribution system like the package distribution systems in seen for the *nixes - any form of automation can only be helpful.

I apologize if I wasn't clear, but the JavaAceUpdater.jar I referred to happened to be the graphical version that you have linked. I don't know how keen you are on looking into the matter with PProvost, et. al. working on the WowAceUpdater, but it's great to see a solution for more than one system. The WoW community could use a good addon distribution system like the package distribution systems in seen for the *nixes - any form of automation can only be helpful.

Ah sorry i missed it was the graphical you were running. Well i can't really do anything because i don't own a mac, hard to write a program for a computer you don't own :-). Well i am 95% sure the error is is because the path to WoW and the AddOns is wrong. You select your wow folder on first run right? Is the addons in wow mac version in /World of Warcraft/Interface/AddOns/ ? If its not that may be the problem.

My program has nothing to do with WowAceUpdater. If i understand the situation PProvost and someone else is making a mac version of WowAceUpdater using the same base as the win version but with another GUI i think.

I was playing around with your source code for the non-gui AceUpdater that you have in the same directory as JavaAceUpdater and got that to work by changing the directory characters from "\\" to "File.separator" where appropriate. Big whoop, I know, but I'm mildly pleased, since I don't know all that much about Java. It might fix INeDiA's problem, as the "\\" doesn't seem to play nice with OS X.

I did get adventurous with JavaAceUpdater (the graphical one) and used "jad" to decompile it. Doing a little checking, it looks like (I think, but I might be horribly wrong) you are looking for "WoW.exe," something you wouldn't find in a Mac installation of WoW, to determine if you are in the right directory. A Mac equivalent installation of WoW would have "World of Warcraft.app" in the World of Warcraft directory.

Let me know if you decide to look in to the matter further, but I'm happy with the non-gui AceUpdater you created previously - works like a charm!

I was playing around with your source code for the non-gui AceUpdater that you have in the same directory as JavaAceUpdater and got that to work by changing the directory characters from "\\" to "File.separator" where appropriate. Big whoop, I know, but I'm mildly pleased, since I don't know all that much about Java. It might fix INeDiA's problem, as the "\\" doesn't seem to play nice with OS X.

I did get adventurous with JavaAceUpdater (the graphical one) and used "jad" to decompile it. Doing a little checking, it looks like (I think, but I might be horribly wrong) you are looking for "WoW.exe," something you wouldn't find in a Mac installation of WoW, to determine if you are in the right directory. A Mac equivalent installation of WoW would have "World of Warcraft.app" in the World of Warcraft directory.

Let me know if you decide to look in to the matter further, but I'm happy with the non-gui AceUpdater you created previously - works like a charm!

Thanks!

Ah! That explains a lot. I can fix those errors. Yeah the check for WoW.exe code is maybe bad, I can change it to look for a Interface\AddOns\ path inside the WoW folder instead. Or maybe it is better to set the AddOn folder on first run instead, that makes the user able to have a AddOn folder in a total different location for updates. Also it eliminates the use of hard coded paths in the code so using the file chooser should create a correct path on any platform.

EDIT: Uploaded a new version now. On first run select addon folder instead of wow folder. Hope this is working better. Same URL.