[CODE] ACSUtils - a library for ZDoom/Zandronum scripting
Posted: Sat May 07, 2016 4:28 pm
ACSUtils is a huge library of ACS functions that I made because I found myself copy-pasting the same missing functions all over again. Then I added a ton more functions, including a flexible replacement for HudMessage with scaling and 3D HudMessages, and decided to make it usable in multiple projects.
it's 100% Zandronum-compatible and also provides a lot of Zandronum-specific functionality.
To use ACSUtils, download the latest release from https://github.com/Korshun/acsutils/releases, unpack it somewhere and add the folder with .acs files to Include Paths in SLADE settings (Edit -> Preferences -> Scripting -> ACS). Here is a template for an empty project that makes it compile:
ACC can't handle projects with more than 255 functions (ACSUtils provides about 230), so you need a different ACS compiler. There are two options below. To use them, set up acc.exe path in SLADE to point to either of those compilers.
Official site/wiki
GitHub
it's 100% Zandronum-compatible and also provides a lot of Zandronum-specific functionality.
To use ACSUtils, download the latest release from https://github.com/Korshun/acsutils/releases, unpack it somewhere and add the folder with .acs files to Include Paths in SLADE settings (Edit -> Preferences -> Scripting -> ACS). Here is a template for an empty project that makes it compile:
Code: Select all
#library "project"
// ACSUtils settings:
#define TIDALLOCSTART 15000
// Includes:
#include "zcommon.acs"
#include "acsutils.acs"
// Your project's error handler:
function void ACSUtilsErrorHandler(int type, int message)
{
Log(s:"error: ", s:message);
printbold(s:"error: ", s:message);
}
// Your project's code follows.Spoiler: ACC (modified) (Open)
Spoiler: BCC (Open)If your mods use a function that you think would be useful in other projects, post it here and I'll add it.
Official site/wiki
GitHub