MUD client in VB... help 
Author Message
 MUD client in VB... help

        If anyone has written a MUD client in Visual Basic, and is willing
to answer some questions, I would really appreciate an e-mail.  My client
runs great on most muds, but a few give it fits.  Also, after about ten
minutes of constant interaction with a mud, the parsing starts slowing
down, and I have no idea what's going on or how to fix it.  If you're

        Thanks in advance.

Rich Allen



Sat, 26 Jan 2002 03:00:00 GMT  
 MUD client in VB... help
I'm sure this is a case of "if you don't know the acronym, you can't help
me", but what does "MUD" stand for?

--
John Tabor
http://members.bellatlantic.net/~jftabor
__________


If anyone has written a MUD client in Visual Basic, and is willing
to answer some questions, I would really appreciate an e-mail.  My client
runs great on most muds, but a few give it fits.  Also, after about ten
minutes of constant interaction with a mud, the parsing starts slowing
down, and I have no idea what's going on or how to fix it.  If you're



Sat, 26 Jan 2002 03:00:00 GMT  
 MUD client in VB... help
*M*ulti - *U*ser *D*ungeon  i.e.  internet text based {*filter*}...

--
* Keith Minkler MCSE
* Digix.net Internet Solutions
* Technical Support Specialist
* http://www.*-*-*.com/


Quote:
> I'm sure this is a case of "if you don't know the acronym, you can't help
> me", but what does "MUD" stand for?

> --
> John Tabor
> http://www.*-*-*.com/ ~jftabor
> __________



> If anyone has written a MUD client in Visual Basic, and is willing
> to answer some questions, I would really appreciate an e-mail.  My client
> runs great on most muds, but a few give it fits.  Also, after about ten
> minutes of constant interaction with a mud, the parsing starts slowing
> down, and I have no idea what's going on or how to fix it.  If you're




Sat, 26 Jan 2002 03:00:00 GMT  
 MUD client in VB... help
Multi-User Dungeon I believe.
text based online roleplaying game



Quote:
> I'm sure this is a case of "if you don't know the acronym, you can't
help
> me", but what does "MUD" stand for?

> --
> John Tabor
> http://members.bellatlantic.net/~jftabor
> __________



> If anyone has written a MUD client in Visual Basic, and is willing
> to answer some questions, I would really appreciate an e-mail.  My
client
> runs great on most muds, but a few give it fits.  Also, after about
ten
> minutes of constant interaction with a mud, the parsing starts slowing
> down, and I have no idea what's going on or how to fix it.  If you're


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


Sat, 26 Jan 2002 03:00:00 GMT  
 MUD client in VB... help

Quote:
> I'm sure this is a case of "if you don't know the acronym, you can't help
> me", but what does "MUD" stand for?

        Yes, it was just such a case and I apologize if this is a breach
of netiquet.  <sheepish grin>  As has been answered already, a MUD is a
text-based game played over the internet, although that may be an over-
simplification.

        The main problem I'm having is that small bits of text are
constantly added to the end of the RichTextBox, and the text is accrued,
the control gradually slows to the point that it's mostly unusable.  You
can clear the RTbox on the fly, and it speeds back up again, so I'm
almost 100% certain the problem lies in that control.  It may also be
memory related however, as I store incoming data in a ByteArray that is
local to the DataArrival event sub of the winsock control.  I have moved
the variable declaration to the general area, with no noticable change,
but I'm still not convinced.

Rich Allen



Sat, 26 Jan 2002 03:00:00 GMT  
 MUD client in VB... help
On a related topic,
How are you adding text to your rich text box??
I'm writing a quick single-player text adventure but with a mud telnet type
interface
im using a rich textbox for the colors, but doing something like..

RichText1.TextRTF = RichText1.TextRTF & "..."

Sets the entire rich text box to the current SelColor, destroying any
formatting information previously in the text box...

Any ideas?

--
Nick


Quote:
> > I'm sure this is a case of "if you don't know the acronym, you can't
help
> > me", but what does "MUD" stand for?

> Yes, it was just such a case and I apologize if this is a breach
> of netiquet.  <sheepish grin>  As has been answered already, a MUD is a
> text-based game played over the internet, although that may be an over-
> simplification.

> The main problem I'm having is that small bits of text are
> constantly added to the end of the RichTextBox, and the text is accrued,
> the control gradually slows to the point that it's mostly unusable.  You
> can clear the RTbox on the fly, and it speeds back up again, so I'm
> almost 100% certain the problem lies in that control.  It may also be
> memory related however, as I store incoming data in a ByteArray that is
> local to the DataArrival event sub of the winsock control.  I have moved
> the variable declaration to the general area, with no noticable change,
> but I'm still not convinced.

> Rich Allen



Sun, 27 Jan 2002 03:00:00 GMT  
 MUD client in VB... help
: The main problem I'm having is that small bits of text are
: constantly added to the end of the RichTextBox, and the text is accrued,
: the control gradually slows to the point that it's mostly unusable.  You
: can clear the RTbox on the fly, and it speeds back up again, so I'm
: almost 100% certain the problem lies in that control.  It may also be
: memory related however, as I store incoming data in a ByteArray that is
: local to the DataArrival event sub of the winsock control.  I have moved
: the variable declaration to the general area, with no noticable change,
: but I'm still not convinced.

Dont save everything to control!
You should only keep some 300-500 lines in the control and use a shadow file
to save the rest.
So if user wants to scroll back over the line where memory ends just take
next 500lines from file and so on....  also you have to demolish the
controls memory every time you want new 500 lines so it wont slow down even
if the  user scrolls it back to the top.
While user scrolls the rtf box the program should automatically re-forward
inputs from mud to
shadow file so it doesn't get messed up when saving/loading shadow.
generally it's better to allways forward inputs first to file.



Sun, 27 Jan 2002 03:00:00 GMT  
 MUD client in VB... help

Quote:
> How are you adding text to your rich text box??

   Try something like this:

        RichText1.SelStart = Len(RichText1.Text)
        RichText1.SelColor = TextColorForFollowingText
        RichText1.BackColor = Etc.
        RichText1.SelFont = "Font"
        ' etc.
        RichText1.SelText = YourString
        RichText1.SelStart = Len(RichText1.Text)
        ' And repeat...

   That's what I've been doing.  Of course, I get less than stellar
results after a few hundred lines have been added to the control...

Rich Allen



Sun, 27 Jan 2002 03:00:00 GMT  
 MUD client in VB... help

Quote:
> Dont save everything to control!
> You should only keep some 300-500 lines in the control and use a shadow file
> to save the rest.

        Aside from the added overhead of deleting text from the top to
make room at the bottom of the 500 line control, how do I write RTF to a
file without first putting it into a RTF control?  How do you keep all of
the SelColor and SelBold and BackColor, etc. straight from one RTF
control to another?
        What I really need is a very fast, non-editable TextBox that
allows text to have different foreground and background colors, and be
displayed in bold or normal.  Is it possible to maybe customize a label
control to add in colors and a scroll bar???  I haven't delved into
customizing controls yet, maybe now's a good time.

Rich Allen



Sun, 27 Jan 2002 03:00:00 GMT  
 MUD client in VB... help
Oh dammed. I didnt thought that your maybe usign those thingies...
My method just works for text only.
You could use your own filetype by using some tags to detect the colors in
the text.
But this lags speed (which we dont want to do) because of slownes of
if then else statements in basic.

I think i cant help you more with these because i dont have played with
RTF-boxes too much.



: Aside from the added overhead of deleting text from the top to
: make room at the bottom of the 500 line control, how do I write RTF to a
: file without first putting it into a RTF control?
: How do you keep all of
: the SelColor and SelBold and BackColor, etc. straight from one RTF
: control to another?
: What I really need is a very fast, non-editable TextBox that
: allows text to have different foreground and background colors, and be
: displayed in bold or normal.  Is it possible to maybe customize a label
: control to add in colors and a scroll bar???  I haven't delved into
: customizing controls yet, maybe now's a good time.
:
: Rich Allen
:



Sun, 27 Jan 2002 03:00:00 GMT  
 
 [ 19 post ]  Go to page: [1] [2]

 Relevant Pages 

1. MUD Client in Visual Basic - source code available

2. ANSI Text Box, Mud Client, IPPort.vbx

3. MUD in VB

4. VB for graphical MUD

5. MUD implementation in VB

6. Getting Text from a MUD

7. mud

8. A MUD in QBasic

9. NEWBIE: my wheels are stuck in the mud

10. Building A Windows Based Mud/Databases/Internet

11. WIndows MUD-Database-SQL-IPDAEMON.VBX

12. Doing DCC (direct client to client) tranfers with a VB program

 

 
Powered by phpBB® Forum Software