Re: Communications Pack A
Posted: Sun Mar 10, 2024 10:37 pm
Agreed. What can be done to debug the GitHub connectivity? Are there default timeout settings that can be extended, for instance.
For information and discussion about Oolite.
https://bb.oolite.space/
Agreed. What can be done to debug the GitHub connectivity? Are there default timeout settings that can be extended, for instance.
Not sure here When the job runs we get some server from a big pool of servers and have no control. On top we have no control on the network between that pool and the hosting site. Even if we find out we would not be in a position to change it.
Code: Select all
oolite_entityClass = ship.shipClassName
oolite_entityName = ship.shipUniqueName
Comms Pack A is about NPC comms, not player comms. You can work around it, but you'll have to manually do the expansions in your "expandDescriptions" call, by passing a dictionary with all the relevant expansions, like this:Zafrusteria wrote: ↑Thu Apr 18, 2024 8:57 amwould like to be able to reference some of the comms messages in my own OXP but keep seeing that [oolite_entityName] is not being expanded for the player.
Code: Select all
var msg = expandDescription("[commsPackA_defenseship_killedTarget]", {"oolite_entityName":player.ship.target.displayName, "oolite_entityClass":player.ship.target.shipClassName});
Ah, When I said "expanded for the player", I meant that the player would see it, not that it referenced or was about the player's ship in any way.phkb wrote: ↑Thu Apr 18, 2024 11:56 amComms Pack A is about NPC comms, not player comms. You can work around it, but you'll have to manually do the expansions in your "expandDescriptions" call, by passing a dictionary with all the relevant expansions, like this:
Code: Select all
var msg = expandDescription("[commsPackA_defenseship_killedTarget]", {"oolite_entityName":player.ship.target.displayName, "oolite_entityClass":player.ship.target.shipClassName});
Ah, got it. What role(s) does your NPC have? And are they using the Priority AI system?Zafrusteria wrote: ↑Thu Apr 18, 2024 12:24 pmThe ship that I am generating the comms message for will always be an NPC.
As far as I understand it, there are 4 OXPs.Zafrusteria wrote: ↑Thu Apr 18, 2024 12:24 pmThe ship that I am generating the comms message for will always be an NPC.
Yes they use the priority AI system.phkb wrote: ↑Thu Apr 18, 2024 12:36 pmAh, got it. What role(s) does your NPC have? And are they using the Priority AI system?Zafrusteria wrote: ↑Thu Apr 18, 2024 12:24 pmThe ship that I am generating the comms message for will always be an NPC.
Code: Select all
ai.setCommunicationsRole("sr_extremist");
ai.setCommunicationsPersonality("ShrewsRights_extremist");
Code: Select all
roles = "sr_extremist";
Code: Select all
like_ship = "oolite_template_moray";
Code: Select all
"attackLowEnergy",
"beginningAttack",
"beginningAttackThargoid",
"beginningFight",
"continuingAttack",
"continuingAttackThargoid",
"distressResponseAggressor",
"distressResponseSender",
"engageWitchspaceDriveFlee",
"engageWitchspaceDriveGroup",
"friendlyFire",
"groupIsOutnumbered",
"incomingMissile",
"killedTarget",
"quiriumCascade",
"selectedStation",
"startFleeing",
"surrender",
"thanksForHelp",
"thargoidAttack",
"waypointReached"
Code: Select all
this.startUp = function() {
var comms = {
sr_extremist: {
commsPackA_ShrewsRights_extremist: this._makeComms("ShrewsRights_extremist",
[
"attackLowEnergy",
"beginningAttack",
"beginningAttackThargoid",
"beginningFight",
"continuingAttack",
"continuingAttackThargoid",
"distressResponseAggressor",
"distressResponseSender",
"engageWitchspaceDriveFlee",
"engageWitchspaceDriveGroup",
"friendlyFire",
"groupIsOutnumbered",
"incomingMissile",
"killedTarget",
"quiriumCascade",
"selectedStation",
"startFleeing",
"surrender",
"thanksForHelp",
"thargoidAttack",
"waypointReached"
]),
},
};
worldScripts["oolite-libPriorityAI"]._setCommunications(comms);
}
this._makeComms = function(specific, entries)
{
var result = {};
for (var i=entries.length-1;i>=0;i--)
{
var entry = entries[i];
result["oolite_"+entry] = "["+this.$commsPrefix+"_"+specific+"_"+entry+"]";
}
return result;
}
Code: Select all
{
"commsPackA_ShrewsRights_extremist_attackLowEnergy" = ("You may kill me, but you won't escape justice forever!","This criminal in a [oolite_entityClass] is getting the better of me…","[commsPackA_generic_attackLowEnergy]","[commsPackA_generic_attackLowEnergy]","[commsPackA_generic_attackLowEnergy]");
"commsPackA_ShrewsRights_extremist_beginningAttack" = ("Die, criminal!","Your [oolite_entityClass] won't save you now…","This is for the [nom1].","For %H!","[commsPackA_generic_beginningAttack]","[commsPackA_generic_beginningAttack]");
"commsPackA_ShrewsRights_extremist_beginningAttackThargoid" = ("For the Cooperative!","Die, Thargoid!","You'll never take %H, Thargoid!","We'll blast you back into witchspace!","[commsPackA_generic_beginningAttackThargoid]");
"commsPackA_ShrewsRights_extremist_beginningFight" = ("Your crimes end here!","Death to pirates!","It's the [oolite_entityName]. Open fire!","You'll pay for your crimes, [oolite_entityCrew]!","It's time to clean up %H…","Confirmed on the [oolite_entityClass]; wanted dead or alive in [commsPackA_number] systems…","Pick your targets and break to attack!","Offender targets acquired…");
"commsPackA_ShrewsRights_extremist_continuingAttack" = ("No quarter for pirates!","%H will be safer when you're dead!","[commsPackA_generic_continuingAttack]","[commsPackA_generic_continuingAttack]","[commsPackA_generic_continuingAttack]");
"commsPackA_ShrewsRights_extremist_continuingAttackThargoid" = ("Get back into witchspace!","You'll never take %H!","Die, Thargoid!","We'll make you feel fear again!");
"commsPackA_ShrewsRights_extremist_distressResponseAggressor" = ("Pick on someone your own size, [oolite_entityName]!","Cease your attacks or be destroyed!","We've got a live one! Locking on the [oolite_entityClass] now!","Hit those raiders before they do any more damage!","Back off, [oolite_entityClass]. You've just become outnumbered…");
"commsPackA_ShrewsRights_extremist_distressResponseSender" = ("Hang on, [oolite_entityName]. Help is on the way…","We'll have your attackers on scanners in just a few seconds, [oolite_entityName]…","Distress call acknowledged, [oolite_entityClass]. We're moving to assist…","Protect the [oolite_entityName] while it gets clear.","I can't see the pirates yet, but they'll be close. Arm all weapons.");
"commsPackA_ShrewsRights_extremist_engageWitchspaceDriveFlee" = ("There's too many of them! Retreat and regroup!","We'll be back for you, pirate!","I'm taking too much fire to carry on. See you back at the station…","We can't fight this many. Follow me out of here!","Charging drive now! Keep dodging just a little longer…");
"commsPackA_ShrewsRights_extremist_engageWitchspaceDriveGroup" = ("All fighters, form up for witchspace jump.","Preparing for witchspace entry. Be ready for a hostile reception.","Drive powering up now. Follow in pattern [commsPackA_codename].","Let's get those criminals for %H!","Spotters say the pirates have just made their jump. Prepare to follow now.");
"commsPackA_ShrewsRights_extremist_friendlyFire" = ("[commsPackA_generic_friendlyFire]","[commsPackA_generic_friendlyFire]","[commsPackA_generic_friendlyFire]","[commsPackA_generic_friendlyFire]","Check your IFF, [oolite_entityCrew]!","Do I look like an Offender to you?");
"commsPackA_ShrewsRights_extremist_groupIsOutnumbered" = ("They've got us outnumbered. Retreat and regroup!","Fall back to the station! We can't take on this many!","Break off the attack!","It's a trap! They're too well armed for simple pirates…","Regroup at rendezvous [commsPackA_codename].","Fall back!");
"commsPackA_ShrewsRights_extremist_incomingMissile" = ("[commsPackA_generic_incomingMissile]");
"commsPackA_ShrewsRights_extremist_killedTarget" = ("One fewer pirate in %H!","That was for the [nom1]…","Target [commsPackA_codename] [commsPackA_number] is down…","I got the [oolite_entityClass]…","Pirate down! Who's next?","[oolite_entityName] destroyed…","Another one down!");
"commsPackA_ShrewsRights_extremist_quiriumCascade" = ("[commsPackA_generic_quiriumCascade]","[commsPackA_generic_quiriumCascade]","[commsPackA_generic_quiriumCascade]","A Q-mine? What are you thinking?!");
"commsPackA_ShrewsRights_extremist_selectedStation" = ("Setting course for the [oolite_entityName].","Time to head home…","That's enough for one patrol. Return to base.","We've done what we can for now. Head for the [oolite_entityName] to re-arm.","Time to head home. All ships, form up.","Last leg now. We'll clear up anything between here and the [oolite_entityName] and then call it a day.");
}