The following warnings occurred:
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.1.13 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/printthread.php(287) : eval()'d code 2 errorHandler->error_callback
/printthread.php 287 eval
/printthread.php 117 printthread_multipage

AssaultCube Reloaded Forums
ACR Updater[CLI] - Printable Version

+- AssaultCube Reloaded Forums (
+-- Forum: AssaultCube Reloaded (
+--- Forum: Implemented Features (
+--- Thread: ACR Updater[CLI] (/thread-1235.html)

Pages: 1 2 3 4

ACR Updater[CLI] - ruler501 - 2014-01-06

I have finished implementing what should be a fully featured ACR updater in python3(requires you to have python3 installed to run it). It checks the server for the latest version and downloads it based on Operating System. It will save your data, mods, and configs across updates so you don't have to worry about reinstalling everything.

There is also a mod manager built into it(Though it only supports installing from local mods for now since I broke my server). It will install the mods without overwriting the main files and update the batch/shell script with the new commands to load the mod.

I have tested it and with the following commands, they download the most recent ACR with the fn2000 and mapfix mods and then run it(assumes it runs in the same directory as and the zips for the mods).

Code: init updateacr installlocalmod installlocalmod runclient

Download is here
Github page is here if you want to contribute

Since this is also a mod manager I feel I should give a shoutout to the other mod manager out there. rXn made a mod manager with the qt framework It appears to overwrite files though so it does not use the mod system. This does save you the hassle of having to edit the batch/shell script(or let a program do it for you), but it also makes it impossible to remove mods.

RE: ACR Updater[CLI] - dm.mossberg590a1 - 2014-01-06

python3 is so swag (took a course on it, bash scripting, and linux last quarter) Big Grin

RE: ACR Updater[CLI] - ruler501 - 2014-01-06

I used to hate it, but most things are moving over to it from python2 so I finally learned it. It has it's upsides. It's much better than shell imo.

RE: ACR Updater[CLI] - rXn - 2014-01-06

I have to admit I really forget the thing with the mod dir. Anyway, I am going to add this (together with an "installed mods" tab and a method to remove the mods. Although the main work is network stuff (get somne -currently empty- lists and read the download link and so on) it is quite Qt-spceific, I think that it could save much work if my mod manager just runs your command. I once tried to rewrite the former Launcher in Mono/C#.NET, but I failed. So why don't put it together?

RE: ACR Updater[CLI] - ruler501 - 2014-01-06

That sounds great. I don't want to write a GUI and it shouldn't be too hard to run my script as a backend.

RE: ACR Updater[CLI] - Playfrog4u - 2014-01-07

Been awhile since I had free time, but I can help with the development on this if you would like. My last release...
Updated to download ACR 2.6.0

RE: ACR Updater[CLI] - ruler501 - 2014-01-07

I actually figured out how to get the latest update by looking at your updater Tongue
It would be great if you could help out with the GUI side of the updater.

RE: ACR Updater[CLI] - DeltaStrikeOp - 2014-01-07

Awesome, thanks Playfrog

RE: ACR Updater[CLI] - rXn - 2014-01-07

@Playfrog4u :
Your updater is quite nice, but for the platform independence I would choose Qt or Gtk, although I have no experience with Gtk. The .Net Framework is quite fine, but your tool does not work with Mono (an open implementation of .Net, esp. for Linux/Unix/Mac) and I have to admit that I terribly failed rewriting your Launcher in Mono/C#. Anyway, as it was the network stuff that finally killed me, I think the rest is quite nice and possible.
Anyway, I myself vote for Qt, as it is easy, platform-independent and closely linked to many other C++ things (fe they rewrote the <string> type as a class in <QString> to simplify.)
Second would be Mono/C#, although it has quite big libs to carry with it.

//Edit: I just saw that Mono has also some kind of Vb.Net 2005 clone, but I still vote for C++/#
//Edit2: What about python/Tinker GUIs? Any experince? There is also Qt for python, called PyQt. But that would be an additional set of libs to carry...

I know, dont answer your own posts...who cares...
I am currently creating an UI for the launcher (Only graphics, no code at this moment) that might also be used in pyhton. I think I will update tomorrow, take it as a suggestion, but I had some nice ideas today Tongue

RE: ACR Updater[CLI] - ruler501 - 2014-01-07

I would vote for C++/Qt
I've only ever used python for scripting so I'm not sure about using PyQt(there's also the problem of most people not having python3 installed if they aren't on linux).

This forum uses Lukasz Tkacz MyBB addons.