-
Help with a JavaScript game
From
Zarakava@VERT to
All on Sun Aug 14 17:21:14 2011
Hello! I don't know if this'll get answered for a while, but no huge deal.ããI'm working on programming a javascript/bbs door game, and it's going great upãto one point. ããWith the console.inkey() command, no matter what the timeout, it always does aãconsole.pause() afterwards. ãconsole.getkey() works fine, but I would really prefer to have it timeout, asãI'm having a loop check some conditions every second. Is there a way to getãread of that console.pause() after the inkey?ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Nightfox@VERT/DIGDIST to
Zarakava on Sun Aug 14 22:37:25 2011
Re: Help with a JavaScript gameã By: Zarakava to All on Sun Aug 14 2011 17:21:14ãã > With the console.inkey() command, no matter what the timeout, it always doesã > console.pause() afterwards. ã > console.getkey() works fine, but I would really prefer to have it timeout, aã > I'm having a loop check some conditions every second. Is there a way to getã > read of that console.pause() after the inkey?ããLooking at sbbsdefs.js, I see the following mode setting:ãK_NOCRLF=(1<<9);/* Don't print CRLF after string input */ããHave you tried specifying K_NOCRLF for the mode parameter of console.inkey()? ãI haven't tried that myself, but it sounds like that may do what you want..ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digdist.bbsindex.comã
-
From
Nightfox@VERT/DIGDIST to
Zarakava on Sun Aug 14 22:42:15 2011
Re: Help with a JavaScript gameã By: Zarakava to All on Sun Aug 14 2011 17:21:14ãã > With the console.inkey() command, no matter what the timeout, it always doesã > console.pause() afterwards. ã > console.getkey() works fine, but I would really prefer to have it timeout, aã > I'm having a loop check some conditions every second. Is there a way to getã > read of that console.pause() after the inkey?ããI think I read your email too quickly before I replied last time.. The modeãsetting I found turns off printing a CR/LF at the end.ããIs it always outputting a pause for you, or does it only do it at the end of aãscreenful of text, for instance?ããLooking through sbbsdefs.js, I also see these modes that can be used forãbbs.sys_status:ãvar SS_PAUSEOFF=(1<<18);/* Pause off, overriding user default*/ãAnd for use with user.settings:ãvar USER_PAUSE=(1<<4);/* Pause on every screen full*/ãAnd for putmsg and printfile:ãvar P_NOPAUSE=(1<<4);/* Disable screen pause*/ããIf it's a screenful pause you're seeing, perhaps you can temporarily set one ofãthose modes to get around the issue.ããBut I don't know for sure..ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digdist.bbsindex.comã
-
From
Digital Man@VERT to
Zarakava on Mon Aug 15 18:35:41 2011
Re: Help with a JavaScript gameã By: Zarakava to All on Sun Aug 14 2011 05:21 pmãã > Hello! I don't know if this'll get answered for a while, but no huge deal.ã >ã > I'm working on programming a javascript/bbs door game, and it's going greatã > up to one point.ã >ã > With the console.inkey() command, no matter what the timeout, it alwaysã > does a console.pause() afterwards.ããconsole.inkey() should not cause a pause prompt.ãã > console.getkey() works fine, but I would really prefer to have it timeout,ã > as I'm having a loop check some conditions every second. Is there a way toã > get read of that console.pause() after the inkey?ããI think the first thing is to find out what's causing the pause. Are displayingãsomething in this loop? You can always clear the line counter, but I think it'sãgood idea to find out what is incrementing the line counter in the first placeã(and it's not inkey()).ããã digital manããSynchronet "Real Fact" #78:ã172 Synchronet Match Maker registrations were sold (@$69) between 1995 and 1996.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Digital Man@VERT to
Nightfox on Mon Aug 15 18:36:10 2011
Re: Help with a JavaScript gameã By: Nightfox to Zarakava on Sun Aug 14 2011 10:37 pmãã > Re: Help with a JavaScript gameã > By: Zarakava to All on Sun Aug 14 2011 17:21:14ã >ã > > With the console.inkey() command, no matter what the timeout, it alwaysã > > does console.pause() afterwards.ã > > console.getkey() works fine, but I would really prefer to have itã > > timeout, a I'm having a loop check some conditions every second. Isã > > there a way to get read of that console.pause() after the inkey?ã >ã > Looking at sbbsdefs.js, I see the following mode setting:ã > K_NOCRLF=(1<<9);/* Don't print CRLF after string input */ã >ã > Have you tried specifying K_NOCRLF for the mode parameter ofã > console.inkey()? I haven't tried that myself, but it sounds like that mayã > do what you want..ããDisplay console.inkey() doesn't display anything, that mode flag would noãeffect.ãã digital manããSynchronet "Real Fact" #63:ãSynchronet PCMS (introduced w/v2.0) is Programmable Command and Menu Structure.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Nightfox@VERT/DIGDIST to
Digital Man on Mon Aug 15 20:22:08 2011
Re: Help with a JavaScript gameã By: Digital Man to Nightfox on Mon Aug 15 2011 18:36:10ãã > > K_NOCRLF=(1<<9);/* Don't print CRLF after string input */ãã > Display console.inkey() doesn't display anything, that mode flag would noã > effect.ããAh, I see.ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digdist.bbsindex.comã
-
From
Zarakava@VERT to
Digital Man on Sun Aug 21 15:59:06 2011
I hadn't actually checked this in a bit, but the previous error was fixed by aãsuggestion from echickenããconsole.line_counter=0;ããNew problem.ããfile.iniRemoveSection(1);ããIs not working. Gives the error c:\sbbs\exec\timedEvents.js line 67:ãTypeError: file.iniRemoveSection is not a function.ããFile is Defined, as I used file.iniSetObject just a line before. Any advice?ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Zarakava@VERT to
Zarakava on Sun Aug 21 16:45:25 2011
I hadn't actually checked this in a bit, but the previous error was fixedã > by a suggestion from echickenã > ã > console.line_counter=0;ã > ã > New problem.ã > ã > file.iniRemoveSection(1);ã > ã > Is not working. Gives the error c:\sbbs\exec\timedEvents.js line 67:ã > TypeError: file.iniRemoveSection is not a function.ã > ã > File is Defined, as I used file.iniSetObject just a line before. Anyã > advice?ãIgnore this, I was using 3.13...ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã