Moderator: GZDoom Developers
#include "zcommon.acs"
#library "nope"
#include "zcommon.acs"
#include "commonfuncs.h"
#include "mathFuncs.h"
#include "miscFuncs.h"
#library "CHACS"
Hege Cactus wrote:Well shit I didn't know this caused trouble
The script is not by me, its made by scroton, its basicly a projectile interception that adds cyberdemon and baron to have a interception/predict where to shoot the thing, it didnt seem to cause any trouble earlier, I was instructed to add to the same main file incase I had to add other scripts (I had to add some level feels, but they are like super basic), and even then it didn't seem to cause issues with normal zdooms.
I'm going to probably have to contact him about it or just remove it from the mod, tho it would be a shame to eliminate it cause the interception adds quite a nice bit of life to normal cybie fight and the barons/HKs.
I'm honestly not good with ACS myself and I'm still learning so yeah so I dont really know much on it.
Cryomundus wrote:Hege Cactus wrote:Well shit I didn't know this caused trouble
The script is not by me, its made by scroton, its basicly a projectile interception that adds cyberdemon and baron to have a interception/predict where to shoot the thing, it didnt seem to cause any trouble earlier, I was instructed to add to the same main file incase I had to add other scripts (I had to add some level feels, but they are like super basic), and even then it didn't seem to cause issues with normal zdooms.
I'm going to probably have to contact him about it or just remove it from the mod, tho it would be a shame to eliminate it cause the interception adds quite a nice bit of life to normal cybie fight and the barons/HKs.
I'm honestly not good with ACS myself and I'm still learning so yeah so I dont really know much on it.
I'm also a little curious as to how the acs file was actually compiled (as in what version of acc was used), because I can't actually compile it myself with the acc compiler provided on the zdoom site. It literally shouldn't be able to compile but it somehow was?
I mean, did you get the compiled version from scroton or did you manage to compile it yourself? Not being mean, just honestly curious, cuz this weird and fascinating, I meanm it's like when one of my cs projects decided not to work at all, but if I deleted the old file and paste it back it worked again. Maybe permission error? Still have no idea why it did what it did.
Graf Zahl wrote:Ok, I can't track this down but I have a suspicion. Here's the script's first few lines:
- Code: Select all • Expand view
#include "zcommon.acs"
#include "commonfuncs.h"
#include "mathFuncs.h"
#include "miscFuncs.h"
#library "CHACS"
Looks ok so far, right?
But the includes contain actual code, so anything in there does not tag strings properly for the library which can trigger all sorts of undefined behavior.
Blue Shadow wrote:Is that why it's said that #library should be the first line in the file, even before any #includes?
edward850 wrote:Yes, otherwise all strings before it won't be phrased in the library. It is technically possible for a script to have multiple sets of strings (although I'm unsure how far ACC will take that)
#include "zcommon.acs"
#library "CHACS"
#include "commonfuncs.h"
#include "mathFuncs.h"
#include "miscFuncs.h"
Graf Zahl wrote:That mod is a mess anyway. Endless errors upon start, someone really needs to clean up.
Graf Zahl wrote:Normally ACC should throw an error for this mistake, so I'm leaving the report open.
Cryomundus wrote:Honestly, I'm not even sure how the acs was even compiled in the first place, as I can't actually compile the source file myself in SLADE.
Cryomundus wrote:I'm also a little curious as to how the acs file was actually compiled (as in what version of acc was used), because I can't actually compile it myself with the acc compiler provided on the zdoom site. It literally shouldn't be able to compile but it somehow was?
Cryomundus wrote: Heck, I'm not even sure why the acs was even needed in the first place. It doesn't seem to do anything particularly special.
I mean, it seems he wanted them to lob a cyb missile or something. Heck, he just make a custom decorate one, it'd be far easier and simpler. I get referencing is useful, but not when it makes a massive, unwieldy mess of code.
edit: by massive, unweildy mess, I mean the acs. I actually can't tell what the purpose of it is. It's also broken. And weird.
Hege Cactus wrote:I'm going to probably have to contact him about it or just remove it from the mod, tho it would be a shame to eliminate it cause the interception adds quite a nice bit of life to normal cybie fight and the barons/HKs.
I'm honestly not good with ACS myself and I'm still learning so yeah so I dont really know much on it.
#include "zcommon.acs"
#include "commonfuncs.h"
#include "mathFuncs.h"
#include "miscFuncs.h"
#library "CHACS"
#include "zcommon.acs"
#library "CHACS"
#include "commonfuncs.h"
#include "mathFuncs.h"
#include "miscFuncs.h"
Users browsing this forum: No registered users and 2 guests