ACS_NamedExecuteWithResult error in DECORATE

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
Nash
 
 
Posts: 17500
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

ACS_NamedExecuteWithResult error in DECORATE

Post by Nash »

Code: Select all

Actor Z_SunScanner : ArtiEgg
{    
    Inventory.Amount 1
    Inventory.MaxAmount 1
    +INVENTORY.QUIET
    +INVENTORY.UNDROPPABLE
    -INVENTORY.INVBAR
    +INVENTORY.HUBPOWER
    +INVENTORY.PERSISTENTPOWER
    -INVENTORY.PICKUPFLASH
    States
    {
        Use:
            TNT1 A 0 A_FireBullets(ACS_NamedExecuteWithResult("DeadEndScript_CalculateHorizontalSunHitscan") - angle + 180, ACS_NamedExecuteWithResult("DeadEndScript_CalculateVerticalSunHitscan"), 2, 0, "Z_SunScannerPuff", FBF_NORANDOM | FBF_EXPLICITANGLE | FBF_NOFLASH | FBF_NOPITCH, 0)
            //TNT1 A 0 A_FireCustomMissile("PlasmaBall", ACS_NamedExecuteWithResult("DeadEndScript_CalculateHorizontalSunHitscan") - angle + 180, 0, 0, 0, 0, ACS_NamedExecuteWithResult("DeadEndScript_CalculateVerticalSunHitscan") + pitch)
            stop
    }
}
 

Code: Select all

Actor Z_SunScannerPuff : BulletPuff
{
    +NOGRAVITY
    +NODAMAGETHRUST
    -ALLOWPARTICLES
    -RANDOMIZE
    RenderStyle None
    Alpha 1.0
    VSpeed 0
    Mass 0x7FFFFFFF
    +PUFFONActorS
    +PUFFGETSOWNER
    +ALWAYSPUFF
    +BLOODLESSIMPACT
    +DONTSPLASH
    +NOTIMEFREEZE
    +SOLID
    Radius 4
    Height 8
    States
    {
        Spawn:
            stop
        Crash:
            TNT1 A 1 Thing_ChangeTID(0, ACS_NamedExecuteWithResult("DeadEndScript_GetSunScannerTID", 0))
            BON1 A 1 bright ACS_NamedExecuteAlways("DeadEndScript_DrawSunGlareFlat", 0)
            TNT1 A 1
            stop
    }
}
 
Execution could not continue.

Script error, ":actors/player.txt" line 154:
Unexpected token string constant "DeadEndScript_CalculateHorizontalSunHitscan"
Pretty sure I'm using it correctly.
User avatar
Nash
 
 
Posts: 17500
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: ACS_NamedExecuteWithResult error in DECORATE

Post by Nash »

Attached a simple example.
Attachments
heh.zip
(1.37 KiB) Downloaded 28 times
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: ACS_NamedExecuteWithResult error in DECORATE

Post by Graf Zahl »

Pretty sure that kind of use has not been implemented.
User avatar
Nash
 
 
Posts: 17500
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: ACS_NamedExecuteWithResult error in DECORATE

Post by Nash »

I wouldn't know... the unnamed implementation from before worked flawlessly. :D Hope Randy implements this.
User avatar
InsanityBringer
Posts: 3392
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: ACS_NamedExecuteWithResult error in DECORATE

Post by InsanityBringer »

The changelog seems to imply that this should be possible, though.
User avatar
Nash
 
 
Posts: 17500
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: ACS_NamedExecuteWithResult error in DECORATE

Post by Nash »

Everything else works except ACS_NamedExecuteWithResult.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: ACS_NamedExecuteWithResult error in DECORATE

Post by Graf Zahl »

InsanityBringer wrote:The changelog seems to imply that this should be possible, though.

Action functions and expressions are 2 entirely different things.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: ACS_NamedExecuteWithResult error in DECORATE

Post by randi »

And something I had not even considered...

ACS_NamedExecuteWithResult will now work in DECORATE expressions. Since this is a pretty long and unwieldy name, you can also use CallACS. It is the same thing as ACS_NamedExecuteWithResult, but without the long name.
Post Reply

Return to “Closed Bugs [GZDoom]”