Hi, all.
First off, let me say that i'm a total newbie to (Free) Pascal.
As you may know, I ported Impulse BBS to Linux. I'm having problems getting door games working. For some reason they do not run from a menu.
I have to hard code them into the source code. The code runs fine, however, no matter which door game I choose to run, it runs the last one in the case statement. Here is that code, if you can help out, i'd be
very thankful.
I'm not entirely certain what it is that you are trying to do. The case statements seem unneeded, since you separate them out in different if statements.
I'm not entirely certain what it is that you are trying to do. The case statements seem unneeded, since you separate them out in different if statements.
Hi, all.
First off, let me say that i'm a total newbie to (Free) Pascal.
As you may know, I ported Impulse BBS to Linux. I'm having problems getting door games working. For some reason they do not run from a menu.
I have to hard code them into the source code. The code runs fine, however, no matter which door game I choose to run, it runs the last one in the case statement. Here is that code, if you can help out, i'd be
very thankful.
I'm not entirely certain what it is that you are trying to do.
The case statements seem unneeded, since you separate them out in
different if statements.
You're right. The case statements weren't needed at all. The original problem still remains, however. "1", "2" and "3" all launch "shell('/home/imp/door 1 DF')". Not sure what i'm doing wrong.
I would think the following would work. Does it not work like that? Is it possible that your /home/imp/door/door script is not coded correctly?
Does it have anything to do with you using "shell('/home/imp/door 1
DF')" in all three? Shouldn't "1" be either a variable to be able to
pass each number, or "1", "2" and "3" respectively?
Does it have anything to do with you using "shell('/home/imp/door 1 DF')" in all three? Shouldn't "1" be either a variable to be able to pass each number, or "1", "2" and "3" respectively?
In all three?
What does the command line parameter '1' refer to for the door script? I'm assuming it means the node number?
I'm assuming it means the node number?
You are correct, sir.
Does it have anything to do with you using "shell('/home/imp/door
1 DF')" in all three? Shouldn't "1" be either a variable to be
able to pass each number, or "1", "2" and "3" respectively?
In all three?
will only work if someone on node 1 is running the door, or you only run a 1 node BBS, or you run separate scripts for each node. You may want to change that to a variable that can be passed by the BBS.
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 105 |
Nodes: | 16 (1 / 15) |
Uptime: | 03:42:44 |
Calls: | 5,904 |
Calls today: | 4 |
Files: | 8,496 |
D/L today: |
86 files (35,252K bytes) |
Messages: | 343,150 |