11
Development / Re: Creating a controller program
« Last post by forum_admin on June 28, 2024, 11:21:53 PM »Hi, the discussion above was related to an earlier version of Bridge Command that used UDP networking directly. The current version still uses UDP, but via the enet networking library, so you will need a python wrapper to this. I think pyenet may be what you need.
Depending on what you want to do, you can see the networking parts of Bridge Command in https://github.com/bridgecommand/bc/blob/main/src/NetworkPrimary.cpp, and for the map controller in https://github.com/bridgecommand/bc/blob/main/src/controller/Network.cpp.
Alternatively, it might be easier to modify OwnShip.cpp, either to do what you want directly, or to add an interface to your code.
Depending on what you want to do, you can see the networking parts of Bridge Command in https://github.com/bridgecommand/bc/blob/main/src/NetworkPrimary.cpp, and for the map controller in https://github.com/bridgecommand/bc/blob/main/src/controller/Network.cpp.
Alternatively, it might be easier to modify OwnShip.cpp, either to do what you want directly, or to add an interface to your code.