Linux/Mac Version Switcher
[EDIT] Demonstration on Youtube
[EDIT2]
If anyone decides to try this, please post any bugs on the sourceforge project page. Thanks!
[/EDIT2]
Mods, let me know if this is against policy. I don't believe it is, because it does what TrenShadow does, just within a different OS.
I recently installed D2, updated, etc on my linux partition, and it runs like a dream. However, to avoid having to create multiple install points or rebooting into Windows (to use TrenShadows version switcher), I began work on my own Python-based version switcher. If this has already been done, could someone point me to the code, please... don't wanna re-invent the wheel
... but I couldn't find anything.
It's still in a rough state, but it gets the job done. I need to work on making it more secure (double-checking so it doesn't overwrite .bak files), add more functionality (it can handle multiple windows in a round-about-way, but I'd like to add it to the script), some serious code cleanup (was more of a quick put together), and added functionality, especially inline switches such as -w, -ns, etc.
Anyway, my question is how many people would be interested in looking at the code and/or testing this. Obviously I would recommend backing up your D2 folder before undertaking this. Python is not my primary coding language (I have < 1 year experience in it). I'll make sure to have file-overwrite protection before I let anyone touch it though.
With a little code-correction and helpful testing, this could even be used on Mac (as well as Windows, but TrenShadow works fine there). So, if somebody wants to give me a hand with that by giving it a go and telling me what's wrong, that would be lovely.
[EDIT] Demonstration on Youtube
[EDIT2]
Yay! I've gotten Admin approval from Elly that my version switcher is clean.
For anyone curious about installing, please see the project wiki.
If anyone decides to try this, please post any bugs on the sourceforge project page. Thanks!
[/EDIT2]
Mods, let me know if this is against policy. I don't believe it is, because it does what TrenShadow does, just within a different OS.
I recently installed D2, updated, etc on my linux partition, and it runs like a dream. However, to avoid having to create multiple install points or rebooting into Windows (to use TrenShadows version switcher), I began work on my own Python-based version switcher. If this has already been done, could someone point me to the code, please... don't wanna re-invent the wheel
It's still in a rough state, but it gets the job done. I need to work on making it more secure (double-checking so it doesn't overwrite .bak files), add more functionality (it can handle multiple windows in a round-about-way, but I'd like to add it to the script), some serious code cleanup (was more of a quick put together), and added functionality, especially inline switches such as -w, -ns, etc.
Anyway, my question is how many people would be interested in looking at the code and/or testing this. Obviously I would recommend backing up your D2 folder before undertaking this. Python is not my primary coding language (I have < 1 year experience in it). I'll make sure to have file-overwrite protection before I let anyone touch it though.
With a little code-correction and helpful testing, this could even be used on Mac (as well as Windows, but TrenShadow works fine there). So, if somebody wants to give me a hand with that by giving it a go and telling me what's wrong, that would be lovely.
Last edited: