Page 1 of 1
Since Alias no longer works, is there an alternative?
Posted: Sun Dec 24, 2017 12:51 am
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?
Re: Since Alias no longer works, is there an alternative?
Posted: Sun Dec 24, 2017 3:17 am
by _mental_
Please post a runnable sample.
Re: Since Alias no longer works, is there an alternative?
Posted: Sun Dec 24, 2017 3:22 am
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.
Re: Since Alias no longer works, is there an alternative?
Posted: Sun Dec 24, 2017 9:44 am
by Cryomundus
Ah, okay, gimme a bit, just woke up, I'll whip something up later.
Re: Since Alias no longer works, is there an alternative?
Posted: Sun Dec 24, 2017 11:49 am
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.
Re: Since Alias no longer works, is there an alternative?
Posted: Sun Dec 24, 2017 12:39 pm
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.
Re: Since Alias no longer works, is there an alternative?
Posted: Sun Dec 24, 2017 1:03 pm
by Cryomundus
Huh, well alright, I'll do that then, thanks!