OpenDoors, and I'm wondering if OpenDoors provides any functions to help with multi-node playability, such as exchanging data between instances of the program running on multiple nodes? I was looking for this in the documentation for OpenDoors, but the only thing it talks about regarding multi-node doors is concurrent file access.OpenDoors probides access to the communication between the user and your
the door are up to you. What you will need to do is either create 1 data
file for all nodes, use file sharing to open the file. Define a standard
record for each node. When a node goes in the door, it seeks to that position and writes its information there. Eg.
TYPE NodeRec = RECORD
UserName : String[50];
Action : String[50];
Message : String[50];
Online : Boolean;
END;
Then, to send a message to say node # 3, you'd open the file, seek to record #3, read the record into a variable. Change Message to the message you want send the user and then seek back to record #3, write the record out. In you game, when your user is waiting at a menu and not doing anything else, check for message being not '' and if it's not '', then you output the message to
Hi all -
Lately I've been casually working on a door game written in C++ using OpenDoors, and I'm wondering if OpenDoors provides any functions to help with multi-node playability, such as exchanging data between instances of the program running on multiple nodes? I was looking for this in the documentation for OpenDoors, but the only thing it talks about regarding multi-node doors is concurrent file access.
I don't recall OpenDoors including any functions to facilitate sharing data between nodes.
Lately I've been casually working on a door game written in C++ using OpenDoors, and I'm wondering if OpenDoors provides any functions to help with multi-node playability, such as exchanging data between instances of the program running on multiple nodes? I was looking for this in the documentation
for OpenDoors, but the only thing it talks about regarding multi-node doors is
concurrent file access.
If not, I suppose I could probably come up with a way, but I have a feeling it
might be a little klunky if OpenDoors doesn't provide an easier way to do it.
Fastest solution is to probably use sqlite (having a queue table for each node)... it will serialize a lot of the data between nodes, if you aren't
Fastest solution is to probably use sqlite (having a queue table for each
node)... it will serialize a lot of the data between nodes, if you aren't
That's an interesting idea.. Not sure that I'd want to require database software for a BBS door game though..
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 105 |
Nodes: | 16 (1 / 15) |
Uptime: | 09:09:54 |
Calls: | 5,902 |
Calls today: | 2 |
Files: | 8,496 |
D/L today: |
43 files (4,640K bytes) |
Messages: | 342,951 |