javascript
Code: Select all
this.shipEnteredPlanetaryVicinity = function(planet)
Code: Select all
this.shipExitedPlanetaryVicinity = function()
windows vista 32 bit
1.5 gb ram
1.0 gb vram
GFX: ATI HD 2600 XT
Moderators: winston, another_commander, Getafix
Code: Select all
this.shipEnteredPlanetaryVicinity = function(planet)
Code: Select all
this.shipExitedPlanetaryVicinity = function()
?? I don't think so. I had your traffic control added under 1.71 and always had it triggered, but it stopped since my upgrade to 1.72. You are confused with the triggers close to the planet. This one is fired at 3 times planet radius. It should fire at the same time the AI variant is send and that still happens. All traders that use the AI variant still work fine.Thargoid wrote:It seems to be working for me? Getting triggered messages from both PlanetFall and Traffic Control using it...
In PlanetFall 1.11 WIP, I wrote:this.shipEnteredPlanetaryVicinity = function(planet)
{
this.lastPlanet = planet;
if(!planet.isSun)
{
player.commsMessage(system.name + " Planetary Control - for planetfall please fly toward the surface, slowing when on final approach.",5);
}
}
Like I said, in my new install of 1.72.1, it's working againin Traffic Control 1.01, I wrote:this.shipEnteredPlanetaryVicinity = function(planet)
{
if(planet.isMainPlanet)
{
if(this.thePlayerShip.hasEquipment("EQ_ADVANCED_COMPASS"))
{
player.commsMessage("This is " + system.name + " Traffic Control - For station approach, please select and follow the beacon N on your compass.", 5);
}
else
{
player.commsMessage("This is " + system.name + " Traffic Control - For station approach, please follow the rectangle on your compass.", 5);
}
}
}
OK, dinner over, System Redux removed, trigger not working...Frame wrote:so Thargoid, try and remove any planet/moon adding OXP you might have and see if still works ? i bet it do not...
On my system, with system redux, the trigger will not fire if i come from the oppersite direction of the main planets moon... infact it is the moon doing the triggering on my system.. are you 100% sure that it is indeed that main planet that triggers it,... while i can see there is a condition that it has to be the main planet in one of the scripts... see i figure that maybe it is the moon that infact reporting to be the main planet, even though it should not be...Thargoid wrote:So the work-around for this trunk bug is to add System Redux. Must actually check I have the latest version, as I seem to have the ever-expanding number of planets issue going on when docking and launching...[/color]
Code: Select all
if ((aegis_status == AEGIS_NONE)&&(result == AEGIS_CLOSE_TO_MAIN_PLANET))
{
mainPlanet = [UNIVERSE planet];
if (warnedPlanet != mainPlanet)
{
[self doScriptEvent:@"shipEnteredPlanetaryVicinity" withArgument:mainPlanet];
}
[shipAI message:@"CLOSE_TO_PLANET"];
[shipAI message:@"AEGIS_CLOSE_TO_PLANET"]; //keep for compatibility with pre-1.72 AI plists
[shipAI message:@"AEGIS_CLOSE_TO_MAIN_PLANET"];
}
The planetfall is an unpublished version (for the moment) and there are a couple of other WIPs in there, but those latter ones aren't anything relevant.In my log file, Oolite wrote:(oolite.app/Resources, AddOns, "AddOns/Aquatics 1.03.oxp", "AddOns/Missile Rack 1.02.oxp", "AddOns/Drones 1.01.oxp", "AddOns/Energy Equipment 1.04.oxp", "AddOns/Welcome Mat 1.05.oxp", "AddOns/Pods 1.02.oxp", "AddOns/Pods-UPS 1.01.oxp", AddOns/Probe_1.02.oxp, "AddOns/RepairBots 1.00.oxp", "AddOns/Traffic Control 1.01.oxp", AddOns/deposed1.3.2.oxp, "AddOns/Dictators v1.3.oxp", AddOns/FighterHud.oxp, AddOns/Galactic_Navy.oxp, AddOns/Hotrods.oxp, "AddOns/ionics-1.2.1.oxp", "AddOns/lovecats 1.1.oxp", "AddOns/military Fiasco 2.3.oxp", "AddOns/Missiles and Bombs v1.1.oxp", AddOns/murgh_Xships.oxp, AddOns/outrider.oxp, AddOns/OXPConfig1.06.oxp, AddOns/PAGroove_Stations_v1.2.1.oxp, "AddOns/TCAT 0.12.oxp", AddOns/TestShips.oxp, "AddOns/thargoid_wars 4.2.oxp", AddOns/Vector.oxp, "AddOns/weeviloid2-PC.oxp", "AddOns/Zz-Oo-Haul.oxp", "AddOns/ZZZZ_Supercobra 1.1.oxp", AddOns/AAACrooks.oxp, AddOns/AquaticsHauler.oxp, AddOns/Assassins.oxp, "AddOns/BehemothSpacewar 1.1.oxp", AddOns/Commies.oxp, AddOns/Rock_Hermit_Locator1.3.oxp, "AddOns/Target Reticle 1.0.1.oxp", "AddOns/UPS-courier v1.4.4.oxp", "AddOns/transports 1.46.oxp", "AddOns/Missile Analyser 1.1.1.oxp", "AddOns/AMS 1.00.oxp", AddOns/SecondWave.oxp, AddOns/Anarchies1.1.oxp, "AddOns/behemoth 2.5.oxp", AddOns/BountyScanner.oxp, AddOns/buoyRepair1.02.oxp, "AddOns/Oolite Shipyards Extension VBeta-21-11-08.oxp", AddOns/RandomHits261.oxp, "AddOns/Thorgorn_Threat 1.2.oxp", "AddOns/Trident Down v1.1.oxp", "AddOns/Dredgers 2.2.oxp", "AddOns/FuelCollector-v0.30.oxp", "AddOns/Planetfall 1.11.oxp", AddOns/System_Redux.oxp, "AddOns/Debug 1.72.oxp")