• Slight error in baja script (repost)

    From Internetking@VERT/INETK to all on Mon Sep 18 04:17:53 2017
    repost.

    ---------- Forwarded message ----------
    Date: Sun, 17 Sep 2017 17:58:50 -0700
    From: Internetking <internetking@inetk.synchro.net>
    To: All
    Newsgroups: DOVE-Net.Synchronet_Baja
    Subject: Slight error in baja script



    here new error might have changed since then....

    Administrator@internetking /cygdrive/c/sbbs/exec
    $ ./baja slight

    BAJA v2.34-Win32 (rev 1.47) - Synchronet Shell/Module Compiler

    Compiling slight.src...
    !SYNTAX ERROR (expecting integer constant):
    slight.src 17: main

    Administrator@internetking /cygdrive/c/sbbs/exec
    $


    part of code:


    # Display TEXT\MENU\SLIGHT\SMAIN.* if not in UM_expert mode
    compare_user_misc UM_expert
    if_false
    menu smain
    end_if

    # Update node status
    node_action main
    async

    inc_main_cmds

    what fixes need to be done here?


    Thanks....

    ---
    þ Synchronet þ Internetking BBS - inetk.synchro.net
  • From Digital Man@VERT to Internetking on Mon Sep 18 15:17:24 2017
    Re: Slight error in baja script (repost)
    By: Internetking to all on Mon Sep 18 2017 04:17 am

    repost.

    ---------- Forwarded message ----------
    Date: Sun, 17 Sep 2017 17:58:50 -0700
    From: Internetking <internetking@inetk.synchro.net>
    To: All
    Newsgroups: DOVE-Net.Synchronet_Baja
    Subject: Slight error in baja script



    here new error might have changed since then....

    Administrator@internetking /cygdrive/c/sbbs/exec
    $ ./baja slight

    BAJA v2.34-Win32 (rev 1.47) - Synchronet Shell/Module Compiler

    Compiling slight.src...
    !SYNTAX ERROR (expecting integer constant):
    slight.src 17: main

    Administrator@internetking /cygdrive/c/sbbs/exec
    $


    part of code:


    # Display TEXT\MENU\SLIGHT\SMAIN.* if not in UM_expert mode compare_user_misc UM_expert
    if_false
    menu smain
    end_if

    # Update node status
    node_action main
    async

    inc_main_cmds

    what fixes need to be done here?

    The fix is to add the following line near the beginning of the source (.src) file in question:

    !include sbbsdefs.inc

    I also created a FAQ on the wiki for this since it does still come up from time to time:
    http://wiki.synchro.net/faq:misc#old_baja

    digital man

    Synchronet/BBS Terminology Definition #25:
    FTS = FidoNet Technical Standard
    Norco, CA WX: 79.3øF, 53.0% humidity, 10 mph N wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Internetking@VERT/INETK to Digital Man on Tue Sep 19 02:07:17 2017
    On Mon, 18 Sep 2017, Digital Man wrote:


    Re: Slight error in baja script (repost)
    By: Internetking to all on Mon Sep 18 2017 04:17 am

    repost.

    ---------- Forwarded message ----------
    Date: Sun, 17 Sep 2017 17:58:50 -0700
    From: Internetking <internetking@inetk.synchro.net>
    To: All
    Newsgroups: DOVE-Net.Synchronet_Baja
    Subject: Slight error in baja script



    here new error might have changed since then....

    Administrator@internetking /cygdrive/c/sbbs/exec
    $ ./baja slight

    BAJA v2.34-Win32 (rev 1.47) - Synchronet Shell/Module Compiler

    Compiling slight.src...
    !SYNTAX ERROR (expecting integer constant):
    slight.src 17: main

    Administrator@internetking /cygdrive/c/sbbs/exec
    $


    part of code:


    # Display TEXT\MENU\SLIGHT\SMAIN.* if not in UM_expert mode compare_user_misc UM_expert
    if_false
    menu smain
    end_if

    # Update node status
    node_action main
    async

    inc_main_cmds

    what fixes need to be done here?

    The fix is to add the following line near the beginning of the source (.src) file in question:

    !include sbbsdefs.inc

    still error even its included...


    # DEFAULT.SRC
    !include sbbsdefs.inc
    set_menu_dir slight

    # Set return point for main menu commands (via end_cmd)
    cmd_home

    # Display TEXT\MENU\SLIGHT\SMAIN.* if not in UM_expert mode
    compare_user_misc um_expert
    if_false
    menu smain
    end_if

    # Update node status
    node_action main
    async

    inc_main_cmds

    ---
    þ Synchronet þ Internetking BBS - inetk.synchro.net
  • From Internetking@VERT/INETK to Internetking on Tue Sep 19 02:20:17 2017
    On Tue, 19 Sep 2017, Internetking wrote:


    On Mon, 18 Sep 2017, Digital Man wrote:


    Re: Slight error in baja script (repost)
    By: Internetking to all on Mon Sep 18 2017 04:17 am

    repost.

    ---------- Forwarded message ----------
    Date: Sun, 17 Sep 2017 17:58:50 -0700
    From: Internetking <internetking@inetk.synchro.net>
    To: All
    Newsgroups: DOVE-Net.Synchronet_Baja
    Subject: Slight error in baja script



    here new error might have changed since then....

    Administrator@internetking /cygdrive/c/sbbs/exec
    $ ./baja slight

    BAJA v2.34-Win32 (rev 1.47) - Synchronet Shell/Module
    Compiler

    Compiling slight.src...
    !SYNTAX ERROR (expecting integer constant):
    slight.src 17: main

    Administrator@internetking /cygdrive/c/sbbs/exec
    $


    part of code:


    # Display TEXT\MENU\SLIGHT\SMAIN.* if not in UM_expert
    mode
    compare_user_misc UM_expert
    if_false
    menu smain
    end_if

    # Update node status
    node_action main
    async

    inc_main_cmds

    what fixes need to be done here?

    The fix is to add the following line near the beginning
    of the source (.src)
    file in question:

    !include sbbsdefs.inc

    still error even its included...


    # DEFAULT.SRC
    !include sbbsdefs.inc
    set_menu_dir slight

    # Set return point for main menu commands (via end_cmd)
    cmd_home

    # Display TEXT\MENU\SLIGHT\SMAIN.* if not in UM_expert mode
    compare_user_misc um_expert
    if_false
    menu smain
    end_if

    # Update node status
    node_action main
    async

    inc_main_cmds


    I also tried to get it work by adding

    !include nodedefs.inc

    but no luck.

    ---
    þ Synchronet þ Internetking BBS - inetk.synchro.net
  • From Digital Man@VERT to Internetking on Wed Sep 20 23:49:52 2017
    Re: Re: Slight error in baja script (repost)
    By: Internetking to Digital Man on Tue Sep 19 2017 02:07 am

    On Mon, 18 Sep 2017, Digital Man wrote:


    Re: Slight error in baja script (repost)
    By: Internetking to all on Mon Sep 18 2017 04:17 am

    repost.

    ---------- Forwarded message ----------
    Date: Sun, 17 Sep 2017 17:58:50 -0700
    From: Internetking <internetking@inetk.synchro.net>
    To: All
    Newsgroups: DOVE-Net.Synchronet_Baja
    Subject: Slight error in baja script



    here new error might have changed since then....

    Administrator@internetking /cygdrive/c/sbbs/exec
    $ ./baja slight

    BAJA v2.34-Win32 (rev 1.47) - Synchronet Shell/Module Compiler

    Compiling slight.src...
    !SYNTAX ERROR (expecting integer constant):
    slight.src 17: main

    Administrator@internetking /cygdrive/c/sbbs/exec
    $


    part of code:


    # Display TEXT\MENU\SLIGHT\SMAIN.* if not in UM_expert mode compare_user_misc UM_expert
    if_false
    menu smain
    end_if

    # Update node status
    node_action main
    async

    inc_main_cmds

    what fixes need to be done here?

    The fix is to add the following line near the beginning of the source (.src) file in question:

    !include sbbsdefs.inc

    still error even its included...


    # DEFAULT.SRC
    !include sbbsdefs.inc
    set_menu_dir slight

    # Set return point for main menu commands (via end_cmd)
    cmd_home

    # Display TEXT\MENU\SLIGHT\SMAIN.* if not in UM_expert mode compare_user_misc um_expert
    if_false
    menu smain
    end_if

    # Update node status
    node_action main
    async

    inc_main_cmds

    You probably need to changing that "node_action main" to "node_action node_main". But without knowing what error was occurring on what line, that's just a guess.

    digital man

    Synchronet "Real Fact" #5:
    Synchronet version 3 for Win32 development began in 1999.
    Norco, CA WX: 63.0øF, 88.0% humidity, 2 mph ESE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net