Forum Links 

Click to return to main page
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile  Log in to check your private messagesLog in to check your private messages    Log inLog in 
 Current Top Rated Killers 
 Next Event   Voting Links 


The event "Recovering the Lost Arcane Relics" is underway, and ends in 3 days, 16 hours.

tt++ msdp room_map

 
Post new topic   Reply to topic    Abandoned Realms Forum Index -> Newbie Q/A
View previous topic :: View next topic  
Author Message
goofy



Joined: 09 Nov 2006
Posts: 54
Location: web

PostPosted: Mon Nov 24, 2014 1:24 am    Post subject: tt++ msdp room_map

I am trying to get the room_map into tt++ using msdp

here is a link to my progress:

http://tintin.sourceforge.net/board/viewtopic.php?p=8882&sid=2611b8eb60538490f12cc94e0f2153dc#8882

the question is how to get the map appearing correctly.

here is screen shot of what it looks like now:



thank you all for implementing msdp for us,
the new webclient is great,
it has certainly inspired me to use msdp.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
 
0 0 0
Davairus
Implementor


Joined: 16 Jan 2004
Posts: 10339
Location: 0x0000

PostPosted: Mon Nov 24, 2014 2:17 am    Post subject:

read help color code, then do some find replaces?
Back to top
View user's profile Send private message Send e-mail
 
0 0 0
goofy



Joined: 09 Nov 2006
Posts: 54
Location: web

PostPosted: Mon Nov 24, 2014 8:42 am    Post subject:

A simple #substitution did the trick.

Code:
#sub {`1}  {<018>}
#sub {`2}  {<028>}
#sub {`3}  {<038>}
#sub {`4}  {<048>}
#sub {`5}  {<058>}
#sub {`6}  {<068>}
#sub {`7}  {<eee>}
#sub {`8}  {<ccc>}
#sub {`!}  {<118>}
#sub {`@}  {<128>}
#sub {`#}  {<138>}
#sub {`\$} {<148>}
#sub {`%}  {<158>}
#sub {`^}  {<168>}
#sub {`&}  {<178>}
#sub {``}  {}


thank you sir.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
 
0 0 0
Davairus
Implementor


Joined: 16 Jan 2004
Posts: 10339
Location: 0x0000

PostPosted: Mon Nov 24, 2014 5:41 pm    Post subject:

Cool. Post us some more screenshots when youre done with it. This is exciting stuff to see.
Back to top
View user's profile Send private message Send e-mail
 
0 0 0
goofy



Joined: 09 Nov 2006
Posts: 54
Location: web

PostPosted: Tue Nov 25, 2014 10:47 pm    Post subject:

Here is the complete script.

I will present you with a screen shot as well soon as possible.

to get this to work for you using linux:
1. Save to a file called msdp.tt
2. Replace '/home/ghost/ARTT/log/left_bottom.log' with desired log file
3. #read msdp.tt and #session into mud
4. do this command after you sign in your char 'msdp_report'


Code:
#nop msdp.tt

#class msdp open

#nop    format dem
#nop    **********
#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 MSDP %a  69

#format VAR  %a  01
#format VAL  %a  02

#var    echo_event off

#nop    which ones?
#nop    ***********
#var REPORTABLE_VARIABLES {
    {ROOM_MAP};
    {HEALTH};
    {HEALTH_MAX};
    {MANA};
    {MANA_MAX};
    {MOVE};
    {MOVE_MAX};
    {EXP_TNL};
    {EXP_TNL_MAX};
    {MONEY};
    {EXITS};
    {WORLD_TIME};
    }

#nop Turn telnet debug off once everything works as it's spammy.
#nop ***********************************************************
#config {debug telnet} {off}

#event {IAC WILL MSDP} {

    #send {$IAC$DO$MSDP\};

    #if { "$echo_event" == "on" } {
        #echo {<068>#event {IAC WILL MSDP}   EVENT #1<088>};
        };
    }

#event {IAC SB MSDP} {

    #nop    Save all variables with an MSDP_ prefix.;
    #nop    ****************************************;

    #var {MSDP_%0} {%1};

    #replace {MSDP_ROOM_MAP} {`1}  {<018>};
    #replace {MSDP_ROOM_MAP} {`2}  {<028>};
    #replace {MSDP_ROOM_MAP} {`3}  {<038>};
    #replace {MSDP_ROOM_MAP} {`4}  {<048>};
    #replace {MSDP_ROOM_MAP} {`5}  {<058>};
    #replace {MSDP_ROOM_MAP} {`6}  {<068>};
    #replace {MSDP_ROOM_MAP} {`7}  {<eee>};
    #replace {MSDP_ROOM_MAP} {`8}  {<ccc>};
    #replace {MSDP_ROOM_MAP} {`!}  {<118>};
    #replace {MSDP_ROOM_MAP} {`@}  {<128>};
    #replace {MSDP_ROOM_MAP} {`#}  {<138>};
    #replace {MSDP_ROOM_MAP} {`\$} {<148>};
    #replace {MSDP_ROOM_MAP} {`%}  {<158>};
    #replace {MSDP_ROOM_MAP} {`^}  {<168>};
    #replace {MSDP_ROOM_MAP} {`&}  {<178>};
    #replace {MSDP_ROOM_MAP} {``}  {};

    #line log {/home/ghost/ARTT/log/left_bottom.log} {$MSDP_ROOM_MAP};

    #if { "$echo_event" == "on" } {
        #echo {<068>#event {IAC SB MSDP}          EVENT #2<088>};
        };

}


#nop This event is generated at the end of an MSDP sub negotiation.
#nop **************************************************************
#event {IAC SB MSDP IAC SE} {

    #if { "$echo_event" == "on" } {
        #echo {<068>#event {IAC SB MSDP IAC SE}   EVENT #3<088>};
        };
    }

#nop Ask the server to report all keys inside REPORTABLE_VARIABLES
#nop *************************************************************
#alias {msdp_report} {

    #var result {$IAC$SB$MSDP${VAR}REPORT};

    #foreach {$REPORTABLE_VARIABLES[]} {tmp} {

        #var result {$result${VAL}$tmp};
        };
    #send {$result$IAC$SE\};

    #if { "$echo_event" == "on" } {
        #echo {<068>#alias {msdp_report}   EVENT #4<088>};
        };
    }

#alias {msdp_list} {

    #send {$IAC$SB$MSDP${VAR}LIST${VAL}%0$IAC$SE\};
    #if { "$echo_event" == "on" } {
        #echo {<068>#alias {msdp_list}   EVENT #5<088>};
        };
    }

#alias {msdp_send} {

    #send {$IAC$SB$MSDP${VAR}SEND${VAL}%0$IAC$SE\};
    #if { "$echo_event" == "on" } {
        #echo {<068>#alias {msdp_send}   EVENT #6<088>};
        };
    }
/*
#sub {`1}  {<018>}
#sub {`2}  {<028>}
#sub {`3}  {<038>}
#sub {`4}  {<048>}
#sub {`5}  {<058>}
#sub {`6}  {<068>}
#sub {`7}  {<eee>}
#sub {`8}  {<ccc>}
#sub {`!}  {<118>}
#sub {`@}  {<128>}
#sub {`#}  {<138>}
#sub {`\$} {<148>}
#sub {`%}  {<158>}
#sub {`^}  {<168>}
#sub {`&}  {<178>}
#sub {``}  {}
*/

#class msdp close
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
 
0 0 0
goofy



Joined: 09 Nov 2006
Posts: 54
Location: web

PostPosted: Wed Nov 26, 2014 5:19 am    Post subject:

Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
 
0 0 0
Davairus
Implementor


Joined: 16 Jan 2004
Posts: 10339
Location: 0x0000

PostPosted: Wed Nov 26, 2014 5:32 pm    Post subject:

starting to come together. cool!
Back to top
View user's profile Send private message Send e-mail
 
0 0 0
Display posts from previous:   
Post new topic   Reply to topic    Abandoned Realms Forum Index -> Newbie Q/A 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


Powered by phpBB © phpBB Group