• Some questions

    From Drakmir@VERT/HDONE to All on Fri Sep 23 08:05:00 2005
    I've written a JavaScript shell, and I've got a few issues that I was hoping to resolve here.

    1) If I change a user record, sometimes the changes don't seem to stick. By logging the user offline and then online again, everything is fine.

    2) When I change the values for node action and status, they don't seem to be working correctly. An example is listed below.

    3) If I was to go and change my shell in the user editor and exit, I'm still in the other shell. Users on the BBS don't have this option, but sysops do. Do I have to do something special to allow the JavaScript shell to switch to a different one?

    Example of #2:
    When entering our menu system, I set the action/status to represent that the user is in the "main menu".
    They run a telnet_gate door. (TWGS)
    Those users flash quickly with "Running Tradewars 2002" and then they revert to "Logging In". Not sure why it goes back that far (that's 2 status changes back).
    When they return from TWGS, their status is on Loggin In still until they change menus (at which point my action/status code runs again and puts them into "main menu")

    Am I missing something?
    All I'm doing is setting the current node's action/status numbers approrpriately. Is there a method I should be setting instead?

    Thanks!

    Alan Wood
    Sysop of Holodeck One

    ---
    þ Synchronet þ Holodeck One - bbs.holodeckone.com
  • From Digital Man@VERT to Drakmir on Fri Sep 23 11:09:00 2005
    Re: Some questions
    By: Drakmir to All on Fri Sep 23 2005 12:05 pm

    I've written a JavaScript shell, and I've got a few issues that I was hoping resolve here.

    1) If I change a user record, sometimes the changes don't seem to stick. By logging the user offline and then online again, everything is fine.

    Can you give an example?

    2) When I change the values for node action and status, they don't seem to b working correctly. An example is listed below.

    3) If I was to go and change my shell in the user editor and exit, I'm still the other shell. Users on the BBS don't have this option, but sysops do. D have to do something special to allow the JavaScript shell to switch to a different one?

    Yes. The shell must be changed from the default configuration menu (yes, users have access to it).

    Example of #2:
    When entering our menu system, I set the action/status to represent that the user is in the "main menu".
    They run a telnet_gate door. (TWGS)
    Those users flash quickly with "Running Tradewars 2002" and then they revert "Logging In". Not sure why it goes back that far (that's 2 status changes back).
    When they return from TWGS, their status is on Loggin In still until they change menus (at which point my action/status code runs again and puts them into "main menu")

    Am I missing something?
    All I'm doing is setting the current node's action/status numbers approrpriately. Is there a method I should be setting instead?

    Please post some code examples. Are you setting bbs.node_action or system.node_list[].action or what?

    digital man

    Snapple "Real Fact" #120:
    The only continent without native reptiles or snakes is Antarctica.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Drakmir@VERT/HDONE to Digital Man on Fri Sep 23 16:59:00 2005
    Re: Some questions
    By: Digital Man to Drakmir on Fri Sep 23 2005 04:09 pm

    Re: Some questions
    By: Drakmir to All on Fri Sep 23 2005 12:05 pm

    I've written a JavaScript shell, and I've got a few issues that I was hop resolve here.

    1) If I change a user record, sometimes the changes don't seem to stick. logging the user offline and then online again, everything is fine.

    Can you give an example?

    2) When I change the values for node action and status, they don't seem t working correctly. An example is listed below.

    3) If I was to go and change my shell in the user editor and exit, I'm st the other shell. Users on the BBS don't have this option, but sysops do. have to do something special to allow the JavaScript shell to switch to a different one?

    Yes. The shell must be changed from the default configuration menu (yes, use have access to it).

    Example of #2:
    When entering our menu system, I set the action/status to represent that user is in the "main menu".
    They run a telnet_gate door. (TWGS)
    Those users flash quickly with "Running Tradewars 2002" and then they rev "Logging In". Not sure why it goes back that far (that's 2 status change back).
    When they return from TWGS, their status is on Loggin In still until they change menus (at which point my action/status code runs again and puts th into "main menu")

    Am I missing something?
    All I'm doing is setting the current node's action/status numbers approrpriately. Is there a method I should be setting instead?

    Please post some code examples. Are you setting bbs.node_action or system.node_list[].action or what?

    digital man

    Snapple "Real Fact" #120:
    The only continent without native reptiles or snakes is Antarctica.

    function CommandShellUpdatePresence()
    {
    var node = system.node_list[bbs.node_num - 1];
    node.action = NODE_MAIN;

    if (node.status != NODE_QUIET)
    {
    node.status = NODE_INUSE;
    }
    }

    Drakmir

    ---
    þ Synchronet þ Holodeck One - bbs.holodeckone.com
  • From Tracker1@VERT/TRN to Digital Man on Fri Sep 23 22:48:00 2005
    Digital Man wrote:
    3) If I was to go and change my shell in the user editor and exit, I'm still >> the other shell. Users on the BBS don't have this option, but sysops do. D >> have to do something special to allow the JavaScript shell to switch to a
    different one?

    Yes. The shell must be changed from the default configuration menu (yes, users
    have access to it).

    Before going into the config menu via JS, but their current shell into a variable... after they exit, check against their current shell, and drop out of the shell... if he looks at the S3 shell, he will see that the stub is a simple loop with a pause in it, the shell itself drops out of the script when the shell is changed.. :)

    --
    Michael J. Ryan - tracker1(at)theroughnecks(dot)net - www.theroughnecks.net icq: 4935386 - AIM/AOL: azTracker1 - Y!: azTracker1 - MSN/Win: (email)

    ---
    þ Synchronet þ theroughnecks.net - you know you want it
  • From Digital Man@VERT to Drakmir on Sat Sep 24 13:04:00 2005
    Re: Some questions
    By: Drakmir to Digital Man on Fri Sep 23 2005 08:59 pm

    Re: Some questions
    By: Digital Man to Drakmir on Fri Sep 23 2005 04:09 pm

    Re: Some questions
    By: Drakmir to All on Fri Sep 23 2005 12:05 pm

    I've written a JavaScript shell, and I've got a few issues that I was resolve here.

    1) If I change a user record, sometimes the changes don't seem to stic logging the user offline and then online again, everything is fine.

    Can you give an example?

    2) When I change the values for node action and status, they don't see working correctly. An example is listed below.

    3) If I was to go and change my shell in the user editor and exit, I'm the other shell. Users on the BBS don't have this option, but sysops have to do something special to allow the JavaScript shell to switch t different one?

    Yes. The shell must be changed from the default configuration menu (yes, have access to it).

    Example of #2:
    When entering our menu system, I set the action/status to represent th user is in the "main menu".
    They run a telnet_gate door. (TWGS)
    Those users flash quickly with "Running Tradewars 2002" and then they "Logging In". Not sure why it goes back that far (that's 2 status cha back).
    When they return from TWGS, their status is on Loggin In still until t change menus (at which point my action/status code runs again and puts into "main menu")

    Am I missing something?
    All I'm doing is setting the current node's action/status numbers approrpriately. Is there a method I should be setting instead?

    Please post some code examples. Are you setting bbs.node_action or system.node_list[].action or what?

    function CommandShellUpdatePresence()
    {
    var node = system.node_list[bbs.node_num - 1];
    node.action = NODE_MAIN;

    if (node.status != NODE_QUIET)
    {
    node.status = NODE_INUSE;
    }
    }

    The correct way to set the current node's action value is by modifying bbs.node_action. The internal C code in Synchronet is responsible for keeping the current node's status and action synchronized.

    digital man

    Snapple "Real Fact" #16:
    The world's termites outweigh the world's humans 10 to 1.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Drakmir@VERT/HDONE to Tracker1 on Sat Sep 24 20:38:00 2005
    Re: Re: Some questions
    By: Tracker1 to Digital Man on Sat Sep 24 2005 03:48 am

    Digital Man wrote:
    3) If I was to go and change my shell in the user editor and exit, I'm st >> the other shell. Users on the BBS don't have this option, but sysops do. >> have to do something special to allow the JavaScript shell to switch to a >> different one?

    Yes. The shell must be changed from the default configuration menu (yes, u have access to it).

    Before going into the config menu via JS, but their current shell into a variable... after they exit, check against their current shell, and drop out of the shell... if he looks at the S3 shell, he will see that the stub is a simple loop with a pause in it, the shell itself drops out of the script whe the shell is changed.. :)

    --
    Michael J. Ryan - tracker1(at)theroughnecks(dot)net - www.theroughnecks.net icq: 4935386 - AIM/AOL: azTracker1 - Y!: azTracker1 - MSN/Win: (email)

    Makes sense. I didn't realize that if we exited the shell then the other shell would become active. I'll check on that after. I wasn't aware of the S3 shell. I take a peek at that later. :)

    Alan Wood

    ---
    þ Synchronet þ Holodeck One - bbs.holodeckone.com
  • From Drakmir@VERT/HDONE to Digital Man on Sat Sep 24 21:06:00 2005
    Re: Some questions
    By: Digital Man to Drakmir on Sat Sep 24 2005 06:04 pm

    Re: Some questions
    By: Drakmir to Digital Man on Fri Sep 23 2005 08:59 pm

    Re: Some questions
    By: Digital Man to Drakmir on Fri Sep 23 2005 04:09 pm

    Re: Some questions
    By: Drakmir to All on Fri Sep 23 2005 12:05 pm

    I've written a JavaScript shell, and I've got a few issues that I w resolve here.

    1) If I change a user record, sometimes the changes don't seem to s logging the user offline and then online again, everything is fine.

    Can you give an example?

    2) When I change the values for node action and status, they don't working correctly. An example is listed below.

    3) If I was to go and change my shell in the user editor and exit, the other shell. Users on the BBS don't have this option, but syso have to do something special to allow the JavaScript shell to switc different one?

    Yes. The shell must be changed from the default configuration menu (ye have access to it).

    Example of #2:
    When entering our menu system, I set the action/status to represent user is in the "main menu".
    They run a telnet_gate door. (TWGS)
    Those users flash quickly with "Running Tradewars 2002" and then th "Logging In". Not sure why it goes back that far (that's 2 status back).
    When they return from TWGS, their status is on Loggin In still unti change menus (at which point my action/status code runs again and p into "main menu")

    Am I missing something?
    All I'm doing is setting the current node's action/status numbers approrpriately. Is there a method I should be setting instead?

    Please post some code examples. Are you setting bbs.node_action or system.node_list[].action or what?

    function CommandShellUpdatePresence()
    {
    var node = system.node_list[bbs.node_num - 1];
    node.action = NODE_MAIN;

    if (node.status != NODE_QUIET)
    {
    node.status = NODE_INUSE;
    }
    }

    The correct way to set the current node's action value is by modifying bbs.node_action. The internal C code in Synchronet is responsible for keepin the current node's status and action synchronized.

    digital man

    Snapple "Real Fact" #16:
    The world's termites outweigh the world's humans 10 to 1.

    I'll adjust that code then. But it still doesn't explain why when a bbs.nodesync is done (which I assume the telnet code is doing) it reverts back to the last action state (not one I set). I'll look into it a bit more.

    ---
    þ Synchronet þ Holodeck One - bbs.holodeckone.com
  • From Drakmir@VERT/HDONE to Drakmir on Sat Sep 24 23:26:00 2005
    Re: Some questions
    By: Drakmir to Digital Man on Sun Sep 25 2005 12:06 am

    Okay, I changed the code. Now, for a rlogin_gate (since I just noticed that I'm using rlogin, not telnet) it shows the proper state when the message that says you can press ^] anytime is up. Once you get by that pause, then it reverts back to "at main menu" for me.

    I'm looking into it further on this side.

    Drakmir

    ---
    þ Synchronet þ Holodeck One - bbs.holodeckone.com
  • From Digital Man@VERT to Drakmir on Sat Sep 24 19:28:00 2005
    Re: Some questions
    By: Drakmir to Digital Man on Sun Sep 25 2005 01:06 am

    Can you give an example?

    2) When I change the values for node action and status, they don working correctly. An example is listed below.

    3) If I was to go and change my shell in the user editor and exi the other shell. Users on the BBS don't have this option, but s have to do something special to allow the JavaScript shell to sw different one?

    Yes. The shell must be changed from the default configuration menu have access to it).

    Example of #2:
    When entering our menu system, I set the action/status to repres user is in the "main menu".
    They run a telnet_gate door. (TWGS)
    Those users flash quickly with "Running Tradewars 2002" and then "Logging In". Not sure why it goes back that far (that's 2 stat back).
    When they return from TWGS, their status is on Loggin In still u change menus (at which point my action/status code runs again an into "main menu")

    Am I missing something?
    All I'm doing is setting the current node's action/status number approrpriately. Is there a method I should be setting instead?

    Please post some code examples. Are you setting bbs.node_action or system.node_list[].action or what?

    function CommandShellUpdatePresence()
    {
    var node = system.node_list[bbs.node_num - 1];
    node.action = NODE_MAIN;

    if (node.status != NODE_QUIET)
    {
    node.status = NODE_INUSE;
    }
    }

    The correct way to set the current node's action value is by modifying bbs.node_action. The internal C code in Synchronet is responsible for kee the current node's status and action synchronized.

    I'll adjust that code then. But it still doesn't explain why when a bbs.nodesync is done (which I assume the telnet code is doing) it reverts ba to the last action state (not one I set). I'll look into it a bit more.

    Let me explain it again: you didn't set bbs.node_action. The internal code in Synchronet automatically synchronizes the value of bbs.node_action with the node list (over-riding whatever value was already there).

    digital man

    Snapple "Real Fact" #173:
    Chinese is the most spoken language in the world.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Drakmir@VERT/HDONE to Drakmir on Sat Sep 24 23:36:00 2005
    Re: Some questions
    By: Drakmir to Drakmir on Sun Sep 25 2005 02:26 am

    Re: Some questions
    By: Drakmir to Digital Man on Sun Sep 25 2005 12:06 am

    Okay, I changed the code. Now, for a rlogin_gate (since I just noticed that I'm using rlogin, not telnet) it shows the proper state when the message tha says you can press ^] anytime is up. Once you get by that pause, then it reverts back to "at main menu" for me.

    I'm looking into it further on this side.

    Drakmir
    I changed my launch code for games to set bbs.node_action = NODE_XTRN just before calling bbs.exec_xtrn. That seems to fix the issue for now. :)

    Thanks everyone! (Oh, btw - switching shells works like a charm now).

    Drakmir

    ---
    þ Synchronet þ Holodeck One - bbs.holodeckone.com
  • From Tracker1@VERT/TRN to Drakmir on Sun Sep 25 18:05:00 2005
    Drakmir wrote:
    Thanks everyone! (Oh, btw - switching shells works like a charm now).

    glad to hear it.. :) will try and take a look sometime.. :)

    --
    Michael J. Ryan - tracker1(at)theroughnecks(dot)net - www.theroughnecks.net icq: 4935386 - AIM/AOL: azTracker1 - Y!: azTracker1 - MSN/Win: (email)

    ---
    þ Synchronet þ theroughnecks.net - you know you want it