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: 5187

PostPosted: Tue Nov 27, 2007 9:13 pm   

[2.13] Multiline room scripts do not work
 
Two bug reports here.

First is that only the first line of a multiline room script is sent to the compiler. This seems to be tied to importing a map from zMud. CMud generates a different format for the script.
Code:
CMud format:
All="#IF (1) {
 #SHOW Error
}"
Code:
zMud format:
All#IF (@MapShow=1) {
config mapshow off
#VAR MapShow 0 {_nodef} {MapCreator}
}



Second is that the default class is not reset when clicking Cancel Script in the error dialog that pops up for the room script. You can get an error dialog to popup if you put a mismatched braces when putting in a script for example
Code:
#IF (1) {
 #SHOW Error
#TELEPORT to the room the entered the script in, then click Cancel Script. Afterwards enter at the command line
Code:
#SHOW %class
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Nov 27, 2007 9:30 pm   
 
Hmm, I'm a bit confused. Are you saying that you entered:
Code:
#IF (1) {
 #SHOW Error
}

into zMUD, and when imported into CMUD it gets displayed as:
Code:
All="#IF (1) {
 #SHOW Error
}"

?? CMUD *does* store the script as a database variable (with "All" being the access key for the default script), but it shouldn't be showing the "All=" in the room script box.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Tue Nov 27, 2007 10:27 pm   
 
I am sorry I was unclear. Enter this as a room script in zMud 7.21
Code:
#IF (1) {
 #SHOW Error
}

Open the map in CMud 2.13 and you will see this as the room script
Code:
#IF (1) {


What I posted was the underlying format when viewing the database with an external program. I bumped into the problem and then found that I could not replicate it by creating a room script in CMud. Since CMud always treated the scripts from my old maps the same I examined the database in Access and found the change in the data structures to be the problem.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Nov 27, 2007 11:01 pm   
 
Yep, this is actually a more general problem. Looks like the new database variables (and string lists) do not like embedded newlines. Normally this isn't a problem since it's hard to get a newline into a string list or database variable. But it caused this problem with multiline scripts. Thanks for clarifying, I'll definitely get this fixed.
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