• Javascript Door

    From Rassilon@VERT/CITADEL to All on Thu Mar 25 23:37:00 2010
    I was just trying to add a javascript door & I seem to have run into a snag. ãI can't get the javascript to run. Synchronet just pauses for a second &ãreturns to the prompt.ããIs it even possible to write a door in javascript or do I need to use baja orãC++ or something?ãã-Rassilon...ããã---ã þ Synchronet þ The Citadel BBS - citadel.synchro.netã
  • From Digital Man@VERT to Rassilon on Fri Mar 26 00:54:46 2010
    Re: Javascript Doorã By: Rassilon to All on Thu Mar 25 2010 11:37 pmãã > I was just trying to add a javascript door & I seem to have run into aã > snag. I can't get the javascript to run. Synchronet just pauses for aã > second & returns to the prompt.ããPlease paste your configuration from SCFG here.ãã > Is it even possible to write a door in javascript or do I need to use bajaã > or C++ or something?ããYes, JavaScript modules can be executed as doors (e.g. xtrn/tw2/tw2.js). Seeãhttp://wiki.synchro.net/howto:door:index#modules for details.ãã digital manããSnapple "Real Fact" #27:ãA ball of glass will bounce higher then a ball of rubber.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Lord Time@VERT/TIME to Rassilon on Thu Mar 25 23:37:00 2010
    In a reply from Rassilon on 23:37 about Javascript DoorããR> I was just trying to add a javascript door & I seem to have run into a snag.ãR> I can't get the javascript to run. Synchronet just pauses for a second &ãR> returns to the prompt.ããwhat one?ããR> Is it even possible to write a door in javascript or do I need to use bajaãR> or C++ or something?ããthis I can't answerãã---ãRob StarrãLord Time SysOp of Time Warp of the Future BBSãtelnet://time.synchro.net:24ãICQ # 11868133 Yahoo : lordtime2000ãAIM : LordTime20000 MSN : Lord TimeãJabber : lordtime2000@gmail.com Astra : lord_timeãããþ CMPQwk 1.42-R2 16554 þ I [*] My dog. He [ate] My Cat.ã---ã þ Synchronet þ Time Warp of the Future BBS - Home of League 10 IBBS Gamesã
  • From John Guillory@VERT/MAINLINE to Rassilon on Fri Mar 26 06:42:00 2010
    Re: Javascript Doorã By: Rassilon to All on Thu Mar 25 2010 11:37 pmãã > Is it even possible to write a door in javascript or do I need to use baja oã > C++ or something?ã Yeah, there's three or four allready written.... In a way, one would assumeã Javascript is the easiest to write a door in, since it automatically hasã support for writing to the serial port and console at the same time...ããã---ã þ Synchronet þ Roach Guts - roachguts.comã
  • From Nightfox@VERT/DIGDIST to Rassilon on Fri Mar 26 07:30:56 2010
    Re: Javascript Doorã By: Rassilon to All on Thu Mar 25 2010 23:37:00ãã > I was just trying to add a javascript door & I seem to have run into a snag.ã > I can't get the javascript to run. Synchronet just pauses for a second &ã > returns to the prompt.ããTo execute a JavaScript door, you need to start the command line with a ?. Forãexample, for Deuce's FS editor:ã?fseditor.js %fãã > Is it even possible to write a door in javascript or do I need to use baja oã > C++ or something?ããYes, doors can be written in JavaScript, although they tend to beãSynchronet-specific doors. Synchronet comes with at least one Synchronet doorã(tw2), and things like Deuce's FS editor and SlyEdit are written in JavaScript.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS: digdist.bbsindex.comã
  • From Corey@VERT/TSGC to Nightfox on Fri Mar 26 07:59:52 2010
    Re: Javascript Doorã By: Nightfox to Rassilon on Fri Mar 26 2010 07:30 amãã > Re: Javascript Doorã > By: Rassilon to All on Thu Mar 25 2010 23:37:00ã > ã > > I was just trying to add a javascript door & I seem to have run into a snã > > I can't get the javascript to run. Synchronet just pauses for a second &ã > > returns to the prompt.ã > ã > To execute a JavaScript door, you need to start the command line with a ?. ã > example, for Deuce's FS editor:ã > ?fseditor.js %fã > ã > > Is it even possible to write a door in javascript or do I need to use bajã > > C++ or something?ã > ã > Yes, doors can be written in JavaScript, although they tend to beã > Synchronet-specific doors. Synchronet comes with at least one Synchronet doã > (tw2), and things like Deuce's FS editor and SlyEdit are written in JavaScriã > ã > Nightfoxã > ããso how would you run a door from the js menu like classic_shell.js?ããCaput meum major podice meo.ãThis message has ended, go in peace...ãã---ã þ Synchronet þ Three Stooges Gentlemens Club - Las Vegas, Nvã
  • From Digital Man@VERT to Corey on Fri Mar 26 10:22:01 2010
    Re: Javascript Doorã By: Corey to Nightfox on Fri Mar 26 2010 07:59 amãã > Re: Javascript Doorã > By: Nightfox to Rassilon on Fri Mar 26 2010 07:30 amã >ã > > Re: Javascript Doorã > > By: Rassilon to All on Thu Mar 25 2010 23:37:00ã > >ã > > > I was just trying to add a javascript door & I seem to have run intoã > > > a sn I can't get the javascript to run. Synchronet just pauses for aã > > > second & returns to the prompt.ã > >ã > > To execute a JavaScript door, you need to start the command line with aã > > ?. example, for Deuce's FS editor:ã > > ?fseditor.js %fã > >ã > > > Is it even possible to write a door in javascript or do I need to useã > > > baj C++ or something?ã > >ã > > Yes, doors can be written in JavaScript, although they tend to beã > > Synchronet-specific doors. Synchronet comes with at least oneã > > Synchronet do (tw2), and things like Deuce's FS editor and SlyEdit areã > > written in JavaScriã > > Nightfoxã > >ã >ã > so how would you run a door from the js menu like classic_shell.js?ããbbs.exec_xtrn("code") is the most correct way to run any "door" from a shell,ãregardless of what language the door is written in. Alternatively, you couldãuse load() or bbs.exec(), but I dont' recommend it.ãã digital manããSnapple "Real Fact" #71:ãThere is a town called "Big Ugly" in West Virginia.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Corey@VERT/TSGC to Digital Man on Fri Mar 26 14:49:22 2010
    Re: Javascript Doorã By: Digital Man to Corey on Fri Mar 26 2010 10:22 amãã > Re: Javascript Doorã > By: Corey to Nightfox on Fri Mar 26 2010 07:59 amã > ã > > Re: Javascript Doorã > > By: Nightfox to Rassilon on Fri Mar 26 2010 07:30 amã > >ã > > > Re: Javascript Doorã > > > By: Rassilon to All on Thu Mar 25 2010 23:37:00ã > > >ã > > > > I was just trying to add a javascript door & I seem to have run intã > > > > a sn I can't get the javascript to run. Synchronet just pauses forã > > > > second & returns to the prompt.ã > > >ã > > > To execute a JavaScript door, you need to start the command line with ã > > > ?. example, for Deuce's FS editor:ã > > > ?fseditor.js %fã > > >ã > > > > Is it even possible to write a door in javascript or do I need to uã > > > > baj C++ or something?ã > > >ã > > > Yes, doors can be written in JavaScript, although they tend to beã > > > Synchronet-specific doors. Synchronet comes with at least oneã > > > Synchronet do (tw2), and things like Deuce's FS editor and SlyEdit areã > > > written in JavaScriã > > > Nightfoxã > > >ã > >ã > > so how would you run a door from the js menu like classic_shell.js?ã > ã > bbs.exec_xtrn("code") is the most correct way to run any "door" from a shellã > regardless of what language the door is written in. Alternatively, you couldã > use load() or bbs.exec(), but I dont' recommend it.ã > ã > digital manã > ã > Snapple "Real Fact" #71:ã > There is a town called "Big Ugly" in West Virginia.ã > ããah, ok great. I config it properly in scfg and just call it by the name I gaveãit? sounds easy. thanks as always.ãããCaput meum major podice meo.ãThis message has ended, go in peace...ãã---ã þ Synchronet þ Three Stooges Gentlemens Club - Las Vegas, Nvã
  • From Corey@VERT/TSGC to Digital Man on Fri Mar 26 15:04:25 2010
    Re: Javascript Doorã By: Digital Man to Corey on Fri Mar 26 2010 10:22 amãã > Re: Javascript Doorã > By: Corey to Nightfox on Fri Mar 26 2010 07:59 amã > ã > > Re: Javascript Doorã > > By: Nightfox to Rassilon on Fri Mar 26 2010 07:30 amã > >ã > > > Re: Javascript Doorã > > > By: Rassilon to All on Thu Mar 25 2010 23:37:00ã > > >ã > > > > I was just trying to add a javascript door & I seem to have run intã > > > > a sn I can't get the javascript to run. Synchronet just pauses forã > > > > second & returns to the prompt.ã > > >ã > > > To execute a JavaScript door, you need to start the command line with ã > > > ?. example, for Deuce's FS editor:ã > > > ?fseditor.js %fã > > >ã > > > > Is it even possible to write a door in javascript or do I need to uã > > > > baj C++ or something?ã > > >ã > > > Yes, doors can be written in JavaScript, although they tend to beã > > > Synchronet-specific doors. Synchronet comes with at least oneã > > > Synchronet do (tw2), and things like Deuce's FS editor and SlyEdit areã > > > written in JavaScriã > > > Nightfoxã > > >ã > >ã > > so how would you run a door from the js menu like classic_shell.js?ã > ã > bbs.exec_xtrn("code") is the most correct way to run any "door" from a shellã > regardless of what language the door is written in. Alternatively, you couldã > use load() or bbs.exec(), but I dont' recommend it.ã > ã > digital manã > ã > Snapple "Real Fact" #71:ã > There is a town called "Big Ugly" in West Virginia.ã > ããworks great, thanks. no I can learn javascript and build custom menus sections.ãhere is the first code of my door menu.ãã//############################ Doors Menu ###############################ããfunction doors()ã{ã var key;ãã while(1) {ã if(!(user.settings & USER_EXPERT))ã bbs.menu("doors");ãã console.print("\r\nGame Menu: ");ã key=get_next_keys("?XA\r");ã bbs.log_key(key);ã switch(key) {ãã case '?':ã if(user.settings & USER_EXPERT)ã bbs.menu("doors");ã break;ãã case 'A':ã bbs.exec_xtrn("amb4")ã break;ãã case 'X':ã default:ã return;ã }ã }ã}ããI had done one in baja and now figured to make a js one.ãsynchronet has changed a lot over the years, but the extern system stayed theãsame. thanks again.ããCaput meum major podice meo.ãThis message has ended, go in peace...ãã---ã þ Synchronet þ Three Stooges Gentlemens Club - Las Vegas, Nvã
  • From Rassilon@VERT/CITADEL to Digital Man on Fri Mar 26 18:22:00 2010
    Re: Javascript Doorã By: Digital Man to Rassilon on Fri Mar 26 2010 12:54 amããInternal Code: TESTãStart-up Directory: (It's in the exec. directory for now - so no value)ãCommand Line: test.jsãClean-up Command Line:ãExecution Cost: NoneãAccess Requirements: LEVEL 90|lEVEL 90 LEVEL 90 ãExecution Requirements:ãMultiple Concurrent Users: NoãIntercept Standard I/O: NoãNative (32-bit) Executable: NoãUse Shell to Execute: NoãModify User Data: NoãExecute on Event: NoãBBS Drop File Type: NoneãPlace Drop File In: Node DirectoryãTime Options...ãBBS Drop File Type: Noneãã??ãã-Rassilon...ãã---ã þ Synchronet þ The Citadel BBS - citadel.synchro.netã
  • From Rassilon@VERT/CITADEL to Lord Time on Fri Mar 26 18:34:00 2010
    Re: Javascript Doorã By: Lord Time to Rassilon on Thu Mar 25 2010 11:37 pmãã > R> I was just trying to add a javascript door & I seem to have run into a snã > R> I can't get the javascript to run. Synchronet just pauses for a second &ã > R> returns to the prompt.ãã > what one?ããI was planning to write one.ãã-Rassilon...ãã---ã þ Synchronet þ The Citadel BBS - citadel.synchro.netã
  • From Rassilon@VERT/CITADEL to Nightfox on Fri Mar 26 18:37:00 2010
    Re: Javascript Doorã By: Nightfox to Rassilon on Fri Mar 26 2010 07:30 amãã > To execute a JavaScript door, you need to start the command line with a ?. ã > example, for Deuce's FS editor:ã > ?fseditor.js %fããYeah, I tried that. Must be something else I'm doing wrong.ãã-Rassilon...ãã---ã þ Synchronet þ The Citadel BBS - citadel.synchro.netã
  • From Lord Time@VERT/TIME to Rassilon on Fri Mar 26 21:52:00 2010
    In a reply from Rassilon on 18:34 about Javascript DoorããR> > R> I was just trying to add a javascript door & I seem to have run into aãR> > R> I sn can't get the javascript to run. Synchronet just pauses for aãR> > R> second & returns to the prompt.ããR> > what one?ããR> I was planning to write one.ããohh okãã---ãRob StarrãLord Time SysOp of Time Warp of the Future BBSãtelnet://time.synchro.net:24ãICQ # 11868133 Yahoo : lordtime2000ãAIM : LordTime20000 MSN : Lord TimeãJabber : lordtime2000@gmail.com Astra : lord_timeãããþ CMPQwk 1.42-R2 16554 þ Never, ever, french-kiss a dragon!ã---ã þ Synchronet þ Time Warp of the Future BBS - Home of League 10 IBBS Gamesã
  • From Digital Man@VERT to Rassilon on Mon Mar 29 00:11:57 2010
    Re: Javascript Doorã By: Rassilon to Digital Man on Fri Mar 26 2010 06:22 pmãã > Re: Javascript Doorã > By: Digital Man to Rassilon on Fri Mar 26 2010 12:54 amã >ã > Internal Code: TESTã > Start-up Directory: (It's in the exec. directory for now - so no value)ã > Command Line: test.jsããChange that to "?test.js" (without the quotes). Seeãhttp://wiki.synchro.net/howto:door:index#command_line for details.ãã digital manããSnapple "Real Fact" #170:ãIn 1878, the first telephone book ever issued contained only 50 names. ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã