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
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Jan 27, 2008 9:44 pm   

[2.18] PE String List display 255 byte limit corrupts variable
 
The display control for string lists, and presumably records, has a 255 byte limit. When displaying a list with a larger item size then making any changes it causes the items to be come truncated at this limit.

Procedure
1. Launch CMud
2. Close Sessions window (ESC)
3. Enter at the command line
Code:
#VAR a {%concat(%repeat("a",500),"|",%repeat("b",500))};#SHOW %len(@a)

4. Open Package Editor (CTRL-G)
5. Change the type of the variable 'a' to string literal
You will immediately see the contents of the variable is quite a bit smaller then it should be.
6. Click Save changes
7. Enter at the command line
Code:
#SHOW %len(@a)

Size will display as 511, 255 per item * 2 items + 1 pipe

You may select a different type in step 5 to receive the same results.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Jan 30, 2008 5:35 am   
 
Confirmed. This occurs even if you switch to literal, switch back to AutoType and save. So it would seem that it's the switch String literal that's causing the truncation.
_________________
Asati di tempari!
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