This is how I have my files setup:
mapset.acs (library)
Code: Select all
#library "mapset"
#include "zcommon.acs"
......
Code: Select all
#import "mapset"
#include "zcommon.acs"
...
Code: Select all
MAPSET
...
Code: Select all
#library "mapset"
#include "zcommon.acs"
......
Code: Select all
#import "mapset"
#include "zcommon.acs"
...
Code: Select all
MAPSET
...
Code: Select all
#import "mapset.acs"If i take out the import statement, it doesn't recognize any of my library defined variables or scripts.XutaWoo wrote:Wait, why are you trying to import MAPSET...if it's already being loaded by LOADACS?
LOADACS will automatically add the scripts in the ACS file without them needing to be #imported.
MAPSET is compiled, yes, but you import the original source file, not the compiled file. This lets ACC find out what you have in there.fiendohell wrote:MAPSET is a compiled file, so don't I have to use #import?
If you don't need this library to be accessible from every map, including ones that you did not import it from, then you don't need to list it in LOADACS.fiendohell wrote:If i take out the import statement, it doesn't recognize any of my library defined variables or scripts.
LOADACS automatically loads an acs file whenever a map is started. It's used for mods that are playable on any mapset. A library, on the other hand, is an acs file that other acs files can reference.fiendohell wrote:MAPSET is a compiled file, so don't I have to use #import?
If i take out the import statement, it doesn't recognize any of my library defined variables or scripts.XutaWoo wrote: Wait, why are you trying to import MAPSET...if it's already being loaded by LOADACS?
LOADACS will automatically add the scripts in the ACS file without them needing to be #imported.
Providing the proper path to the library's source file should be enough.Salad Viking wrote:As for why it's not working, are you trying to compile in Doom Builder? That doesn't seem to work for me
This is correct. I could only compile from doom builder using the full directory path to an external acs file.randy wrote:Providing the proper path to the library's source file should be enough.Salad Viking wrote:As for why it's not working, are you trying to compile in Doom Builder? That doesn't seem to work for me
This works well (thank you!), but why can't Doom Builder compile when the library is in the wad already? As I previously stated, this works without fault in SLumpEd.CodeImp wrote:Place the ACS file in the directory where your WAD is and it should work without path, or use a path relative to your WAD location.