• Node Update question

    From Lobo@1:103/705 to All on Sat Dec 10 14:51:28 2016
    Hi

    I have a question regarding the Users current location on board as reflected in Terminal.
    By that I mean when it shows that User is in Main Menu or Transfer Menu, etc. Now, I have added a custom menu called Utilities inside default src. and it works fine but terminal still shows that User is in main menu instead of utilities menu.

    I've found that this passes the updated location -
    # Update node status
    node_action node_xfer
    async

    So, for utilities menu I can just put something like..

    node_action node_util

    ..in my part of utilities section in default source. The reference to node_util then seems to be in 'nodedefs.inc' if I'm following this correctly. There are default 24 entries for main, xfer, mail, all sorts of default places. If I add 25th and call it

    !define NODE_UTIL 25 # something something here

    where do I actually pass the message that user is in that particular menu? I tried the above method to see what gives and it will say something like 'User is in 25', hehe so that's obviously missing something and # looks like a comment only..so not so sure where the actual 'message' is passed.
    Any ideas?

    Cheers.


    |09,.-''|12Dali's Cat - "I love it" |07- Andre Breton, 1925 |09''-., |05daliscat.synchro.net

    ---
    * Synchronet * Dali's Cat
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Lobo on Sat Dec 10 13:47:16 2016
    Re: Node Update question
    By: Lobo to All on Sat Dec 10 2016 02:51 pm

    Hi

    I have a question regarding the Users current location on board as reflected in Terminal.
    By that I mean when it shows that User is in Main Menu or Transfer Menu, etc. Now, I have added a custom menu called Utilities inside default src. and it works fine but terminal still shows that User is in main menu instead of utilities menu.

    I've found that this passes the updated location -
    # Update node status
    node_action node_xfer
    async

    So, for utilities menu I can just put something like..

    node_action node_util

    ..in my part of utilities section in default source. The reference to node_util then seems to be in 'nodedefs.inc' if I'm following this correctly. There are default 24 entries for main, xfer, mail, all sorts of default places. If I add 25th and call it

    !define NODE_UTIL 25 # something something here

    Sorry, that won't work. Those constants are hard-coded in the C/C++ code (of Sychronet and other programs, like the node utility), so you can't just change the Baja include file and get those changes reflected everywhere.

    where do I actually pass the message that user is in that particular menu? I tried the above method to see what gives and it will say something like 'User is in 25', hehe so that's obviously missing something and # looks like a comment only..so not so sure where the actual 'message' is passed.
    Any ideas?

    What you want to do is use the NODE_EXT attribute flag and reuse/redefine one of the other (existing) node "action" values, for your user. Then update the corresponding "NodeAction" line in your ctrl/text.dat file (or use the Baja REPLACE_TEXT function) to place the action description.

    digital man

    Synchronet "Real Fact" #80:
    85 SBBSecho registrations were sold (at $49) between 1994 and 1996.
    Norco, CA WX: 62.9oF, 73.0% humidity, 6 mph SE wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.00-Win32
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Lobo@1:103/705 to Digital Man on Sat Dec 10 16:20:38 2016
    Re: Node Update question
    By: Digital Man to Lobo on Sat Dec 10 2016 01:47 pm

    Sorry, that won't work. Those constants are hard-coded in the C/C++ code (of Sychronet and other programs, like the node utility), so you can't

    <tears flowing> Ah well, I did suspect it was hard coded somewhere as I could
    not find reference to it. :)

    What you want to do is use the NODE_EXT attribute flag and reuse/redefine one of the other (existing) node "action" values, for your user. Then

    Gonna try this then. The only trouble is that I don't know which one to reuse,
    maybe the 'sending mail' one or such. :)

    Thanks!


    |09,.-''|12Dali's Cat - "I love it" |07- Andre Breton, 1925 |09''-., |05daliscat.synchro.net

    ---
    * Synchronet * Dali's Cat
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Lobo on Sat Dec 10 19:07:30 2016
    Re: Node Update question
    By: Lobo to Digital Man on Sat Dec 10 2016 04:20 pm

    Re: Node Update question
    By: Digital Man to Lobo on Sat Dec 10 2016 01:47 pm

    Sorry, that won't work. Those constants are hard-coded in the C/C++ code (of Sychronet and other programs, like the node utility), so you can't

    <tears flowing> Ah well, I did suspect it was hard coded somewhere as I could
    not find reference to it. :)

    What you want to do is use the NODE_EXT attribute flag and reuse/redefine one of the other (existing) node "action" values, for your user. Then

    Gonna try this then. The only trouble is that I don't know which one to reuse,
    maybe the 'sending mail' one or such. :)

    SendingMail is pretty common. Maybe reuse NodeActionBiXfer (NODE_BXFR) instead. I don't think you're going to see that node action used again.

    digital man

    Synchronet/BBS Terminology Definition #51:
    TCP = Transmission Control Protocol
    Norco, CA WX: 56.5oF, 91.0% humidity, 1 mph SE wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.00-Win32
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Lobo@1:103/705 to Digital Man on Sat Dec 10 22:12:20 2016
    Re: Node Update question
    By: Digital Man to Lobo on Sat Dec 10 2016 07:07 pm

    SendingMail is pretty common. Maybe reuse NodeActionBiXfer (NODE_BXFR) instead. I don't think you're going to see that node action used again.

    Ah, makes sense, I haven't even noticed BXFR. Gonna go with that one than.
    Thanks!


    |09,.-''|12Dali's Cat - "I love it" |07- Andre Breton, 1925 |09''-., |05daliscat.synchro.net

    ---
    * Synchronet * Dali's Cat
    * Origin: Vertrauen - vert.synchro.net (1:103/705)