• REPLACE_TEXT & SBBS Msgs

    From Hax0r@VERT/HAX0RQWK to All on Sun Jul 30 12:41:00 2000
    Two questions...

    In a Baja module, I do a replace_text 563 "blah". Upon exit of the module I do a REVERT_TEXT 563......however the text never gets 'reverted' to the one specified in TEXT.DAT -- what could i possibily be doing wrong?

    also, is there anyway in a baja module *not* to recieve system messages, for example "so and so logged on to node 2" or "hax0r sent you e-mail" etc...

    thanks

    ---
    þ Synchronet þ hax0r's palace - unknown-realm.dynip.com - you've been hax0r'd
  • From PistolGrip@VERT/WASTELND to Hax0r on Sun Jul 30 15:22:00 2000
    RE: REPLACE_TEXT & SBBS Msgs
    BY: Hax0r to All on Sun Jul 30 2000 11:41 pm

    In a Baja module, I do a replace_text 563 "blah". Upon exit of the module I a REVERT_TEXT 563......however the text never gets 'reverted' to the one specified in TEXT.DAT -- what could i possibily be doing wrong?

    Not sure really, I've not had any trouble with this in the past, but havn't played with it recently.

    also, is there anyway in a baja module *not* to recieve system messages, for example "so and so logged on to node 2" or "hax0r sent you e-mail" etc...

    Yes, I'm pretty sure you could do this with TOGGLE_USER_CHAT to disable the Activity Alerts. This is the same as from the Chat Prompt.

    Something like this :

    COMPARE_USER_CHAT CHAT_NOACT
    IF_FALSE
    TOGGLE_USER_CHAT CHAT_NOACT
    END_IF

    PistolGrip


    ---
    þ Synchronet þ WasteLand BBS þ telnet://wasteland.darktech.org
  • From Digital Man@VERT to Hax0r on Mon Jul 31 02:11:00 2000
    RE: REPLACE_TEXT & SBBS Msgs
    BY: Hax0r to All on Sun Jul 30 2000 11:41 pm

    In a Baja module, I do a replace_text 563 "blah". Upon exit of the module I a REVERT_TEXT 563......however the text never gets 'reverted' to the one specified in TEXT.DAT -- what could i possibily be doing wrong?

    Do you have a return before the revert_text line or some other control flow problem perhaps? I would put a print statement just before the REVERT line and if you don't see the print output, then you know you have a problem in your code.


    also, is there anyway in a baja module *not* to recieve system messages,
    for
    example "so and so logged on to node 2" or "hax0r sent you e-mail" etc...

    Yes, you need to toggle the NODE_AOFF bit in the node.misc field. Example:

    !include node_defs.inc

    compare_node_misc NODE_AOFF
    if_true
    toggle_node_misc NODE_AOFF
    endi_if

    Rob

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Hax0r@VERT/HAX0RQWK to Digital Man on Mon Jul 31 09:43:00 2000
    RE: REPLACE_TEXT & SBBS Msgs
    BY: Digital Man to Hax0r on Mon Jul 31 2000 01:11 pm

    Do you have a return before the revert_text line or some other control flow problem perhaps? I would put a print statement just before the REVERT line a if you don't see the print output, then you know you have a problem in your code.

    Nope, no return -- the code is below.... I'll be happy to send you the entire baja source file if you want.

    .... code above ....
    cmdkey ^M

    switch m
    case 0
    goto sendemail
    end_case
    case 1
    mail_read
    cmd_pop
    goto displayansi
    end_case
    case 2
    mail_read_sent
    cmd_pop
    goto displayansi
    end_case
    case 3
    cls
    setstr "1"
    mail_send_feedback
    cmd_pop
    goto displayansi
    end_case
    case 4
    cmd_pop
    revert_text 18
    revert_text 390
    revert_text 563
    revert_text 45
    return
    end_case
    end_switch
    end_cmd
    ... code below....

    i know it has to be executing properly since case 4 is also the one which returns control to the calling module. Although I'm not 100% sure (i havent noticed) i think that the other text strings get set back properly.

    The only thing special about 563 (other than it being the Pause string) is that in my text.dat its actually not a string -- its an @code sequence. Here is the line from text.dat:

    "@EXEC:PAUSE@" 563 Pause

    but I can't see that making a real difference.....

    ---
    þ Synchronet þ hax0r's palace - unknown-realm.dynip.com - you've been hax0r'd
  • From Hax0r@VERT/HAX0RQWK to Digital Man on Mon Jul 31 09:45:00 2000
    RE: REPLACE_TEXT & SBBS Msgs
    BY: Digital Man to Hax0r on Mon Jul 31 2000 01:11 pm

    also, is there anyway in a baja module *not* to recieve system messages,
    for
    example "so and so logged on to node 2" or "hax0r sent you e-mail" etc...

    Yes, you need to toggle the NODE_AOFF bit in the node.misc field. Example:

    !include node_defs.inc

    compare_node_misc NODE_AOFF
    if_true
    toggle_node_misc NODE_AOFF
    endi_if

    Rob -- Thanks much! I figured there was a way to do it -- I just wasn't sure how.

    heh....I've been pounding away at baja - i must be a mad man.

    ---
    þ Synchronet þ hax0r's palace - unknown-realm.dynip.com - you've been hax0r'd
  • From Digital Man@VERT to Hax0r on Tue Aug 1 00:52:00 2000
    RE: REPLACE_TEXT & SBBS Msgs
    BY: Hax0r to Digital Man on Mon Jul 31 2000 08:43 pm

    case 4
    cmd_pop
    revert_text 18
    revert_text 390
    revert_text 563
    revert_text 45
    return
    end_case
    end_switch
    end_cmd
    ... code below....

    i know it has to be executing properly since case 4 is also the one which returns control to the calling module. Although I'm not 100% sure (i havent noticed) i think that the other text strings get set back properly.

    Put a print statement before these revert_text lines (like I suggested before) and tell me whether or not you see the output from the print statement. This is a primitive form of "debugging".

    rob

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Hax0r@VERT/HAX0RQWK to Digital Man on Tue Aug 1 11:40:00 2000
    RE: REPLACE_TEXT & SBBS Msgs
    BY: Digital Man to Hax0r on Tue Aug 01 2000 11:52 am

    Put a print statement before these revert_text lines (like I suggested befor and tell me whether or not you see the output from the print statement. This a primitive form of "debugging".

    I tried that, and this will sound like the strangest thing -- but here's the scoop. I put a print line after that line of text and then ran the module...hehe, once I ran it, I realized I needed a pause after the print line in order to see if it actually printed since i clear the screen and reposition the cursor at 0;0 when it gets back to the default module. once I did this, the text printed out and the pause swicthed to the correct string.

    so, of course I commented both lines out, and the pause prompt still switched back. dumbfounded, I did the only thing I could think of, and that was to return the baja module source to its original state, by literally deleting both lines of source (the print and pause lines, and the space they took up between revert_text 563 and revert_text 45). This time on exit the pause string did not go back to what it should. so I went in there, but a blank line in after the revert_text 563 and the pause did go back.

    thinking i had found a bug of some sort, I went back to verify my results by removing the blank line and re-compiling. much to my display, the pause string changed like it should have..

    so after spending about 20 minutes fiddling around, i am at a loss to explain what the problem is. all i do know is that i'm afraid to re-compile my email.src file :)


    ---
    þ Synchronet þ hax0r's palace - unknown-realm.dynip.com - you've been hax0r'd
  • From PistolGrip@VERT/WASTELND to Hax0r on Tue Aug 1 17:20:00 2000
    RE: REPLACE_TEXT & SBBS Msgs
    BY: Hax0r to Digital Man on Tue Aug 01 2000 10:40 pm

    so after spending about 20 minutes fiddling around, i am at a loss to explai what the problem is. all i do know is that i'm afraid to re-compile my email.src file :)

    Could there have been some whitespace or somethign hidden in there, I think BAJA.EXE should ignore the whitespace, but maybe something was screwing with it. Could very well be a bug somewhere though.

    Dave

    ---
    þ Synchronet þ WasteLand BBS þ telnet://wasteland.darktech.org
  • From Amcleod@VERT to PistolGrip on Tue Aug 1 18:38:00 2000
    RE: REPLACE_TEXT & SBBS Msgs
    BY: PistolGrip to Hax0r on Wed Aug 02 2000 04:20 am

    so after spending about 20 minutes fiddling around, i am at a loss to exp what the problem is. all i do know is that i'm afraid to re-compile my email.src file :)

    Could there have been some whitespace or somethign hidden in there...

    Or maybe some sort of long-line bug, where what looks like a blank line actually has code sneakily concealed out past col. 80?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Hax0r@VERT/HAX0RQWK to PistolGrip on Wed Aug 2 10:16:00 2000
    RE: REPLACE_TEXT & SBBS Msgs
    BY: PistolGrip to Hax0r on Wed Aug 02 2000 04:20 am

    RE: REPLACE_TEXT & SBBS Msgs
    BY: Hax0r to Digital Man on Tue Aug 01 2000 10:40 pm

    so after spending about 20 minutes fiddling around, i am at a loss to exp what the problem is. all i do know is that i'm afraid to re-compile my email.src file :)

    Could there have been some whitespace or somethign hidden in there, I think BAJA.EXE should ignore the whitespace, but maybe something was screwing with it. Could very well be a bug somewhere though.

    Dave


    Well, I guess it possible -- but who knows... I sure as hell didn't put them there if they were there. i'll just try to avoid re-compiling that baja module. It was definately a strange experience, consider I've been writing a lot of baja code recently, and everything has worked ok -- except for that.

    ---
    þ Synchronet þ hax0r's palace - unknown-realm.dynip.com - you've been hax0r'd
  • From Hax0r@VERT/HAX0RQWK to Amcleod on Wed Aug 2 10:17:00 2000
    RE: REPLACE_TEXT & SBBS Msgs
    BY: Amcleod to PistolGrip on Wed Aug 02 2000 05:38 am

    RE: REPLACE_TEXT & SBBS Msgs
    BY: PistolGrip to Hax0r on Wed Aug 02 2000 04:20 am

    so after spending about 20 minutes fiddling around, i am at a loss to what the problem is. all i do know is that i'm afraid to re-compile m email.src file :)

    Could there have been some whitespace or somethign hidden in there...

    Or maybe some sort of long-line bug, where what looks like a blank line actually has code sneakily concealed out past col. 80?

    Again, this is not likely as I wrote the entire baja module myself from scratch -- i guess its possible something *could* have wrapped around somehow, but i remember checking for that and it looked ok.

    who knows..i'm just glad it works now :)

    ---
    þ Synchronet þ hax0r's palace - unknown-realm.dynip.com - you've been hax0r'd
  • From PistolGrip@VERT/WASTELND to Hax0r on Wed Aug 2 16:15:00 2000
    RE: REPLACE_TEXT & SBBS Msgs
    BY: Hax0r to PistolGrip on Wed Aug 02 2000 09:16 pm

    Well, I guess it possible -- but who knows... I sure as hell didn't put them there if they were there. i'll just try to avoid re-compiling that baja module. It was definately a strange experience, consider I've been writing lot of baja code recently, and everything has worked ok -- except for that.

    Yes, I believe I had imilar problems back in like 1993 or so with a module that I was working on. It would compile sometimes, but others it would give a error msg all without changing any code. After really 'buggin it I found there was a flow-error with some of the code. Was never sure *exactly* what it was, but one line of end_if or cmd_pop fixed it I think.

    I've been working on something lately that's turning out pretty cool. The Linux guys ought to like it :) Need a lot more time to work on it though.

    PistolGrip


    ---
    þ Synchronet þ WasteLand BBS þ telnet://wasteland.darktech.org