//mabus, forcing telnet MXP on, from here
if(clientTelnetMode(Session.TELNET_MXP))
turnMXPon(true);
//mabus, forcing telnet MXP on, to here
//and
//mabus, forcing telnet MXP on, from here
private void turnMXPon(boolean turnOn)
{
char[] command={(char)TELNET_IAC,(char)TELNET_SB,(char)TELNET_MXP,(char)TELNET_IAC,(char)TELNET_SE};
out.write(command);
out.flush();
}
//mabus, forcing telnet MXP on, to here
if((terminalType.equalsIgnoreCase("ZMUD"))
if(mob.session().clientTelnetMode(Session.TELNET_MXP))
{
mob.setBitmap(CMath.setb(mob.getBitmap(),MOB.ATT_MXP));
StringBuffer mxpText=Resources.getFileResource("text/mxp.txt",true);
if(mxpText!=null)
mob.session().rawPrintln("\033
if(mob.session().clientTelnetMode(Session.TELNET_MXP))
{
mob.setBitmap(CMath.setb(mob.getBitmap(),MOB.ATT_MXP));
StringBuffer mxpText=Resources.getFileResource("text/mxp.txt",true);
if(mxpText!=null)
mob.session().rawPrintln("\033[6z\n\r"+mxpText.toString()+"\n\r");
mob.tell("MXP codes enabled.\n\r");
}[/code]
So it looks like I just need to make an alternate mush.txt, remove the image tags, and modify the StringBuffer based on whether it is MUSHClient.
Life can be easy, sometimes.
if((terminalType.equalsIgnoreCase("ZMUD"))
if(mob.session().clientTelnetMode(Session.TELNET_MXP))
{
mob.setBitmap(CMath.setb(mob.getBitmap(),MOB.ATT_MXP));
StringBuffer mxpText=Resources.getFileResource("text/mxp.txt",true);
if(mxpText!=null)
mob.session().rawPrintln("\033
if(mob.session().clientTelnetMode(Session.TELNET_MXP))
{
mob.setBitmap(CMath.setb(mob.getBitmap(),MOB.ATT_MXP));
StringBuffer mxpText=Resources.getFileResource("text/mxp.txt",true);
if(mxpText!=null)
mob.session().rawPrintln("\033[6z\n\r"+mxpText.toString()+"\n\r");
mob.tell("MXP codes enabled.\n\r");
}[/code]
So it looks like I just need to make an alternate mush.txt, remove the image tags, and modify the StringBuffer based on whether it is MUSHClient.
Life can be easy, sometimes.[/quote]
I knew Java was close to .NET, I've even used Java books to learn concepts (like data structures) and applied them in .NET, but it never occurred to me that I could probably work with CoffeeMUD much easier than one of the C\C++ codebases. =\
It seems to be fairly popular, too, I have a slightly unrelated curiosity question. Is it as "hoggish" (I use the term playfully) to run as a C# console app? By which I mean, in the 10s of megabytes on even a simple console app.
—
V
I am having a problem with CoffeeMUD codebase MXP and MUSHClient. I have asked at the CoffeeMUD Yahoo Group, but no answers there as yet. I believe Bo followed the MXP protocols, and I know that CoffeeMUD MXP works with ZMUD and a couple other MXP clients. Answers there so far place blame squarely on the client, but if this is so I would still like to modify my code so that players could get use of MXP with the client automatically (rather then go through any hoops).
I also know there are other games that have no problem with MUSHClient's MXP, so I figured it would be good to ask here before I went to the Gammon site and asked.
Mainly:
1) How can I detect that MUSHClient is the client?
2) How can I then have the server send the proper commands, or modify the MXP, so that MUSHClient can automatically use the MXP?
Any help appreciated.