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
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Sat Jan 30, 2010 8:11 am   

[3.13] MXP Prompt Trigger with %mxp.data irregularity
 
In Achaea there are two different prompts, one when you aren't blacked out and the other when you are. In the normal case, %mxp.data shows the text just fine. When I'm blacked out and see only a "-" prompt something strange happens and what I see in %mxp.data seems incorrect.

This is what I get from Achaea:
Code:
<PROMPT>-<ESC>[4z</PROMPT>


The variable %0 is equal to "-", as is expected.

However, the variable %mxp.data has the value of "-9223372036854775807".

I can't account for where this large integer comes from.
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Feb 01, 2010 6:42 pm   
 
I think CMUD is trying to apply the "auto type" to the variable and is treating "-" as some uninitialized integer value. Try using %string(%mxp.data) and see what it displays.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Tue Feb 02, 2010 3:18 am   
 
%string(%mxp.data) still displays the same thing, "-9223372036854775807".
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Sat Feb 06, 2010 3:20 pm   
 
Is this something I should I check to see if this was fixed in 3.14? I didn't specifically see anything about it mentioned in your change log, so I was thinking no, but thought I might ask.
Reply with quote
Zugg
MASTER


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

PostPosted: Sat Feb 06, 2010 5:58 pm   
 
I didn't get time to fix this one, so if it works in 3.14 I'd be surprised.
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