Since Alias no longer works, is there an alternative?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
Cryomundus
Posts: 497
Joined: Thu Oct 31, 2013 12:33 pm

Since Alias no longer works, is there an alternative?

Post by Cryomundus »

Due to the recent update in 3.2.4, it seems using Alias in a KEYCONF lump to execute an acs script no longer works. Is there an alternative to this or no?
_mental_
 
 
Posts: 3819
Joined: Sun Aug 07, 2011 4:32 am

Re: Since Alias no longer works, is there an alternative?

Post by _mental_ »

Please post a runnable sample.
User avatar
Rachael
Posts: 13793
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: Since Alias no longer works, is there an alternative?

Post by Rachael »

Keyconf was not touched and all mods that I've used that use it work fine.

As _mental_ said we need an example to figure out what's wrong.
User avatar
Cryomundus
Posts: 497
Joined: Thu Oct 31, 2013 12:33 pm

Re: Since Alias no longer works, is there an alternative?

Post by Cryomundus »

Ah, okay, gimme a bit, just woke up, I'll whip something up later.
User avatar
Cryomundus
Posts: 497
Joined: Thu Oct 31, 2013 12:33 pm

Re: Since Alias no longer works, is there an alternative?

Post by Cryomundus »

Apologies for the double post, but, I've made the example.

When you're using gzdoom 3.2.3, using this file I've uploaded, if you run it in doom2.wad, start a new game, and in console type "give all", you'll be given 5 each of a carryable sphere item, you should see them in the inventory bar. If you go into the options menu, on the bottom there will be a new option called "Sphere Carry Options", and there will be a set of 4 options, the first one removes all of the spheres from your inventory, and the others remove the respective types. if you click one, and go out of the menu to the normal game, you'll get 3 things logged to console, "Removed CarrySouls", "Removed CarryInvulns", and "Removed CarryBlurs", and if you try and look in your inventory, all of the carryable spheres should be gone.

If you try and do the same thing in gzdoom 3.2.4, you'll be met with

Code: Select all

Invalid Command For Menudef/Zscript: RemoveCarrySpheres
Invalid Command For Menudef/Zscript: RemoveCarrySoul
Invalid Command For Menudef/Zscript: RemoveCarryInvuln
Invalid Command For Menudef/Zscript: RemoveCarryBlur
And all the items will still be in your inventory bar.
You do not have the required permissions to view the files attached to this post.
User avatar
Rachael
Posts: 13793
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: Since Alias no longer works, is there an alternative?

Post by Rachael »

Code: Select all

//test
Alias RemoveCarrySoul			"pukename RemoveAllCarrySoul"
Alias RemoveCarryInvuln	 		"pukename RemoveAllCarryInvuln"
Alias RemoveCarryBlur			"pukename RemoveAllCarryBlur"


Alias RemoveCarrySpheres "RemoveCarrySet"


Alias RemoveCarrySet "pukename RemoveAllCarrySoul; pukename RemoveAllCarryInvuln; pukename RemoveAllCarryBlur"
Unfortunately, with the menudef code having to be secured, calling aliases from the menu will no longer work. (You should have been specific that it was from the menu)

What will work is using the actual "pukename" commands.

"pukename", "puke", "event", "netevent", and "special" are all valid from MENUDEF, and they will work.
User avatar
Cryomundus
Posts: 497
Joined: Thu Oct 31, 2013 12:33 pm

Re: Since Alias no longer works, is there an alternative?

Post by Cryomundus »

Huh, well alright, I'll do that then, thanks!

Return to “Scripting”