TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

GMCP Support

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help
View previous topic :: View next topic  
Author Message
Markar



Joined: 25 Dec 2010
Posts: 17

PostPosted: Fri Aug 12, 2016 2:30 pm    Post subject: GMCP Support Reply with quote

I have another question posted under General related to GMCP and IRE muds, but I figured I'd post here more specific questions about using GMCP in scripts.

I've only found information in one post by Scandum for an automapper, does anyone have resources for how to implement GMCP handling in tintin++? It seems like #config debug telnet should be showing the GMCP messages that I'm receiving, but it only shows RCVD IAC EOR on prompt, and nothing else.

It seems like I should be receiving events that include GMCP as well, is there something I'm missing in configuration? I included this code from Scandum's post:


Code:

#format IAC %a 255
#format DONT %a 254
#format DO %a 253
#format WONT %a 252
#format WILL %a 251
#format SB %a 250
#format SE %a 240

#format GMCP %a 201

#nop Turn telnet debug off once everything works as it's spammy.

#config {debug telnet} {on}

#var CLIENT_NAME TinTin++
#var CLIENT_VERSION 2.00.3

#event {PROGRAM START}
{
#var CLIENT_NAME %0;
#var CLIENT_VERSION %1
}


but that doesn't seem to be doing the trick. I know that post is about 6 years old, so I'm not even sure if GMCP is supported anymore considering how little information there is?
Back to top
View user's profile Send private message
vision



Joined: 01 Feb 2014
Posts: 32

PostPosted: Wed Aug 17, 2016 12:29 am    Post subject: Reply with quote

Here is what I use:

[code]
#class gmcp kill;
#class gmcp open;

#format IAC %a 255
#format DONT %a 254
#format DO %a 253
#format WONT %a 252
#format WILL %a 251
#format SB %a 250
#format SE %a 240

#format GMCP %a 201


#ALIAS {debug {on|off}}
{
#if {"%1" == "on"}
{
#variable debug 1
};
#else
{
#variable debug 0
};
#nop;
}
{5}


#NOP This and the other IAC SB lines are specific to how he mud is sending data;
#EVENT {IAC SB GMCP char.vitals IAC SE}
{
#variable GMCP[CHAR][VITALS] {%0};
#if {$debug}
{
#showme %1
};
#nop;
}

#EVENT {IAC SB GMCP char.affects IAC SE}
{
#variable GMCP[CHAR][AFFECTS] {%0};
#if {$debug}
{
#showme %1
};
#nop;
}

#EVENT {IAC SB GMCP char.stats IAC SE}
{
#variable GMCP[CHAR][STATS] {%0};
#if {$debug}
{
#showme %1
};
#nop;
}

#EVENT {IAC WILL GMCP}
{
#send {$IAC$DO$GMCP\};
#send {$IAC$SB$GMCP Core.Hello { "client": "$CLIENT_NAME", "version": "$CLIENT_VERSION" } $IAC$SE\};
#send {$IAC$SB$GMCP Core.Supports.Set [ "Room 1", "Char 1", "Core 1", "Comm 1", "Debug 1", "Group 1" ] $IAC$SE\}
}

#EVENT {PROGRAM START}
{
#variable CLIENT_NAME %0;
#variable CLIENT_VERSION %1;
}

#class gmcp close;
[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group