I think there has popped up a little bug in the regular part of the default comms. When choosing the option "demand 5t.." from a random NPC that doesn't have anything about it customised, the expected transmission doesn't show up, (or rather my ship's name: and then blank) but the target replies as if it got the message. I'm pretty sure this is unrelated to the tinkering I'm doing.
BroadcastComms MFD [Release]
Moderators: winston, another_commander
Re: BroadcastComms MFD [Release]
I was young, I was naïve. Jonny Cuba made me do it!
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: BroadcastComms MFD [Release]
Bug found and squashed in v1.3.1, which has just been released. Also fixed the issue where using "Send greeting to target" as the display text was impossible, even when the "Greet" message was disabled on a ship.
Re: BroadcastComms MFD [Release]
Cool.
I think I may have found another issue that I butted against before giving up and going to bed, but hard to formulate well until I eliminate more possibilities.
A Behemoth was simply given a custom_default (#4 taunt reply, with and without a transmit), nothing else (with and without other defaults turned off), but taunt option would never appear. No error statement. They have so many factors but I'll keep chipping to see if elements such as military/police/docking sequence in the script actions/market producer in other cases result in the same refusal..
When I can get back at it, I'll start with applying the new update, in case this is something covered by what you have already mended.
I was young, I was naïve. Jonny Cuba made me do it!
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: BroadcastComms MFD [Release]
If you can send me the shipdata you put together for the Behemoth I might be able to debug things fairly quickly.
Re: BroadcastComms MFD [Release]
Sure, I’ll send your way in a few hours after work.
I was young, I was naïve. Jonny Cuba made me do it!
Re: BroadcastComms MFD [Release]
Well, it's confirmed. The same code that would allow me to customise a taunt transmission and reply onto a regular ship will not appear on a dockable. Both Scrubs and Behemoths are affected, so it isn't anything to do with Military class/policing. They do both have the docking permission comms entering into it, that could be something (automatic from isCarrier?). They also both have custom tunnel_texture in the script actions, there's market definitions..
I was young, I was naïve. Jonny Cuba made me do it!
- Cholmondely
- Archivist
- Posts: 5365
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: BroadcastComms MFD [Release]
Huuumph... any self respecting dockable would not bother replying to a taunt, no matter how customised. They'd just turn towards the insulter and proceed to transmogrify them into a 2 dimensional pancake...
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
Re: BroadcastComms MFD [Release]
This is true, but I thought it might be amusing if a mammoth ship would comment on the ridiculous nature of the mismatch.Cholmondely wrote: ↑Thu Jul 21, 2022 8:29 pmHuuumph... any self respecting dockable would not bother replying to a taunt, no matter how customised. They'd just turn towards the insulter and proceed to transmogrify them into a 2 dimensional pancake...
Afraid BC 1.3.1 also logReports "Invalid settings: Cannot use comm system message types" when I display the verbatim Send greeting to target.
I was young, I was naïve. Jonny Cuba made me do it!
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: BroadcastComms MFD [Release]
Cholmondely wrote: ↑Thu Jul 21, 2022 8:29 pmany self respecting dockable would not bother replying to a taunt, no matter how customised
I think I was going along Cholmondely's line of thinking when I originally put the code together. By default, no station (ie something with a dock) will have the "Taunt" option. Therefore, if you want to achieve that, you'd need to disable the built in message type, and add custom message, rather than use the "bcc_custom_defaults" option.
Well, once I get it working reliably, anyway.
Re: BroadcastComms MFD [Release]
Yes it's no problem to simulate it, as you've shown me.phkb wrote: ↑Thu Jul 21, 2022 10:04 pmI think I was going along Cholmondely's line of thinking when I originally put the code together. By default, no station (ie something with a dock) will have the "Taunt" option. Therefore, if you want to achieve that, you'd need to disable the built in message type, and add custom message, rather than use the "bcc_custom_defaults" option.
Then it shall not be called a bug.
I was young, I was naïve. Jonny Cuba made me do it!
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: BroadcastComms MFD [Release]
OK, version 1.3.2 is now available, which should fix this issue.
Re: BroadcastComms MFD [Release]
Afraid it still blanks, and errorLogs:
Code: Select all
[script.javaScript.exception.uncaughtException]: ***** JavaScript exception (BroadcastCommsMFD 1.3.2): uncaught exception: Invalid settings: Cannot use comm system message types.
I have another quirk though.
Code: Select all
[script.javaScript.exception.uncaughtException]: ***** JavaScript exception (BroadcastCommsMFD_Equipment 1.3.2): uncaught exception: Invalid settings: message already exists.
Maybe you see why?
Code: Select all
"script_info" = {
"bcc_custom_messages" = {
level1a = {
delay = 5;
"delete_on_transmit" = yes;
display = "Greet target";
"post_reply_show_messages" = (
level2
);
reply = "[scrub-greeting-reply]";
state = visible;
transmit = "Greetings, honoured Scrub.";
};
level1b = {
delay = 5;
"delete_on_transmit" = yes;
display = "Taunt target";
reply = "[scrub-taunt-reply]";
state = visible;
transmit = "[scrub-taunt-transmit]";
};
level2 = {
delay = 4;
"delete_on_transmit" = yes;
display = "Inquire trade opportunity";
"post_reply_show_messages" = (
level3
);
reply = "[scrub-decide-reply]";
state = hidden;
transmit = "Great Scrub command. Please advise, is this a good time to do business?";
};
level3 = {
delay = 6;
"delete_on_transmit" = yes;
display = "Elaborate for a more clear answer";
reply = "[scrub-trade-reply]";
state = hidden;
transmit = "[scrub-trade-transmit]";
};
};
"bcc_disable_defaults" = (
1,
2,
3,
5,
6,
7,
8,
9
);
I was young, I was naïve. Jonny Cuba made me do it!
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: BroadcastComms MFD [Release]
You have the "Send taunt to target" replacement set with key "level1b". However, in the "bcc_disable_defaults" array, you don't have a "4". So you'd end up conflicting with the core message.
And I'll have a patch out shortly to fix the other bugs.
Re: BroadcastComms MFD [Release]
Ah. So it can tell, even though it's named differently, "Taunt target"..
In addition to your other skillz, your determination is enviable.
I was young, I was naïve. Jonny Cuba made me do it!
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: BroadcastComms MFD [Release]
Well, I assumed in a previous iteration you had it named like the default. This current version would work because there is no conflict.