• Don't show DOSEMU warning for JS External Programs

    From Michael J. Ryan@1:103/705 to GitLab issue in main/sbbs on Sat Feb 13 12:22:21 2021
    open https://gitlab.synchro.net/main/sbbs/-/issues/219

    When running a JS based external program, when DOSEMU isn't configured, Synchronet will display a warning.```Sorry, DOSEMU is not supported on this node.```If the command begins with "?" for a JS based external program, should probably suppress this message.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Michael J. Ryan@1:103/705 to GitLab note in main/sbbs on Sat Feb 13 12:22:52 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/219#note_1582

    Note: I set the "native" execution to true, which took care of the message, but wanted to point it out.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sat Feb 13 12:49:28 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/219#note_1583

    That's very strange an unexpected. Are you sure about that?Those error messages are displayed in external() long after the check for the command-lines that begin with '?' (and then take the javascript-execution path).
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Michael J. Ryan@1:103/705 to GitLab note in main/sbbs on Sat Feb 13 13:06:26 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/219#note_1584

    @rswindell yeah... I was adding BBSLink games... I only set the `Name`, `Internal Code` and `Command Line`, Command Line is `?bbslink lord` for example... I was seeing the message above when running each of the games.Note, I do have dosemu installed on the system, but haven't yet set anything up with it or configured it yet.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sat Feb 13 13:11:17 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/219#note_1585

    I don't have dosemu install or setup either and never see this warning.When you say "running each of the games" - that was after invoking "bbslink.js"? Maybe it has something to do specifically with bbslink.js?
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Michael J. Ryan@1:103/705 to GitLab note in main/sbbs on Sat Feb 13 13:20:50 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/219#note_1586

    That I am not sure... Contents below ```js// bbslink.js// ************************************************************// ************************************************************// *** ***// *** BBSlink.net InterBBS Door Server Connection Script ***// *** ***// ************************************************************// ************************************************************// // PLEASE DO NOT DISTRIBUTE THIS FILE// ==================================// // Version 1.2.1 1st April 2015// (C)2014-15 Mark Mearns. All Rights Reserved.//// Thanks go to haliphax for cryptography advice.////// USAGE:// =====// // 1. Place this script in your Synchronet mods directory,// e.g. C:\SBBS\MODS (Windows) or /sbbs/mods/ (Linux).// 2. Configure this script with the codes given for your system// 3. Create an external program as normal in SCFG using the following// example as a guide - this example calls The Legend of The Red// Dragon (LORD) as the door to be accessed:// // +--------------------------------------------------------+// ? BBSlink - LORD ?// +--------------------------------------------------------?// ? Name InterBBS LORD ?// ? Internal Code BBSLORD ?// ? Start-up Directory ../mods ?// ? Command Line ?bbslink lord ?// ? Clean-up Command Line ?// ? Execution Cost None ?// ? Access Requirements ?// ? Execution Requirements ?// ? Multiple Concurrent Users Yes ?// ? Intercept I/O No ?// ? Native Executable No ?// ? Use Shel

    l to Execute No ?// ? Modify User Data No ?// ? Execute on Event No ?// ? Pause After Execution No ?// ? BBS Drop File Type None ?// ? Place Drop File In Node Directory ?// ? Time Options... ?// +--------------------------------------------------------+//// Note that this screen is from Synchronet for Linux, Windows versions// may vary, but the commands are all the same.//// 4. You can call different door games by changing the argument in the// command line, i.e. ?bbslink teos, ?bbslink lord2 or to show the user// a menu of all the available doors, ?bbslink menu - an up-to-date list// of available doors can be found at http://www.bbslink.net/install.php// // I hope you find BBSlink.net useful. Please guard your BBSlink login// credentials carefully, and should your system's authorisation code be// compromised, please contact me immediately for a new one.// // All feedback is greatly appreciated!// // Mark Mearns.load("sbbsdefs.js");load("http.js");var host = "games.bbslink.net"; // Server address, usually 'games.bbslink.net'var syscode = ""; // Your system codevar authcode = ""; // Your system's authorisation codevar schemecode = ""; // Scheme code// ***********************************// *** DO NOT EDIT BELOW THIS LINE ***// ***********************************function randomString(len, charSet) { charSet = charSet || 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var randomString = ''; for (var i = 0; i < len; i++) { var randomPoz = Math.floor(Math.random() * charSet.length); randomString += charSet.substring(randomPoz, randomPoz + 1); } return randomString;}if (argv[0] == null) { console.writeln("No door code passed to script"); console.pause(); exit();}var xkey = randomString(6);var doorcode = argv[0];va

    r scripttype = "JS";var scriptver = "1.2.1";gettkn = new HTTPRequest();gettkn.SetupGet("http://" + host + "/token.php?key=" + xkey);gettkn.SendRequest();gettkn.ReadResponse();var token = gettkn.body;req = new HTTPRequest();req.SetupGet("http://" + host + "/auth.php?key=" + xkey);req.request_headers.push("X-User: " + user.number);req.request_headers.push("X-System: " + syscode);req.request_headers.push("X-Auth: " + md5_calc(authcode + token, hex = true));req.request_headers.push("X-Code: " + md5_calc(schemecode + token, hex = true));req.request_headers.push("X-Rows: " + console.screen_rows);req.request_headers.push("X-Key: " + xkey);req.request_headers.push("X-Door: " + doorcode);req.request_headers.push("X-Token: " + token);req.request_headers.push("X-Type: " + scripttype);req.request_headers.push("X-Version: " + scriptver);req.SendRequest();req.ReadResponse();if (req.body == "complete") { bbs.telnet_gate(host);}else { console.writeln("An error occurred when contacting the door server:"); console.writeln("[" + req.body + "]"); console.writeln(""); console.pause();}```
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sat Feb 13 13:24:21 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/219#note_1587

    I'll leave it to you to trouble-shoot that script. I don't use it and the problem described in this issue does not occur under normal conditions (e.g. when not using bbslink.js).Maybe the warning you're seeing is actually from the BBSLink server?
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Sat Feb 13 13:24:22 2021
    close https://gitlab.synchro.net/main/sbbs/-/issues/219
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sat Feb 13 13:26:43 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/219#note_1588

    BTW, if the warning were actually coming from *your* BBS, you would see a corresponding local log message, one of:1. "DOSEMU disabled, program not run"2. "DOSEMU invalid DOSEmuPath, program not run"3. "DOSEMU not found: /path/to/dosemu.bin"
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Michael J. Ryan@1:103/705 to GitLab note in main/sbbs on Sat Feb 13 13:44:18 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/219#note_1589

    @rswindell okay, now I'm not able to recreate the issue at all, even with the original entries. weird. Closing.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)