yes another basic tier problem from me. I seem to have set up a library; doombuilder will let me choose a named script that is in one, rather than complaining about an "unknown script", but when I run the map gzdoom itself doesn't know the script. The examples for libraries that I have found not surprisingly don't actually show scripts in them or aren't actually being used as libraries so I cannot yet determine what I missed.
#library "eep"
#include "zcommon.acs"
script "unziiip" (int line1)
{
SetLineTexture(line1, SIDE_FRONT, TEXTURE_MIDDLE, "ziiip2");
//and a whole bunch of lines
}
just one script! So far. I want to set up a bunch of animated door object sequences so that they don't need to be defined in every stage since they take up a lot of space and are easy to lose track of. If I change the script name to a number it still doesn't get found, so that is not the issue.
the level's script file starts like this
#include "zcommon.acs"
#import "/doom2/281/zeesc/eep.txt"
(as soon as I figure out what folder it is taking that zcommon from i will hopefully be able to remove my full folder tree from the import command)
Have I left something out? Do I need to put this import command some place else?
the library file looks like this(i "solved" it) acs library is found by doombuilder but not gzdoom
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
(i "solved" it) acs library is found by doombuilder but not gzdoom
Last edited by bimshwel on Sun Aug 13, 2023 2:23 pm, edited 2 times in total.
Re: acs library is found by doombuilder but not gzdoom
You got a LOADACS lump?
Re: acs library is found by doombuilder but not gzdoom
I do, but I wasn't sure if it was working since the script wouldn't run. I have also tried moving that around and changing its contents without any apparent effect. Could that be part of the problem?
Re: acs library is found by doombuilder but not gzdoom
Could you upload a small example here so we can see how it looks inside your files?
Re: acs library is found by doombuilder but not gzdoom
oh fiddle dee dee. While trying to create the example I noticed the "invalid acs module" error. evidently the game objected to having both the source AND the compiled file in the same folder, at least with such similar names.
and SO it worked in the test map for a moment, but as soon as I tried to add the script to and activate it in another map I started getting this confounding error. And it is happening in both maps. Apart from the wads themselves and the dbs files nothing else in any of these folders has changed.
I don't know where it is pulling that absurd path from. the example still works fine. I even banished the text source to a totally unrelated folder and saved saved saved and gzdoom is still trying to use the garbage "doom2/2" path. I evener tried actually putting the library source as a file just named 2 in the doom2 folder and that didn't work. Is there someplace else it could be taking a path instruction from?
I tried recompiling the file that loadacs looks at in case I had somehow cut out half the path, recompiled it and renamed it just to mess with myself and then blacked out and forget the previous five minutes without knowing it, but that didn't change anything either. In fact if I empty the acs folder entirely I get the exact same "doom2/2" message
BECAUSE I had loadacs in the acs folder where it apparently isn't supposed to be. I must have had a copy in the correct folder for just a moment and that screwed up how I was looking at the situation. flippety dippity bees. I have no idea then why my example works because that also has loadacs inside its acs folder. Nor where "doom2 backslash 2" is being pulled out of.
in any case the problem is tentatively solved and i hope somebody can learn from my mistakes even if it isn't me.
and SO it worked in the test map for a moment, but as soon as I tried to add the script to and activate it in another map I started getting this confounding error. And it is happening in both maps. Apart from the wads themselves and the dbs files nothing else in any of these folders has changed.
I don't know where it is pulling that absurd path from. the example still works fine. I even banished the text source to a totally unrelated folder and saved saved saved and gzdoom is still trying to use the garbage "doom2/2" path. I evener tried actually putting the library source as a file just named 2 in the doom2 folder and that didn't work. Is there someplace else it could be taking a path instruction from?
I tried recompiling the file that loadacs looks at in case I had somehow cut out half the path, recompiled it and renamed it just to mess with myself and then blacked out and forget the previous five minutes without knowing it, but that didn't change anything either. In fact if I empty the acs folder entirely I get the exact same "doom2/2" message
BECAUSE I had loadacs in the acs folder where it apparently isn't supposed to be. I must have had a copy in the correct folder for just a moment and that screwed up how I was looking at the situation. flippety dippity bees. I have no idea then why my example works because that also has loadacs inside its acs folder. Nor where "doom2 backslash 2" is being pulled out of.
in any case the problem is tentatively solved and i hope somebody can learn from my mistakes even if it isn't me.