Good news!
Welcome home!
Latest posts made by polygon
-
RE: Muse is in the Hospital
Wish you luck and that you can be on your way home soon again!
-
RE: Bash script to download haks and overrides
Gave the script another touch today, possible final one.
It should work no matter what the CoA staff adds to the game now. Even new categories such as music or portraits would be downloaded, sorted and lowercased for you.Cheers!
-
RE: Bash script to download haks and overrides
removed the hardcoded urls to make the script work even when changes and updates are made. The script will download everything just like the CoA windows installer does but it still only sorts overrides and haks. Everything else will be extracted into the base directory that the script creates.
-
RE: Bash script to download haks and overrides
I updated the script so it should work once again with the new filenames and tlk package.
-
RE: Bash script to download haks and overrides
Thx for the script, works fine for me.
I see you hardcoded the files' URLs, which could be a hassle to maintain. Then I realized the windows downloader doesn't seem to need reinstalling when a new hak is added, which means it manages to find said list somewhere from the CoA site. Anyone has an idea of where that could be?I'm glad the script was to use for you!
Fetching a text file from a URL is minor changes to the script. I might add it some time if I know where to find the updated list.
-
RE: Bash script to download haks and overrides
Its a long time since I installed it but if you need help with linux and nwn then throw me a PM
-
RE: Bash script to download haks and overrides
@latoksinned:
Anyone know mac enough who could help me design one for OSX? I don't have a problem downloading it piece by piece but it would be fun to just have an auto-downloader
If its a *nix version of OSX you should be able to run the script provided that you have all the commands installed.
All commands except p7zip is standard linux shell commands. -
Bash script to download haks and overrides
This bash script will download, sort, extract and lowercase all the required files to play CoA on a operation system such as like linux. You will still have to move and replace the files into your NWN installation manually.
Simply copy the script below into an empty file and run it in a terminal.
Make sure you have wget and p7zip installed or the script won't do much for you.#!/bin/bash directory="COAFILES" coaserverfile="http://216.155.133.53/forum/download/player.xml" command -v wget >/dev/null 2>&1 || { echo >&2 "The script require wget but it's not installed. Aborting."; exit 1; } command -v p7zip >/dev/null 2>&1 || { echo >&2 "The script require p7zip but it's not installed. Aborting."; exit 1; } echo "This script will download the necessary haks to play COA" echo "Answer yes to proceed" read -p "$ " ans ans="$(echo ${ans} | tr 'A-Z' 'a-z')" if [ "$ans" == "yes" ]; then if [ -d "$directory" ]; then echo "`pwd`/$directory already exists!" echo "Want to remove the directory $directory and continue?" read -p "$ " ans ans="$(echo ${ans} | tr 'A-Z' 'a-z')" if [ "$ans" == "yes" ]; then rm -rf $directory else echo "No changes has been made" exit 1 fi fi mkdir $directory cd $directory directory=`pwd` wget $coaserverfile -O TEMP.XML xmldir=(`cat "TEMP.XML" | grep '<subfolder' |="" cut="" -d="" '="">' -f 2 | cut -d '<' -f 1`) xmlurl=(`cat "TEMP.XML" | grep '<url' |="" cut="" -d="" '="">' -f 2 | cut -d '<' -f 1`) rm -f TEMP.XML for (( i=0;i!=${#xmlurl[@]};i++)); do category=${xmldir[${i}]} package=${xmlurl[${i}]} if [[ ! -d "$category" && ! -z "$category" ]]; then mkdir $category fi if [ ! -z "$category" ]; then cd $category fi wget $package -O temp.7z p7zip -d temp.7z cd $directory done rename 'y/A-Z/a-z/' * rename 'y/A-Z/a-z/' */* echo "Everything was downloaded, extracted and lowercased!" echo "Now merge the files from $directory to your NWN directory." echo "Have fun playing CoA and please leave a comment on the forum!" exit 1 else echo "No downloads started" exit 1 fi</url'></subfolder'>
Please, use the script karandil posted in this thread if you want to install, update and maintain the required files to play COA. You need xsltproc commandline tools installed but will be more efficient to use and is much faster since it will only download what you need to update. The script I made above will simply download everything all the time!