Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
shalimar
GURU


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

PostPosted: Thu Jun 30, 2011 7:27 pm   

#EXECWIN
 
#EXECWIN OOC {#SAY {hi};#SAYADD { there}}

For some reason it doesnt show on one line.

Repeated use shows that the #SAY will append while #SAYADD will not
_________________
Discord: Shalimarwildcat
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Fri Jul 01, 2011 1:45 am   
 
I am sorry. I tried this on a blank session and it worked for me. The only noticeable thing was that "hi" was in the default color and "there" was in low white.
Code:

#EXECWIN %curwin {#SAY {hi};#SAYADD { there}}
_________________
Sic itur ad astra.
Reply with quote
shalimar
GURU


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

PostPosted: Fri Jul 01, 2011 10:14 am   
 
%curwin in a blank session is the main window... even in my session %curwin works

Try sending it to a child window instead and you will see the failure.
_________________
Discord: Shalimarwildcat
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Fri Jul 01, 2011 10:57 am   
 
I also have that problem, and I still think it's a bug, as I mentioned in this thread. From that thread:
Zugg wrote:
It's not #sayadd that is the problem. The problem is you are using the #window command to send the initial text and #sayadd is designed to follow a #say command. For example, this works fine:
Code:
#win ooc
:ooc:#say test
:ooc:#sayadd hi

I assumed he was right, and never bothered to test his code, until now. When paste that code onto my command line and press enter, a new window pops up, and this is displayed in it:
Code:
test
hi

Then I press enter again, and I get this:
Code:
test
hitest
hi

I should have gotten these results:
Code:
First:
testhi

Second:
testhi
testhi


So, I'm going back to what I originally said in that other thread.
Daern wrote:
#sayadd is displaying a carriage return followed by the input. It should display the input followed by a carriage return.
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Sat Jul 02, 2011 1:42 am   
 
I am aware of what %curwin is. I used the predefined variable so that I would not have to create a new window. Also, I still maintain that your code, as shown, works for me. The only thing that was out of the ordinary, imo, is that the part emitted by #SAY was in the default window color and the part emitted by #SAYADD was in low white. I can't make your code fail as you stated.

EDIT: Examine this view.

Here is the code:
Code:

<alias name="test" id="1">
  <value>#EXECWIN %curwin {#SAY {hi};#SAYADD { there}} </value>
</alias>
_________________
Sic itur ad astra.
Reply with quote
shalimar
GURU


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

PostPosted: Sat Jul 02, 2011 2:09 am   
 
The error only shows itself when it is diverted to a window other than the main window.
Using the main window defeats the purpose of using #EXECWIN anyway.
You can't get my code to fail because you haven't used my code.
Try using Zugg's code, it shows the error as well.
_________________
Discord: Shalimarwildcat
Reply with quote
shalimar
GURU


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

PostPosted: Sun Jul 17, 2011 4:31 pm   
 
bump
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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