ACS Libraries in .94

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
*Viper*
Posts: 88
Joined: Tue Jul 15, 2003 4:47 pm
Contact:

ACS Libraries in .94

Post by *Viper* »

Has anyone used a library in 94 yet? I have tried, but always come up with a crash right when the level is about to start.

I have basically use two blank acs files, one with the library command, and the other with the import. That works in 63a, but not 94.
User avatar
Macil
Posts: 2529
Joined: Mon Mar 22, 2004 7:00 pm
Preferred Pronouns: He/Him
Location: California, USA. Previously known as "Agent ME".
Contact:

Post by Macil »

Are they compiled?
User avatar
Raziel Anarki
Posts: 27
Joined: Thu Oct 30, 2003 9:38 pm

Post by Raziel Anarki »

i've toying around with libraries in .94, and for me the crash happens only if the map's script contains no scripts (ie. only an #import directive)
(bug?)

try a dummy script which does nothing (it doesn't have to be called imo):

Code: Select all

script 777 (void)
{
  delay (1);
}
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Are the complied libraries between A_START and A_END lumps. Libraries do work with 2.0.94 because ZDoom uses a library to preform many of Strifes things.
User avatar
*Viper*
Posts: 88
Joined: Tue Jul 15, 2003 4:47 pm
Contact:

Post by *Viper* »

Hmmm :? It must be something weird with my system then, because I can't get libraries to work with 94. I've had them working before in 63a.

The exact same ACS script used in a library in 63a won't work in a library for 94, however if I copy the code and paste it directly into the script for the map, it works fine. :roll:

It is a compiled lump I am adding, and it is between the A_ markers. I've also tried putting a dummy script in there. None of it works.
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

I have libraries working quite well in .94. Can you describe your entire process?
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Something tells me he has copied and pasted the compiled code.
User avatar
*Viper*
Posts: 88
Joined: Tue Jul 15, 2003 4:47 pm
Contact:

Post by *Viper* »

TheDarkArchon wrote:Something tells me he has copied and pasted the compiled code.
Nope, I copy-pasted the ACS source and re-compiled it. :)
Risen wrote:... entire process?
Well, the last thing I tried was creating a 2-sector map in DB. I edited the script and have

Code: Select all

#include "Zcommon.acs"
#import "ExpLib.acs"
in that one. Then I created a new script outside of DB, and put this in it:

Code: Select all

#library "ExpLib"
#include "ZCommon.acs"
Script 1 (void)
{
 PrintBold(s:"Testing");
}
The print statement is just there because of Raziel saying empty libraries crashed. Anyway, I compiled this script and inserted the .o between the A_START and A_END tags. I have it named EXPLIB. Then I launch ZDoom 94, and it crashes :? If I launch the same .wad in 63a, it plays fine.

(That good enough for an entire process description? :P :lol: )

By the way, I will post the crash I get here in case someone wants to look at it. Since this actually isn't the forum for it, I'll put it in spoiler tags.
Spoiler:
User avatar
Raziel Anarki
Posts: 27
Joined: Thu Oct 30, 2003 9:38 pm

Post by Raziel Anarki »

*Viper* wrote: The print statement is just there because of Raziel saying empty libraries crashed.
sorry if i wasn't clear, but i meant that the dummy script should be in your map's script

btw empty libraries could crash, i haven't tested it. but experimenting with empty libraries is a bit silly :)
User avatar
*Viper*
Posts: 88
Joined: Tue Jul 15, 2003 4:47 pm
Contact:

Post by *Viper* »

Sure enough, that was it. It crashes with no scripts in the maps behavior lump. :roll:
Raziel Anarki wrote:sorry if i wasn't clear
No, I was just blind. :P I see now looking at your first post above that you did say it was on the map scripts. :oops: :)
User avatar
Raziel Anarki
Posts: 27
Joined: Thu Oct 30, 2003 9:38 pm

Post by Raziel Anarki »

*Viper* wrote:It crashes with no scripts in the maps behavior lump.
so now that someone else had experienced the same crash i should report it in the bugs forum
User avatar
*Viper*
Posts: 88
Joined: Tue Jul 15, 2003 4:47 pm
Contact:

Post by *Viper* »

Great. :D It's fixed already, too. I was thinking about posting this in there, but now I don't have to :P
Locked

Return to “Editing (Archive)”