• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

External MP Kick/Ban Program

Messages
17
Country
unitedstates
Is it possible to create an external Kick/Ban application via the Simconnect API, that would allow someone to say, enter a username and tell the server to remove that player. This would be most useful for ATC with disruptive players. Does anybody have any hints as to how this could be accomplished :scratchch ??

As far as I know, MP aircraft are basically AI aircraft. If I were to use the remove Sim Object event, would this remove that player??

Thanks in advance ... I appreciate ANY feedback :)

Bud
 
Hi,

As far as I know SimConnect does not have access to the multiplayer session on that level, so it can interact with the players that have joined it.
 
Hi,

As far as I know SimConnect does not have access to the multiplayer session on that level, so it can interact with the players that have joined it.

Arno,

I appreciate the quick response. That's very interesting though :scratchch, I thought for sure, that if you were to use the remove simobject on the specified ID, it would remove that player from your session. It must just remove MY generated AI version of the player, form MY comp, and not relay that info to ALL players.

This feature must, somehow, be possible though, as it can be done through the MP CHAT. - There just needs to be a way to moniter what command is being fired off in FS, when you go to click to kick someone. Is that in any way possible, to moniter events?

Also, is there ANY other way of talking directly to FS, rather then through the Simconnect API (as it seems to be fairly limitted and undocumented w/ MP). Or ... a way to duplicate and transmitt the MP Kick/ban packett w/o Simconnect? Thanks ...

Bud
 
Arno,

I appreciate the quick response. That's very interesting though :scratchch, I thought for sure, that if you were to use the remove simobject on the specified ID, it would remove that player from your session. It must just remove MY generated AI version of the player, form MY comp, and not relay that info to ALL players.

This feature must, somehow, be possible though, as it can be done through the MP CHAT. - There just needs to be a way to moniter what command is being fired off in FS, when you go to click to kick someone. Is that in any way possible, to moniter events?

Also, is there ANY other way of talking directly to FS, rather then through the Simconnect API (as it seems to be fairly limitted and undocumented w/ MP). Or ... a way to duplicate and transmitt the MP Kick/ban packett w/o Simconnect? Thanks ...

Bud

Yes, it "CAN" be done at the packet level, but getting into packet filtering and mangling is quite complex. You would have to get quite deep down into packet handling to be able to identify a particular player, and then issue the correct "eject" packet to that player at the packet level.

The current work around / solution, to problem players, is to not let them join the session in the first place. ie Setting a password, and only distributing that password to trusted players.

If the Host machine is not being used to fly, or anything else that would change the screem, you might be able to use a keyboard Macro program like "MACRO EXPRESS" to monitor the chat window, and issue the keyboard command to eject players in FSX.

There is someone who Host in gamespy (from Germany), -- session is Hippy/Hoppy or similar, that has a FSX Chat room based BOT, that can monitor the chat room, and respond to commands, like Eject or BAN a player. He might be willing to share his "Bot" program with you, or tell you how he did it.

Geoff_D
 
Last edited:
Yes, it "CAN" be done at the packet level, but getting into packet filtering and mangling is quite complex. You would have to get quite deep down into packet handling to be able to identify a particular player, and then issue the correct "eject" packet to that player at the packet level.

The current work around / solution, to problem players, is to not let them join the session in the first place. ie Setting a password, and only distributing that password to trusted players.

If the Host machine is not being used to fly, or anything else that would change the screem, you might be able to use a keyboard Macro program like "MACRO EXPRESS" to monitor the chat window, and issue the keyboard command to eject players in FSX.

There is someone who Host in gamespy (from Germany), -- session is Hippy/Hoppy or similar, that has a FSX Chat room based BOT, that can monitor the chat room, and respond to commands, like Eject or BAN a player. He might be willing to share his "Bot" program with you, or tell you how he did it.

Geoff_D

Geoff_D,

Thanks, great ideas! It's nice to know that the feature is actually feasible, at some level. The macro idea may temporarily work, but how would the macro be able to identify and read the chat text, and furthermore issue the right click (kick) command to the correct specified player. I can't see how this could be done with the embedded FS chat text, unless there is a way to moniter the chat (with an API, such as simconnect) and receive the commands as packets, like you mentioned above. I;ll also see if I can't gte in contact with Hippy/Hoppy "Bot" developers, as monitering the chat is a better idea then creating a stand-alone piece of software (as all players have chat).

Bud
 
Geoff_D,

Thanks, great ideas! It's nice to know that the feature is actually feasible, at some level. The macro idea may temporarily work, but how would the macro be able to identify and read the chat text, and furthermore issue the right click (kick) command to the correct specified player. I can't see how this could be done with the embedded FS chat text, unless there is a way to moniter the chat (with an API, such as simconnect) and receive the commands as packets, like you mentioned above. I;ll also see if I can't gte in contact with Hippy/Hoppy "Bot" developers, as monitering the chat is a better idea then creating a stand-alone piece of software (as all players have chat).

Bud

With a keyboard macro program like Macro Express, you can both READ what is being written to a window, as well and enter anything on the keyboard, based on logic you can program into the Macro.
CRUDE -- but it might get the job done on the Hosting machine.

Chris, the "Hippy" Bot developer, seems to have a bot running on his FSX Hosting machine, that can respond to Chat Kick commands from authorized players, and kick players.
 
With a keyboard macro program like Macro Express, you can both READ what is being written to a window, as well and enter anything on the keyboard, based on logic you can program into the Macro.
CRUDE -- but it might get the job done on the Hosting machine.

Chris, the "Hippy" Bot developer, seems to have a bot running on his FSX Hosting machine, that can respond to Chat Kick commands from authorized players, and kick players.

I cannot seem to get in contact with Chris, unfortunatly. It sounds like he has some very neat software.

I have tried numerous different things with Macro Express, and for some reason, cannot get it to moniter the embedded FSX chat. Do you have any hints or a short explanation on how that is done?

Bud
 
Free Kick Tool and more

Well I took up the challange and I've just put up a free add on that lets you kick players via chat.

http://www.fsopen.co.uk/downloads/fshost/

Features
Auto post message every 60 seconds
Auto close any friends requests
Add active ATC info into messages
Assign admin privelages to other players
Admins can kick players from within chat
Display a list of last 5 people to talk
Gliders are auto-kicked on joining
Players can check their callsign

The software works by sniffing packets on the host and pastes back via the chat window with a winapi call or transmitting kick packets to remove players.
 
Back
Top