(4-4-2) error while parsing DECORATE scripts

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Deybar_TECH
Posts: 145
Joined: Wed Dec 26, 2018 3:36 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 7
Graphics Processor: Not Listed
Location: El Alto - La Paz - BOLIVIA
Contact:

(4-4-2) error while parsing DECORATE scripts

Post by Deybar_TECH »

Hello and sorry ... I ran into an error occurring to me from this new (GZDoom v4-4-#) And the problem is that it no longer allows me to redefine existing functions like (Door_Open & ThrustThing, etc… ..)
must_be_a_modifiable_value.wad
Error file
(120.19 KiB) Downloaded 184 times

Code: Select all

 Script error, "must_be_a_modifiable_value.wad:|PHAS=09" line 20:
Expression must be a modifiable value
Script error, "must_be_a_modifiable_value.wad:|PHAS=09" line 40:
Expression must be a modifiable value
Script error, "must_be_a_modifiable_value.wad:|PHAS=09" line 41:
Expression must be a modifiable value

Execution could not continue.

3 errors while parsing DECORATE scripts


For a long time I have been quietly detained in the version (gzd 4-2-0) due to the lack of news. And now that the new (A_StartSound) appeared finally along with the (zmusic.dll) I wanted to upgrade. I ask, Why can these functions no longer be redefined? This is something that can only happen to me since I like that all my codes are colorful and easily remembered with (SLADE: ctrl + space).




I don't know, but if it is no longer possible to redefine these DECORATE action functions, I will have to rename some things. I hope this problem does not touch the names of the flags: (SPAWNFLOAT, MOVEWITHSECTOR, RGF_OBJECTS, etc ...) Because I would have to rename everything. Absolutely everything that exists in my project.

Spoiler: extra files
Accensus
Posts: 2383
Joined: Thu Feb 11, 2016 9:59 am

Re: (4-4-2) error while parsing DECORATE scripts

Post by Accensus »

Image

Those aren't even action functions. And you're trying to call a flag as a function. Plus you're trying to set a value to a line special like it's a variable.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: (4-4-2) error while parsing DECORATE scripts

Post by _mental_ »

Do not name member variables as line specials, and code will work as expected.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: (4-4-2) error while parsing DECORATE scripts

Post by Graf Zahl »

True, but somehow the namespacing broke here, class-local variables should take precedence over global constants.
Post Reply

Return to “Closed Bugs [GZDoom]”