TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: deon
from: Mortifis
date: 2021-01-20 23:19:00
subject: Re: doorscan

 > 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?

 > I then thought I'd play with modopts.ini and use the eval_before_exec - to
 > see if it would run the doorscan code.

 > 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?


A couple of have 'game server' mods ... I can share my method as an example if
you'd like

~mortifis

~Ephram

---
 þ Synchronet þ The Realm of Dispair telnet ephram.synchro.net 2323 ssh 2222 web 82
                                                                                                               
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.