Animation Libraries - crnormand/gurps GitHub Wiki
GGA includes a powerful chat command called /anim
that relies on a few text files to easily find animations you can use. After any updates that add new animations, you may need to update these files. Fortunately, a couple of Linux shell scripts can help you here.
You probably do not need to do any of this if you have not updated jb2a_patreon in a long time. The other listed animation mods have not changed in quite a while. If you do have any newish releases of jb2a_patreon, then the following is the easiest way to be sure /anim works for all the available animations.
Installation
These scripts live in /systems/gurps/utils
and they can be used if you are hosting Foundry on Linux (and maybe even on Windows if you have WSL installed). If you're not sure which animations need to be added back into the lists, with a few steps the utils can rebuild the lists.
To get them updated on Ubuntu, you'll first need to install a tool called ffprobe:
sudo apt-get install ffprobe
which ffprobe
This installs and then shows the path to invoke ffprobe (will probably be /usr/bin/ffprobe
).
Next, update findwebm.sh
to use the installed path for ffprobe. From the home dir where you installed Foundry, go to the gurps/utils folder:
cd ./foundryuserdata/Data/systems/gurps/utils
vim findwebm.sh
(or use your favorite editor)
Edit line 7 which starts /c/Utils/ffmpeg/bin/ffprobe
to use your ffprobe install path instead, make both of the scripts executable, then run ./rebuild_mod_list.sh
, like so:
chmod u+x ./rebuild_mod_list.sh
chmod u+x ./findwebm.sh
./rebuild_mod_list.sh
Let this run until it finishes (takes a while). It will recreate the following files if you have those mods installed:
JB2A_DnD5e.txt jb2a_patreon.txt animated-spell-effects.txt animated-spell-effects-cartoon.txt jaamod.txt
After this, start or restart Foundry and you should be good to go.
Note: this won't work if you're using Forge or don't have access to the Foundry install files.
Updates
To update again after installing a jb2a update, you just need to run the rebuild script:
./rebuild_mod_list.sh
Adding New Animation Mods
You can add more animation modules to the first line MODS list in rebuild_mod_list.sh
separated by a space. You can also speed the process of updates by paring the MODS list down to only the mods you know have changed:
MODS="animated-spell-effects animated-spell-effects-cartoon jaamod JB2A_DnD5e jb2a_patreon"