DM,
Looking for your advise with the following.
I've setup SBBS as a door server, using rlogin with xtrn=<CODE> 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=<CODE>), 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?
DM,
Looking for your advise with the following.
I've setup SBBS as a door server, using rlogin with xtrn=<CODE> 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=<CODE>), 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
At this point I think I'm just going to write my own to be part of my custom xtrn menu module..I will make those changes public once I get them written
deon, I went ahead and committed what I had done
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 578 |
Nodes: | 8 (0 / 8) |
Uptime: | 29:54:41 |
Calls: | 10,736 |
Calls today: | 1 |
Files: | 5 |
Messages: | 443,198 |
Posted today: | 1 |