ACC Compiling non-existent script?

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
NickPerrin
Posts: 47
Joined: Thu Apr 12, 2012 1:13 pm

ACC Compiling non-existent script?

Post by NickPerrin »

Hey!

So I have some ACS scripts attached to new keys in KEYCONF. Everything worked great. I have ACC set up for context menu use within SLADE.

I changed a few things in my ACS text file, then compiled again for the updates. However, this time, it didn't go so smooth - I went in game, pressed the button that executes a script, and "Unknown command: Reloader" prints.

...despite there being NOTHING in ANY of my files having the label "Reloader" on it.

It seems that the compiler is not actually compiling my text file as it did properly merely minutes before, but a different one from elsewhere that contains the "reloader" command (perhaps the Brutal Doom script by that name that I was perusing earlier)

So... how the eff do I make ACC do what it's told again? Anyone else had this issue?
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: ACC Compiling non-existent script?

Post by Xaser »

The script is probably fine. Your key is just bound to the wrong command. That's the message ZDoom gives when you try and use a non-existent console command. Rebind it to your script alias and it should work again.
User avatar
NickPerrin
Posts: 47
Joined: Thu Apr 12, 2012 1:13 pm

Re: ACC Compiling non-existent script?

Post by NickPerrin »

Xaser wrote:The script is probably fine. Your key is just bound to the wrong command. That's the message ZDoom gives when you try and use a non-existent console command. Rebind it to your script alias and it should work again.
So a key can be bound to a command even if that command ceases to exist? Interesting. Will test to try and replicate this error.

EDIT: It all magically started working again, but I have no idea why. I can't replicate the error. How does a label called "reloader" enter into the equation when there is nothing called "reloader" in any of my decorate, acs, or other files?
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: ACC Compiling non-existent script?

Post by Xaser »

"Reloader" isn't a label. It's the actual command your key is bound to and is attempting to execute. Drop down the console, type "reloader", and you'll get the same message. The reason the resulting error is "Unknown command: Reloader" is indeed because it doesn't exist in decorate, ACS, or anywhere else in your wad. Else it wouldn't be unknown. ;)
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: ACC Compiling non-existent script?

Post by wildweasel »

This is an issue I tend to see if I recycle KEYCONF aliases from another project; it's down to the KeySection stuff, I think. The problem actually lies in your INI file in the key sections for specific WAD files.
User avatar
NickPerrin
Posts: 47
Joined: Thu Apr 12, 2012 1:13 pm

Re: ACC Compiling non-existent script?

Post by NickPerrin »

wildweasel wrote:The problem actually lies in your INI file in the key sections for specific WAD files.
Indeed, looks like you guys got it. "reloader" is sitting in my INI file, perhaps from playing or tinkering with Brutal Doom. And it was bound to the same key as my keyconf->script, overriding my new command.

Thanks!
Locked

Return to “Editing (Archive)”