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


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Sat Jun 19, 2010 10:52 pm   

[3.20] BUG: making a stringlist in the Package Editor
 
Creating stringlists using code seems to work great. However:

In a blank session:
Open the Package Editor
Create a new variable
Make it a type stringlist
Add five or six values to the variable
Click Save
Now, click to another item and back, or display the value of the variable

You will see that only the last value, or possibly a few values, exist in the variable. The other values are blank.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4790
Location: Pensacola, FL, USA

PostPosted: Sun Jun 20, 2010 5:06 am   
 
On a similar note, you can no longer use the down arrow to make a new member of a string list.
You have to click save or the plus to make a new, empty line appear.
_________________
Discord server
Reply with quote
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Sun Jun 20, 2010 7:39 am   
 
Should still be able to hit enter to create a new item, yeah?
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Sun Jun 20, 2010 7:15 pm   
 
Was just getting ready to post on this. I made the mistake of trying to add a new trigger to a stringlist of triggers and the same thing happened. The value I added vanished and it left a blank row so my trigger was firing on every line received from the MUD. I wasn't able to add a new item through the editor at all.
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Sun Jun 20, 2010 8:18 pm   
 
By the way, this is a major problem with data integrity. I've lost some data already. I have a backup, but it is still a major problem.
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Sun Jun 20, 2010 8:26 pm   
 
Here is an example of this problem. I opened an untitled session and created a string list variable. I then added the following items:

This is one string\.
This is a second string\.
This is a third string\.
This is a fourth string\.

I then clicked save and click on the untitled window and then back to the variable in tree view and the following is what it showed was saved.
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <var name="myStringList" type="StringList" copy="yes">
    <value>This is a fourth string\.|||</value>
    <json>["This is a fourth string\.",null,null,null]</json>
  </var>
</cmud>


As you can see, three of the items were replaced with null values and the data was lost to oblivion.
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jun 21, 2010 4:42 pm   
 
Confirmed and added to bug list. I probably won't release a new update till the end of the week, so just avoid using the Settings Editor to edit your string lists for now.
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