Author Topic: Question involving client messaging  (Read 2279 times)

So, I'm making a client-sided mod game, and 2 players need to have it to play the game together, but I need a way to be able to send a message (action really) to the player who has the mod. It's just 2 clients on any server, and they both have a mod. Please tell me there is a way.

if not anything else, you could use clientCmds and serverCmds and have the server as the middleman, so to speak.

of course depending on what you're doing this may be problematic

Make a client command, something like this:

Code: [Select]
function clientCmdGameAction(%feature, %arg, %args, %argss)
{
    switch(%feature)
    {
        case 1:

        case 2:

        case 3:
    }
}

Then on the server, you can do something like:

commandToClient(%client, 'gameAction', 1, %x, %y, %z);

I think he means he has no access to the server and both people are clients

I think he means he has no access to the server and both people are clients

Is that even possible :o

Is that even possible :o
Well with an external server I think

Well with an external server I think
You could annoy everyone and use the chat, or use rtbc for it

You could probably connect them somehow using TCPObjects, however odds are that would have loads of complications (port forwarding, perhaps? i don't know much about TCPObjects) I'm unaware of.

  • Send it through chat and annoy everyone.
  • Host an external server that both clients connect to.
  • Require both players to have RTB and then send actions as PMs.

  • Host an external server that both clients connect to.
Best option.


Most complicated option
Only option that doesn't annoy everyone and doesn't force the person to have a client mod.

Most complicated option
It's not THAT complicated
It's actually fairly easy

It's not THAT complicated
It's actually fairly easy
this

the "external server" doesn't even have to be external: one of the players could host it.

this

the "external server" doesn't even have to be external: one of the players could host it.
But then he needs to forward ports