• Yes/No Prompt

    From Android8675@1:103/705 to All on Thu Dec 6 07:20:03 2018
    I messed something up at the last update, when I get a Yes/No prompt, I'll press Enter or Y or N to make a choice, and my BBS will erase the Yes / No bit at the end of the question and sit there until I press Enter and usually the r esult will be wrong.

    I'm sure I accidentally borked something on an update and can't quite figure out where to resolve this issue.

    Any help? Can someone walk me through where to look for the problem?

    -A.

    p.s. honestly, i'm being lazy, holidays got me slammed so I'm out sourcing my troubleshooting labor. Thanks much, -Andy
    --
    Android8675@ShodansCore

    ---
    ■ Synchronet ■ Shodan's Core @ ShodansCore.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Android8675 on Thu Dec 6 11:39:25 2018
    Re: Yes/No Prompt
    By: Android8675 to All on Thu Dec 06 2018 07:20:03

    I messed something up at the last update, when I get a Yes/No prompt, I'll press Enter or Y or N to make a choice, and my BBS will erase the Yes / No bit at the end of the question and sit there until I press Enter and usually the r esult will be wrong.

    I'm sure I accidentally borked something on an update and can't quite figure out where to resolve this issue.

    I believe these are provided by the yesnobar & noyesbar Baja modules, which haven't changed in three years (and haven't really changed in much longer). If the modules aren't built, a built-in prompt is likely invoked instead (unsure).

    Do you rebuild all Baja modules when updating every time, just sometimes, or never?

    Do you have dupes of either of these in your mods/ directory? (I do, and I can't remember what I did to them or why.)

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-425-5435
    ■ Synchronet ■ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Android8675 on Thu Dec 6 14:44:34 2018
    Re: Yes/No Prompt
    By: Android8675 to All on Thu Dec 06 2018 07:20 am

    I messed something up at the last update, when I get a Yes/No prompt, I'll press Enter or Y or N to make a choice, and my BBS will erase the Yes / No bit at the end of the question and sit there until I press Enter and usually the r esult will be wrong.

    I'm sure I accidentally borked something on an update and can't quite figure out where to resolve this issue.

    Any help? Can someone walk me through where to look for the problem?

    Do you have a customized ctrl/text.dat file? If so, how is it different from the stock one that matches the version of sbbs you are running?

    digital man

    Synchronet "Real Fact" #84:
    The Electronic Frontier Foundation used to run Synchronet (circa 1993).
    Norco, CA WX: 50.6°F, 94.0% humidity, 0 mph W wind, 0.54 inches rain/24hrs
    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Android8675@1:103/705 to echicken on Mon Dec 10 07:38:54 2018
    Re: Yes/No Prompt
    By: echicken to Android8675 on Thu Dec 06 2018 11:39 am

    I messed something up at the last update, when I get a Yes/No
    prompt, I'll press Enter or Y or N to make a choice, and my BBS will
    erase the Yes / No bit at the end of the question and sit there
    until I press Enter and usually the r esult will be wrong.

    I believe these are provided by the yesnobar & noyesbar Baja modules, which haven't changed in three years (and haven't really changed in much longer). If the modules aren't built, a built-in prompt is likely invoked instead (unsure).

    Do you rebuild all Baja modules when updating every time, just sometimes, or never?

    Never, but some recent CVS updates touched text.dat, thought I might of borked something there. I checked the yesnobar.src/.bin and noyesbar files, no change, still dated like 2015.

    noticing some other things like my answer.msg file isn't displaying, I'm guessing the command shell is messed up, /sigh, i'm looking into it, maybe I'll figure it out.

    -A.
    --
    Android8675@ShodansCore

    ---
    ■ Synchronet ■ Shodan's Core @ ShodansCore.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Android8675@1:103/705 to Digital Man on Mon Dec 10 07:45:15 2018
    Re: Yes/No Prompt
    By: Digital Man to Android8675 on Thu Dec 06 2018 02:44 pm

    I messed something up at the last update, when I get a Yes/No prompt,
    I'll press Enter or Y or N to make a choice, and my BBS will erase the
    Yes / No bit at the end of the question and sit there until I press
    Enter and usually the r esult will be wrong.

    Do you have a customized ctrl/text.dat file? If so, how is it different from the stock one that matches the version of sbbs you are running?

    Thought about that, when that file gets updated I run a compare and add missing lines, maybe I put in a LF somewhere that messed u p something. the yesnoquestion lines seem normal, they just call the @exec:yesnobar@ thing...

    Just found an extra " in text.dat... /sigh
    --
    Android8675@ShodansCore

    ---
    ■ Synchronet ■ Shodan's Core @ ShodansCore.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Android8675@1:103/705 to Digital Man on Wed Dec 12 07:46:54 2018
    Re: Yes/No Prompt
    By: Android8675 to Digital Man on Mon Dec 10 2018 07:45 am

    I messed something up at the last update, when I get a Yes/No prompt,
    I'll press Enter or Y or N to make a choice, and my BBS will erase
    the Yes / No bit at the end of the question and sit there until I
    press Enter and usually the r esult will be wrong.

    Do you have a customized ctrl/text.dat file? If so, how is it
    different from the stock one that matches the version of sbbs you
    are running?

    Thought about that, when that file gets updated I run a compare and add missing lines, maybe I put in a LF somewhere that messed u p something. the yesnoquestion lines seem normal, they just call the @exec:yesnobar@ thing...

    Just found an extra " in text.dat... /sigh

    OK, still an issue... Some other things I've noticed, my avatar's don't appear when reading messages...

    ┌────────────────────────····
    │ Subj: Yes/No Prompt
    │ To : Digital Man
    │ From: Android8675 #1
    │ Date: Mon Dec 10 2018 07:45 am PST (from now) └───────────────────────────────────────────────······MIME-decoded plain-text:

    That MIME-decoded message is where the avatars should appear I think.

    Finally when I get a pause prompt, pressing Q won't abort text output it just keeps going.

    Any help appreciated, what did I bork up?

    -A.
    --
    Android8675@ShodansCore



    ... Friends may come and friends may go, but enemies accumulate.

    ---
    ■ Synchronet ■ Shodan's Core @ ShodansCore.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Android8675 on Wed Dec 12 12:32:27 2018
    Re: Yes/No Prompt
    By: Android8675 to Digital Man on Wed Dec 12 2018 07:46 am

    Re: Yes/No Prompt
    By: Android8675 to Digital Man on Mon Dec 10 2018 07:45 am

    I messed something up at the last update, when I get a Yes/No prompt,
    I'll press Enter or Y or N to make a choice, and my BBS will erase
    the Yes / No bit at the end of the question and sit there until I
    press Enter and usually the r esult will be wrong.

    Do you have a customized ctrl/text.dat file? If so, how is it
    different from the stock one that matches the version of sbbs you
    are running?

    Thought about that, when that file gets updated I run a compare and add missing lines, maybe I put in a LF somewhere that messed u p something. the yesnoquestion lines seem normal, they just call the @exec:yesnobar@ thing...

    Just found an extra " in text.dat... /sigh

    OK, still an issue... Some other things I've noticed, my avatar's don't appear when reading messages...

    ┌────────────────────────····
    │ Subj: Yes/No Prompt
    │ To : Digital Man
    │ From: Android8675 #1
    │ Date: Mon Dec 10 2018 07:45 am PST (from now) └───────────────────────────────────────────────······MIME-decoded plain-text:

    That MIME-decoded message is where the avatars should appear I think.

    Finally when I get a pause prompt, pressing Q won't abort text output it just keeps going.

    Any help appreciated, what did I bork up?

    It sounds like your text.dat is out of whack. You can just replace it with a 0-byte file and the hard-coded default values will be used automatically. Or download (from vert) the text.dat which corresponds with the executable (sbbs) version you're running to get a fresh unmodified version.

    digital man

    Synchronet "Real Fact" #10:
    The name "DOVE-Net" was suggested by King Drafus (sysop of The Beast's Domain). Norco, CA WX: 64.1°F, 62.0% humidity, 0 mph SW wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Mindless Automaton@1:103/705 to Android8675 on Thu Dec 13 08:27:04 2018
    On 12/10/2018 10:45 AM, Android8675 wrote:
    Re: Yes/No Prompt

    Just found an extra " in text.dat... /sigh
    --

    I usually do stuff like this instead of edit text.dat:

    bbs.replace_text(176, "[17CSY: "); // Line 176 SystemPassword

    Then I dont have to worry about a customized text.dat being overwritten.

    -Mindless Automaton
    ---
    ■ Synchronet ■ Eldritch Clockwork BBS - eldritch.darktech.org
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From mark lewis@1:3634/12.73 to Mindless Automaton on Tue Dec 18 07:12:46 2018

    On 2018 Dec 13 08:27:04, you wrote to Android8675:

    I usually do stuff like this instead of edit text.dat:

    bbs.replace_text(176, "[17CSY: "); // Line 176 SystemPassword

    Then I dont have to worry about a customized text.dat being overwritten.

    ohhh... that's nice! where do you do this replacement? in login.js or logon.js or somewhere else earlier? i'm wanting to change the login prompt stuff but really don't care to try to hexedit text.dat...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... The chain developers, they think we want mindless redundant comfort.
    ---
    * Origin: (1:3634/12.73)
  • From echicken@1:103/705 to mark lewis on Tue Dec 18 13:32:17 2018
    Re: Yes/No Prompt
    By: mark lewis to Mindless Automaton on Tue Dec 18 2018 07:12:46

    bbs.replace_text(176, "[17CSY: "); // Line 176

    ohhh... that's nice! where do you do this replacement? in login.js or logon.js or somewhere else earlier? i'm wanting to change the login prompt

    Haven't used this in a while, but I imagine it only applies for the duration of the script that's being executed. (It might apply for the duration of the user's session.)

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-425-5435
    ■ Synchronet ■ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to mark lewis on Tue Dec 18 12:56:46 2018
    Re: Yes/No Prompt
    By: mark lewis to Mindless Automaton on Tue Dec 18 2018 07:12 am


    On 2018 Dec 13 08:27:04, you wrote to Android8675:

    I usually do stuff like this instead of edit text.dat:

    bbs.replace_text(176, "[17CSY: "); // Line 176 SystemPassword

    Then I dont have to worry about a customized text.dat being overwritten.

    ohhh... that's nice! where do you do this replacement? in login.js or logon.js or somewhere else earlier? i'm wanting to change the login prompt stuff but really don't care to try to hexedit text.dat...

    Most of the login prompt stuff isn't in the text.dat to begin with. Have you taken a look at exec/login.js? (tip: copy to your mods directory before modifying).

    Also: I just use good text editors for my text.dat changes, never touched it with a hex editor.

    digital man

    Synchronet "Real Fact" #95:
    Synchronet v3.14a was released in December of 2006 (1 year after v3.13a). Norco, CA WX: 64.0°F, 65.0% humidity, 5 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Android8675@1:103/705 to mark lewis on Wed Dec 19 07:47:02 2018
    Re: Yes/No Prompt
    By: mark lewis to Mindless Automaton on Tue Dec 18 2018 07:12 am

    On 2018 Dec 13 08:27:04, you wrote to Android8675:

    I usually do stuff like this instead of edit text.dat:

    bbs.replace_text(176, "[17CSY: "); // Line 176 SystemPassword

    Then I dont have to worry about a customized text.dat being overwritten.

    ohhh... that's nice! where do you do this replacement? in login.js or logon.js or somewhere else earlier? i'm wanting to change the login prompt stuff but really don't care to try to hexedit text.dat...

    I use notepad++ to change text.dat, really isn't that big a deal. Notepad++ has a nice compare plug-in that lets me compare text.dat to any changes that come in from CVS. In this case I guess I messed "something" up. Ah well. I don't really get the bbs.replace_text thing, but...
    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From mark lewis@1:3634/12.73 to echicken on Wed Dec 19 14:38:16 2018

    On 2018 Dec 18 13:32:16, you wrote to me:

    bbs.replace_text(176, "[17CSY: "); // Line 176

    ohhh... that's nice! where do you do this replacement? in login.js or
    logon.js or somewhere else earlier? i'm wanting to change the login
    prompt

    Haven't used this in a while, but I imagine it only applies for the duration of the script that's being executed. (It might apply for the duration of the user's session.)

    i hope it lasts the entire session and i can change it multiple times if desired...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Gross National Product: A Big Mac.
    ---
    * Origin: (1:3634/12.73)
  • From mark lewis@1:3634/12.73 to Digital Man on Wed Dec 19 14:40:28 2018

    On 2018 Dec 18 12:56:46, you wrote to me:

    ohhh... that's nice! where do you do this replacement? in login.js or
    logon.js or somewhere else earlier? i'm wanting to change the login
    prompt stuff but really don't care to try to hexedit text.dat...

    Most of the login prompt stuff isn't in the text.dat to begin with. Have you taken a look at exec/login.js?

    not yet... i've played with logon.js, though... it generates a logon screen which gets displayed, then there's a security level screen, the normal random one but i've modified the naming to rndxxxxx for a huge pile of screens to select from, and i've added another feature from RA where a screen with MON-DAY.* naming format is displayed on those days... eg: 02-14 is displayed on
    valentines day, 07-04 is displayed on the 4th of july, etc... i'm going to do one for birthday screens next unless sync alread does a birthday screen...

    (tip: copy to your mods directory before modifying).

    definitely... we learned that with max's system ;)

    Also: I just use good text editors for my text.dat changes, never
    touched it with a hex editor.

    hummm... i thought there was raw characters in there but i do remember some time back you mentioned something about switching to using \1 (backslash 1) instead of using the raw CTRL-A character... mcedit isn't much of an editor but
    it works for me 99% of the time... even allows hex editing but it isn't in line
    mode format like a text file... has been very handy when converting my ANSI screens to sync ^A format wearing the .msg extension... especially when converting RA's codes over to sync's codes... manual but it works ;)

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... That's the Gods' country you're blasphemin' so look out for lightning.
    ---
    * Origin: (1:3634/12.73)
  • From mark lewis@1:3634/12.73 to Android8675 on Wed Dec 19 14:51:58 2018

    On 2018 Dec 19 07:47:02, you wrote to me:

    ohhh... that's nice! where do you do this replacement? in login.js or
    logon.js or somewhere else earlier? i'm wanting to change the login
    prompt stuff but really don't care to try to hexedit text.dat...

    I use notepad++ to change text.dat, really isn't that big a deal.

    i've used notepad++ on winwhatever for years... until our last winwhatever box quit, anyway... i might be interested if there's a linux version of it... for now i mostly use mcedit because i'm in mc all the time...

    Notepad++ has a nice compare plug-in that lets me compare text.dat to
    any changes that come in from CVS.

    yep... i've used it when working with some realllllly large files... have been using meld on *nix but it can have problems on large files, too...

    In this case I guess I messed "something" up. Ah well. I don't really
    get the bbs.replace_text thing, but...

    just from seeing it that one time, it looks simple... in a .js file, you use it
    to replace the line# specified with the provided text instead of editing the file...

    eg: bbs.replace_text(175, "furby furby furby!");

    would replace, in memory only, whatever text.dat line 175 has with "furby furby
    furby!"...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... If it wasn't for C, we would be using BASI, PASAL and OBOL!
    ---
    * Origin: (1:3634/12.73)
  • From Digital Man@1:103/705 to mark lewis on Wed Dec 19 13:40:56 2018
    Re: Yes/No Prompt
    By: mark lewis to Android8675 on Wed Dec 19 2018 02:51 pm

    On 2018 Dec 19 07:47:02, you wrote to me:

    ohhh... that's nice! where do you do this replacement? in login.js or
    logon.js or somewhere else earlier? i'm wanting to change the login
    prompt stuff but really don't care to try to hexedit text.dat...

    I use notepad++ to change text.dat, really isn't that big a deal.

    i've used notepad++ on winwhatever for years... until our last winwhatever box quit, anyway... i might be interested if there's a linux version of it... for now i mostly use mcedit because i'm in mc all the time...

    Notepad++ has a nice compare plug-in that lets me compare text.dat to any changes that come in from CVS.

    yep... i've used it when working with some realllllly large files... have been using meld on *nix but it can have problems on large files, too...

    In this case I guess I messed "something" up. Ah well. I don't really get the bbs.replace_text thing, but...

    just from seeing it that one time, it looks simple... in a .js file, you use it
    to replace the line# specified with the provided text instead of editing the file...

    Yup.

    eg: bbs.replace_text(175, "furby furby furby!");

    would replace, in memory only, whatever text.dat line 175 has with "furby furby
    furby!"...

    Right. And the text numbers are assigned nice names in load/text.js too.

    digital man

    Synchronet/BBS Terminology Definition #38:
    ISDN = Integrated Services Digital Network
    Norco, CA WX: 71.4°F, 46.0% humidity, 6 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)