sockets - Sending a chat message to a LAN game with Python -
this might confusing question... take example game battlefield2. in way possible send chat messages game through python? reason asking because i've seen messages appear no on various games, , want know if it's possible. now, way understand packet this...
it's small collection of data sender ip address , recipient ip address. contained within packet data. so, in theory... if 'packet name' chat message like:
srv_chat|<sender_info>|<message text> (for example): srv_chat|10.1.1.5,player1|hello, how's game? does mean can create python script send own message lan game , have appear? if possible, how can go dissecting actual packet information in order discover parameters? mean this, finding data contained in there...
it's thought , question i've had long time.
thanks!
yes, technically possible. not feasible.
what said packets correct, , can read more here.
however, beyond packets, there entire networks of protocols determine go, , receives them, can read here.
this means if manage emulate connection games server, possibly send data server, server not support random connections sending messages, , server expects receive connections made other game clients, , unless can emulate clients responses , requests correctly, not work.
this means idea use python directly connect server , send messages in format similar suggested not work.
however. server supports server messages, messages sent server game, if hosts game instance, can send messages game server (host) of game. or, if dedicated server, might not in game , send messages players in game through management console.
it many 'plugins' or methods hook control available, meaning send message application running game server, telling it should send message game.
this less emulation , more implementation of games management system.
it important note, many games different, , operation different, meaning may or may not work, depending on options available. experience games battlefield2 (which have not played) have these tools builtin.
specifically battlefield2, there links found might like.
http://www.gamefront.com/files/listing/pub2/battlefield_2/official_server_files/dedicated_server/ http://www.bf2cc.com/
Comments
Post a Comment