Re: Digital Distortion Area Chooser
By: Underminer to All on Sat Mar 28 2015 05:01:31
I'm wanting to install Digital Distortion's area chooser, but I'm a little confused by their installation instructions. Does anyone know if it really is as simple as adding Load("DDmsgAreaChooser.js", true); to a configuration? And if so, which file do I need to edit to add this to the default synch shell? Underminer - The Undermine BBS |
Yes, it should be about that simple. But it depends on what kind of command shell you're using - Are you using the default Synchronet command shell? If so, you're probably using default.src (and default.bin), which is written in Baja. The instructions for my area choosers were mainly for installing it in a JavaScript script, so if you're using a JavaScript command shell (such as classic_shell.js), that's what you would update. In default.src, search for msg_select_area and change that line to run DDMsgAreaChooser.js - It looks like that should be online 225 (according to my copy of default.src). It should be underneath a line that says "cmdkey J".
In a JavaScript script, load("DDMsgAreaChooser.js", true); is one of several ways you could run it. If you're using a Baja command shell (such as the 'default' shell mentioned above), you'd want to run it this way:
exec "?DDMsgAreaChooser.js"
If you're using a JavaScript command shell, you could also run it this way:
bbs.exec("?DDMsgAreaChooser.js");
Before making mods to a standard command shell, I would recommend first copying it to the sbbs\mods directory and changing it there - That way, if you update your Synchronet files, you won't overwrite your customizations with one of the standard files. If you put a command shell in the sbbs\mods directory, Synchronet will find it & load it from there before looking in the standard directories.
For more information on Synchronet's command shells and scripting languages, these are some links that might be useful:
http://wiki.synchro.net/custom:command_shell http://wiki.synchro.net/module:index?s[]=scripts
Baja language reference:
http://www.synchro.net/docs/baja.html
JavaScript object reference:
http://www.synchro.net/docs/jsobjs.html
Nightfox
---
þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.com