News:

Registration is only required if you want to post, and is not needed to read any posts. To avoid excess 'spam' accounts, all accounts where no posts have been made will be deleted after two weeks. Please register again if you wish to post.

Main Menu

Recent posts

#11
Bridge Command General Support / Re: Add/Modify sounds like the...
Last post by forum_admin - October 21, 2024, 01:02:19 PM
Hello, for an existing ship, you can change or add the files BWave.wav for the wave sound, Horn.wav, Alarm.wav and Engine.wav within the own ship's folder (e.g. Models\Ownship\Protis\Engine.wav). If any of these are not present, Bridge Command will use the files in the Sounds folder in the installation directory.

If you want to change for an existing ship, you can either change the existing files, or copy the whole ship model into the local user directory (on windows this is "%appdata%\Bridge Command\5.9\Models\Ownship"), and change the files there.

Bridge Command uses Libsndfile to read the sound files, so most formats should be supported, please see http://libsndfile.github.io/libsndfile/formats.html.

However, note that all of the sound files must have the same number of channels (stereo or mono), and the same sample rate. We currently assume that the files have a .wav extension. If this is a problem, it's probably quite easy to recognise other extensions.
#12
Bridge Command General Support / Add/Modify sounds like the eng...
Last post by jhnyx - October 20, 2024, 06:01:25 PM
Hello, how do I replace the sounds used like the engine of existing default ship or add a custom ship with its own engine sound? What sound formats are compatible? Is it possible also to replace other sounds like wave, horn and alarms?
#13
Development / Re: Creating a controller prog...
Last post by hadi23 - August 01, 2024, 11:06:20 AM
Hello evryone,

can someone provide me the source code for BC 4.7 version please?

i have problems with MC messages data encoding

Thank you
#14
Development / Re: Creating a controller prog...
Last post by hadi23 - July 25, 2024, 09:26:26 AM
I tried to send Bc messages to 3d "secondary display " the other one was in networked main but thers is overloop (the main one is sending BC messages and i also send BC messages from my script).

but i tried to only send BC and SC messages to Secondry display (without starting bridgecommand in networked main) but the secondary display does not launch when i send the messages.

or the secondary display launches if and only if Bridgecommand is started on networked main ?
#15
Development / Re: Creating a controller prog...
Last post by forum_admin - July 18, 2024, 10:09:06 PM
Hi, I don't have a copy of huckleberry's code, it might be best if you try sending a PM? If this doesn't work, let me know, but it is quite a while since I have worked on version 4.7!
#16
Development / Re: 5.9.7 and 5.8.9 are missin...
Last post by forum_admin - July 18, 2024, 10:05:37 PM
Thanks, I've just added them.
#17
Development / 5.9.7 and 5.8.9 are missing fr...
Last post by Johan - July 17, 2024, 11:41:51 PM
5.9.7 and 5.8.9 (Source code) are missing from releases
https://github.com/bridgecommand/bc/releases
#18
Environment models / Re: Snapshot of something I'm ...
Last post by Perry - July 17, 2024, 03:31:35 PM
This looks very impressive from the screenshots.  I'm just starting to use Bridge Command but I would love to be able to create something like this eventually.
#19
Development / Re: Creating a controller prog...
Last post by hadi23 - June 29, 2024, 02:51:50 PM
thank you for your response.

yes, i am using the 4.7 version. when i send the BC messages or even the MC messages i have memory access violation and i have not find the issue.(i am using a simulator that delivers all the information (speed, position, etc ...)

can you help me please?

thank's
#20
Development / Re: Creating a controller prog...
Last post by forum_admin - 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.