• Some questions

    From Drakmir@VERT/HDONE to All on Fri Sep 23 12: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 15:09:16 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 20: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 Sat Sep 24 02: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 17:04:13 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 Sun Sep 25 00: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 Sun Sep 25 01: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 Sun Sep 25 03: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 23:28:49 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 Sun Sep 25 03: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 22: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ã