I can't imagine any remarkable way to do this without the use of a mediator, such as the use of PHP on a webpage to receive and send messages between servers.
1) What would be the point of server to server communication? One thought I had was that if you had, say, a built-in friend system (similar to the pager I suppose), when a player connects to server A, his buddies on server B can be notified. Or if an event occurs on server A, then the event can be told as well to server B. I'm not exactly sure of any real spectacular uses for this communication, but it's something I thought a bit interesting.
2) How would you go about performing this? I can't think of any ideal ways to do this. I do understand BYOND can send information and receive information to page using PHP (I don't know PHP yet, that's on a long list of to-do items). However, this would be a useful mediator I assume. Or are there better ones?
3) Are there any sites I should look up, blog posts, forum posts, etc. that might have more information? I did a few quick searches and couldn't find a whole lot that was incredibly useful to me.
Thanks!
ID:151458
![]() Nov 6 2010, 9:42 am
|
|
![]() Nov 6 2010, 9:54 am
|
|
world.Export() and world.Topic().
Generally you should know this before deciding to use it! If you're interested, though, you should take a look at |
What would be the point of server to server communication? In one of my games, I created a cross-server chat channel that the GMs could use to communicate with each other. I never got around to making it available to all the players because I couldn't come up with a good way to implement it without all the servers getting spammed like crazy from having 100 people talk in the same channel. As Nickr5 said, look up world.Export() and world.Topic(). If this is your first time diving into those procs, have patience. It took me a little while to understand how to properly use them. Always feel free to search for demos/libraries for more info. |
Sounds good. I'll definitely look into all of that.
@Nickr5, I have considered a few uses for it (like Gun said, GM communication) and the event notification; I was moreso wondering if other people had any good uses for it. Thank you! |
if you plan on using php check out http://www.byethost.com/ for a free online database.
|
I've found a couple neat uses too.
I'm making an RPG. I have a lobby that communicates with a separate instance of DD, which is actually the game. I can use the lobby (and a bit of javascript) to have players join the game, and I send all of the info via the topic data string (byond://?important-stuff). When the player arrives, I tell the lobby that they successfully connected. In the future, I also plan to have a "control panel" which basically runs the show. A lot of world/topic will be used, because I'm going to use the control panel to do things like executing mysql queries, sending data to the lobby/game (such as info like "player has earned medal!" or something). Also, I plan on having multiple parts of the game world split up across a few DD instances, and I will have to alert each world when something happens, to prevent duplicate things (players joining two parts of the world, potentially others) from happening, as well as synchronizing events (updating the resource file, reloading databases, etc). |