Re: doorscan
By: deon to Digital Man on Wed Jan 20 2021 11:06 pm
> DM,
>
> Looking for your advise with the following.
>
> I've setup SBBS as a door server, using rlogin with xtrn= to login and
> execute a game - it works well. :)
>
> I was running doorscan.js and added it to xtrn_sec.js (in mods/) as per the
> example in doorscan.txt
>
> I've noticed, that if I rlogin without a door code (normal rlogin), that
> xtrn_sec is run when I get to the menu, and again when I launch a door. (As
> expected)
>
> If however, I rlogin with a door code (xtrn=), the door is run, but
> xtrn_sec is not run at all. Should it be executed before the door in this
> case?
No. The xtrn_sec module is a menu where the user can select what external program to run (or none).
> I then thought I'd play with modopts.ini and use the eval_before_exec - to
> see if it would run the doorscan code.
It can if you have the latest sbbs v3.18c with the prextrn module in exec.
> When I first used
> eval_before_exec = load("../xtrn/doorscan/doorscan.js","run",prog.code);
>
> I noticed SBBS restarted after logging in (assuming it crashed?) and nothing
> in syslog about it. I have logging set to Debugging.
>
> (After some more debugging, it appears it run 165 times before sbbs
> restarted - so I guess it looped and ran out of memory?)
>
> If I changed prog.code to prog.name (which should generate an error) - it
> does generate an error and the door runs just fine.
>
> Should the eval_before_exec() work with doorscan?
Yes, if you're using the prextrn module.
--
digital man
Sling Blade quote #19:
Doyle: I can't so much as drink a damn glass of water around a midget
Norco, CA WX: 69.8øF, 32.0% humidity, 9 mph SSE wind, 0.00 inches rain/24hrs
--- SBBSecho 3.12-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
|