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


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Apr 15, 2007 9:11 am   

[1.27] Reformat and Indents
 


In the above example, I used Reformat to "pretty print" the code. However, as you can see, there is a syntax error at line 9, col 3, asking for an argument. This, I believe, is due to the indented #SAY, which was done by the reformat process.

I fixed it by removing the padded spaces, but it may warrant a bug fix in the future. Saves from having to fix it all the time. :)

Charneus

By the way, LOVE the reformat feature - can we get a simply CTRL+Cmd for it like we have CTRL+K for syntax check? Thanks!
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Apr 17, 2007 6:17 pm   
 
Send me the full text of this alias so that I can text it on my system here. The Reformat command has some issues that need to be fixed before I can recommend it for wide-spread use. Once it works more reliably, then I'll probably add a Ctrl-key for a shortcut.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Tue Apr 17, 2007 7:14 pm   
 
This is the entire output in the alias. Should work with copy/paste into a new alias, then reformating, but again, it shows the indented spaces and says it expects an arguement at the beginning of the indents. If this doesn't produce the same problem, let me know, and I probably can send you the package.

Code:
#if {%0} {%0 ~@RB~@ronus ~@RS~@rtats~@W: ~@W%db(@Level_Info_Bonuses_DB, BonusStatsMort)~@C. Str: ~@W%db(@Level_Info_Bonuses_DB, MortStr)~@C. Int: ~@W%db(@Level_Info_Bonuses_DB, MortInt)~@C. Dex: ~@W%db(@Level_Info_Bonuses_DB, MortDex)~@C. Wis: ~@W%db(@Level_Info_Bonuses_DB, MortWis)~@C. Con: ~@W%db(@Level_Info_Bonuses_DB, MortCon)~@C. Luck: ~@W%db(@Level_Info_Bonuses_DB, MortLuc)~@C. ~@W%db(@Level_Info_Bonuses_DB, LevelsMort) ~@CLevels Since ~@W%db(@Level_Info_DB, ResetTime)~@C.~@w} {#say %ansi( grey)-=: %ansi( high, magenta)%db( @Level_Info_DB, LevelsMort) Levels since %db(@Level_Info_DB, ResetTime) %ansi( grey)~:=-;#say;#say %ansi( high, cyan)"             "Bonus Stats:%ansi( high, white)"  "%db(@Level_Info_Bonuses_DB, BonusStatsMort);#say %ansi( high, blue)"             "----------------;#say %ansi( high, green)"             "Strength: %ansi( high, yellow)"    "%db(@Level_Info_Bonuses_DB, MortStr);#say %ansi( high, green)"             "Intelligence: %ansi( high, yellow)%db(@Level_Info_Bonuses_DB, MortInt);#say %ansi( high, green)"             "Dexterity: %ansi( high, yellow)"   "%db(@Level_Info_Bonuses_DB, MortDex);#say %ansi( high, green)"             "Wisdom: %ansi( high, yellow)"      "%db(@Level_Info_Bonuses_DB, MortWis);#say %ansi( high, green)"             "Luck: %ansi( high, yellow)"        "%db(@Level_Info_Bonuses_DB, MortLuc);#say %ansi( high, green)"             "Constitution: %ansi( high, yellow)%db(@Level_Info_Bonuses_DB, MortCon)}


Charneus
Reply with quote
Zugg
MASTER


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

PostPosted: Wed Apr 18, 2007 2:09 am   
 
I've got this working for v1.28 now. Thanks for posting the details.
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