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?
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...
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?
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...
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.
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
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 befor and tell me whether or not you see the output from the print statement. This a primitive form of "debugging".
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 :)
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...
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
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?
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.
Sysop: | Tandy |
---|---|
Location: | New York, USA |
Users: | 15 |
Nodes: | 13 (0 / 13) |
Uptime: | 65:28:01 |
Calls: | 335 |
Messages: | 113,199 |