Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Mon Sep 17, 2007 10:27 am   

[2.03] - Bug: %ansi(xx) in #substitute
 
This is probably already here somewhere, but I lost my net access for a while and there are way too many new posts to wade through trying to find it. I couldn't find anything on the first page anyway.

Sample prompt:
H:3460 M:3934 E:16200 W:18570 B:100% [eb]


#TR {H:(%d) M:(%d)*} {#substitute {H:%1|%2}} {prompt|nocr}
Works as expected, displaying:
H:3460|3934
as my new prompt, but:
#TR {H:(%d) M:(%d)*} {#substitute {H:%ansi(10)%1|%2}} {prompt|nocr}
Displays:
"H:3460"|3934
as my new prompt. Every time I use %ansi in it, "quote chars" get added.

My full prompt substitute trig (that was condensed to display the bug simply) displays:
"""H:3460""|""""3934 [eb] [] 0"|0 19:11:03:796
Which is clearly pretty odd, hehe.
_________________
Athlon 64 3200+
Win XP Pro x64
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Mon Sep 17, 2007 11:03 pm   
 
Confirmed. Even fails with something like

#substitute {%concat("H:",%ansi(10),%1,"|",%2)}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Sep 24, 2007 8:35 pm   
 
Confirmed and added to bug list. Looks like something to do with the new hashed string list processing.
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Tue Sep 25, 2007 12:39 am   
 
Yeah, I think this and [2.03] <send> tags with | in - in #SUBs and [2.03Pro] Pipes in status bar, plus maybe [2.03] Pipes (OR) in trigger patterns are all related to the new hashed string list processing.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net