KEYCONF alias aren't working

Moderator: GZDoom Developers

Post Reply
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

[2.1.6] KEYCONF alias aren't working

Post by Cutmanmike »

http://gothic.34sp.com/pub/doomwads/zctc.zip

In ctc, there's an alias set up to puke a cript which changes the new "score limit".

Code: Select all

alias winlimit "puke 399"
That's what's in the lump. However, when you type winlimit on the console followed by a number it always sets it to 0. Oddly enough, typing "puke 399" followed by a number on the console WILL work and change the winlimit.

ACS:

Code: Select all

script 399 (int max) net { // Change the winning score
if(ActivatorTID()==1000){
	WinningScore = max;
	PrintBold(s:"ScoreLimit set to ", i:max);}
	if(ActivatorTID()>1000){
	Print(s:"Only the server creator can change the win limit!");
	}
}
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Aliases replace entire console commands so parameters don't get forwarded. This isn't a bug but more a lack of feature.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

According to Cutty this worked before.

Even if this is however a feature request, does it not make sense to be able to do this for reasons similar to what is being done in CTC?

Perhaps even having something like

alias winlimit "puke 399 %1"

and then the parameter could be inserted where the %1 is.

Of course, that just seems more complicated for no real reason. :P
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

This has worked before, and I can't fathom why it isn't working now.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Maybe related to the 'echo' fix... :?:
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Cutmanmike wrote:This has worked before
When? I don't recall ever writing code to pass parameters to aliases.
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

I can't recall, but it was way back in the 63a stages surely.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

If it worked then it was a fluke and not meant to work.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Graf Zahl wrote:Maybe related to the 'echo' fix... :?:
That just fixed a bug in the word wrapper that counted the trailing '\0' in the last line as part of the string, so the notify text manager couldn't append text to it successfully.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

OK, then this is officially a feature request.

It allows the user to have to remember to use the command "winlimit X" instead of having to remember "puke 399 X".
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Done.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Thank you sir.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”