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
rafal
Newbie


Joined: 26 Jun 2007
Posts: 7

PostPosted: Sun Jul 15, 2007 1:09 pm   

[1.34] Scrolling main window affects #psub
 
Hi.
This is a difficult problem to explain so i'll use some printscreens to show it.
(the language of this MUD isn't important)

Picture 1



One simple command, gives 3 lines of txt. Notice that triggers are off and the scroll bar is at the bottom.

Picture 2



The same command, triggers are on. One #Psub trigger adds some txt at the end of the line
and some space between lines. Scroll bar is at the bottom.

Picture 3



Scrollbar is NOT at the bottom, but it changes it's possition by itself. The display of the txt is unaffected
But take a look at the aditional txt added by #psub. It is now all messed up.


It comes back to normal when i do #clr so it must be the weird behaviour of the scroll bar.
I hope you'll understand my problem, and you'll find a better solution than #clr.

Sorry for my English
Cheers
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jul 16, 2007 5:32 pm   
 
Can you post the exact PSUB trigger that you are using? Also, I assume the last screen shot is showing the *live* text and that the scrollback buffer is still visible on the top part of the window?
Reply with quote
rafal
Newbie


Joined: 26 Jun 2007
Posts: 7

PostPosted: Mon Jul 16, 2007 9:43 pm   
 
Pattern:

Code:
^{|> }($kto:*) jest ({w swietnej kondycji|w dobrym stanie|lekko ranna|lekko ranny|lekko ranne|ranny|ranna|ranne|w zlej kondycji|ciezko ranny|ciezko ranna|ciezko ranne|ledwo zywy|ledwo zywa|ledwo zywe})(.)$


Script is complex:

Code:
$kto=@oczysc($kto)
#if (%ismember($kto,@druzynaM))
{
#psub { CTRL+%ismember($kto,@druzynaM) } %x3
#sa
}
  {
 
  #if (%ismember($kto,@bindlista)) {}
     {
     #if (%numitems(@bindlista)<12)
       {
        #additem bindlista $kto
       }
       {
          #if (@wskbind<12)
          {
          bindlista= %replaceitem($kto,@wskbind,@bindlista)
          #add wskbind 1
          }
          {
          #va wskbind 2
          bindlista= %replaceitem($kto,@wskbind,@bindlista)
          #add wskbind 1
         
          }
        }
    }
 #psub { (CTRL+)F %ismember($kto,@bindlista) } %x3
 #sa
  }
#capture kondycje
#pcol %item(@kondycjekolor,%ismember(%2,@kondycje)) %x2



Your assumtions are correct. The buffer doesn't change when the scroll bar changes it's position.
But the most interesting thing is that this change in scrolling also happens with the triggers switch off.
#psub works fine when the scroll bar is in it's position.
Reply with quote
rafal
Newbie


Joined: 26 Jun 2007
Posts: 7

PostPosted: Sun Jul 22, 2007 8:08 pm   
 
It didn't help to solve this problem, did it?
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jul 23, 2007 4:52 pm   
 
It's on the bug list, but I working on some new features in CMUD right now and won't be doing bug fixes for another week or so. Also, I have some other rather high priority bugs to fix first. So, it's on the bug list, but I can't tell you which version it will be fixed in.
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