Script error, "DECORATE" line 7: Invalid state parameter a_w

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.
User avatar
bagheadspidey
Posts: 1490
Joined: Sat Oct 20, 2007 10:31 pm
Contact:

Re: Script error, "DECORATE" line 7: Invalid state parameter a_w

Post by bagheadspidey »

Here's the keyconf for my NOTH add-on. Original NOTH has only a fist in slot one. My add-on adds a baseball bat and a chainsaw to slot one.

Code: Select all

//key configuration

weaponsection bhs-noth

AddSlotDefault 1 SluggerBat 
AddSlotDefault 1 Chainsaw2 
pressing 1 switches between the three weapons.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: Script error, "DECORATE" line 7: Invalid state parameter a_w

Post by Project Shadowcat »

bagheadspidey wrote:@PDF: what, really? Are you sure? Nothing else in decorate or acs is case sensitive as far as I know, so why would weapons be? I could be wrong, though - I almost always keep stuff case-consistent from habit, even in case-insensitive languages.
Only when do actors get involved does case matter. Learned this the hard way.
User avatar
bagheadspidey
Posts: 1490
Joined: Sat Oct 20, 2007 10:31 pm
Contact:

Re: Script error, "DECORATE" line 7: Invalid state parameter a_w

Post by bagheadspidey »

Project Dark Fox wrote:
bagheadspidey wrote:@PDF: what, really? Are you sure? Nothing else in decorate or acs is case sensitive as far as I know, so why would weapons be? I could be wrong, though - I almost always keep stuff case-consistent from habit, even in case-insensitive languages.
Only when do actors get involved does case matter. Learned this the hard way.
I'm not so sure. After all I can name the actor "FuzzBuster," but "summon fuzzbuster" from console works fine. Well, I hope you are wrong but if you are right I'm sure I'll find out the hard way as well =p
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: Script error, "DECORATE" line 7: Invalid state parameter a_w

Post by Project Shadowcat »

Maybe it doesn't matter in the console but it's usually in DECORATE or ACS that I have the issue. :?
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: Script error, "DECORATE" line 7: Invalid state parameter a_w

Post by XutaWoo »

bagheadspidey wrote:pressing 1 switches between the three weapons.
I know that, that's why I'm trying to achieve.

Putting it in a different weaponslot doesn't do anything, and putting it the first in "startitem" does nothing. You just start with the Gold Wand, like usual.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: Script error, "DECORATE" line 7: Invalid state parameter a_w

Post by Project Shadowcat »

OH. Then there's no error on your part.

]give gravgun

You have sprites for this, right?
Locked

Return to “Editing (Archive)”