ACS error with Lasting Light mod

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

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!)
Post Reply
User avatar
Hidden Hands
Posts: 1053
Joined: Tue Sep 20, 2016 8:11 pm
Location: London, England
Contact:

ACS error with Lasting Light mod

Post by Hidden Hands »

Not directly related to my project, but I was testing out Lasting Light with one of my maps. My custom map contains a lot of ACS functions, such as an ENTER message, "print" text functions when checking shelves etc. When loaded with Lasting Light, which I was doing as a project to see what can and cannot work with my custom game, some strange problems happen.

For one, the "shock" images that pop up when monsters are near are no longer working. Also, the footsteps don't play anymore. Why is this happening? Is there a fix for it?

Thanks in advance.
Jarewill
 
 
Posts: 1853
Joined: Sun Jul 21, 2019 8:54 am

Re: ACS error with Lasting Light mod

Post by Jarewill »

I haven't seen Lasting Light's scripts, but it might be possible that the mod's script doesn't have a #library defined.
I've had issues with my own mods breaking with maps that have ACS scripts, because they lacked a defined #library.

#library is defined like this:

Code: Select all

#library "NAME"  
It must be the first thing defined, above #include "zcommon.acs".
Post Reply

Return to “Scripting”