station and carriers - too few fighters?

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
gabbakeisen
Competent
Competent
Posts: 32
Joined: Sun Mar 04, 2007 2:36 am
Location: Front Left-Hand Corner

station and carriers - too few fighters?

Post by gabbakeisen »

I've only been playing Oolite for a few weeks and was intercepted by a targoid carrier. I had beam lasers, fuel injectors and an extra energy unit so I thought I was a goner from my memory of the original a single thargoid with robotic fighters was damn near impossible to kill without a bomb. Anyway a couple of thargoids come out and I managed to kill them - no robotic fighters were seen and then nothing. nada. ziltch. The carrier just sat there, so i fly up real close so it can't use its ecm launch my three missiles at it and it slowly starts to fly away. What the? no laser fire or anything? so I follow it blasting al kinds of molten hell out of the damn thing and after an eternity of depleting the lazers and waiting for a recharge it eventually explodes. I mean its wayyy too easy. I've also noticed that the space stations only release a couple of fighters if you fire on them. Whilst in the original it was a constant stream of death. Are these two things linked? and can we have more fighters please!
WooHoo! My fav game now redone for childhood nostalgia of 20 years ago. Now if only I didn't have to go to work so I could live as a virtual space trader.
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2882
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post by LittleBear »

Faily easy to tweak if you want to. If you open up the shipdata and find "max defence ships", change the number to a higher one. Most stations and carriers have 7.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
User avatar
gabbakeisen
Competent
Competent
Posts: 32
Joined: Sun Mar 04, 2007 2:36 am
Location: Front Left-Hand Corner

Post by gabbakeisen »

cheers :) but I find that usually only 3 are released? Any way I'll up it and see what happens
WooHoo! My fav game now redone for childhood nostalgia of 20 years ago. Now if only I didn't have to go to work so I could live as a virtual space trader.
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

Post by Arexack_Heretic »

One problem with the Thargoid carrier is the way the ThargoidAI reacts to any thargoid ship that does not EXACTLY has 'thargoid' as role.

This causes the launched thargoid warships to attack the carrier if no other viable targets are available.

(Usually the ship launches only when non-thargoid are nearby, thankfully. I used escorts in Thargorn Threat, that was a bigger problem as escorts were spawned near their mothers no matter how close non-thargoids were. This causes alot of internacine-warfare.)
todo: repost request to fix this... bug?
Riding the Rocket!
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2882
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post by LittleBear »

Could give the Bugs a CustomAI, which makes them attack everything except the Bugs (or things with non-standard roles). Just do a likeship to a normal Thargoid but give it a custom role and specify as the Carrier's defence ship- EG:-

This is a modded version of Thargoid AI but with the roles I want the ship to fight in multiple look_for_targets states:-

Code: Select all

{
"ATTACK_SHIP" = {
        ENTER = (switchLightsOn, performAttack); 
        "ATTACKED" = (setTargetToPrimaryAggressor); 
        "ENERGY_LOW" = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); 
        "INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
        "TARGET_DESTROYED" = ("commsMessage: [erebel-chat]", "setStateTo: LOOK_FOR_TARGETS"); 
        "TARGET_LOST" = ("commsMessage: [erebel-chat]", "setStateTo: LOOK_FOR_TARGETS"); 
        EXIT = (); 
	  UPDATE = (performAttack); 
     };

"LOOK_FOR_TARGETS" = {
ENTER = (switchLightsOff, "scanForNearestShipWithRole: imperial");
        "ATTACKED" = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); 
        "INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); 
		"TARGET_FOUND" = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP"); 
        	"NOTHING_FOUND" = ("setStateTo: LOOK_FOR_TARGETS2"); 
EXIT = ();
	UPDATE = ("scanForNearestShipWithRole: imperial", "pauseAI: 1.0");
	};

"LOOK_FOR_TARGETS2" = {
ENTER = (switchLightsOff, "scanForNearestShipWithRole: warimp");
        "ATTACKED" = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); 
        "INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); 
		"TARGET_FOUND" = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP"); 
        	"NOTHING_FOUND" = ("setStateTo: LOOK_FOR_TARGETS3"); 
EXIT = ();
	UPDATE = ("scanForNearestShipWithRole: warimp", "pauseAI: 1.0");
	};

"LOOK_FOR_TARGETS3" = {
ENTER = (switchLightsOff, "scanForNearestShipWithRole: imperial4");
        "ATTACKED" = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); 
        "INCOMING_MISSILE" = (fightOrFleeMissile, setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP"); 
		"TARGET_FOUND" = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP"); 
        	"NOTHING_FOUND" = ("setStateTo: HEAD_FOR_PLANET"); 
EXIT = ();
	UPDATE = ("scanForNearestShipWithRole: imperial4", "pauseAI: 1.0");
	};

"HEAD_FOR_PLANET" = {		
ENTER = (setCourseToPlanet, "setDesiredRangeTo: 80000.0", checkCourseToDestination);
"COURSE_OK" = ("setSpeedFactorTo: 1.0", performFlyToRangeFromDestination);
"WAYPOINT_SET" = ("setStateTo: GO_TO_WAYPOINT1");
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: LOOK_FOR_TARGETS");
ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
"INCOMING_MISSILE" = ("commsMessage: [erebel-chat]", fightOrFleeMissile, setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
"TARGET_FOUND" = (setTargetToFoundTarget, "setStateTo: ATTACK_SHIP");
EXIT = ();
		
UPDATE = ("scanForNearestShipWithRole: imperial", "pauseAI: 1.0");
	};
 
"GO_TO_WAYPOINT1" = {
ENTER = ("setDesiredRangeTo: 50.0", checkCourseToDestination);
"COURSE_OK" = ("setSpeedFactorTo: 1.0", performFlyToRangeFromDestination);
"WAYPOINT_SET" = ("setDesiredRangeTo: 50.0", checkCourseToDestination);
"DESIRED_RANGE_ACHIEVED" = ("setStateTo: HEAD_FOR_PLANET");
ATTACKED = (setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
"INCOMING_MISSILE" = ("commsMessage: [erebel-chat]", fightOrFleeMissile, setTargetToPrimaryAggressor, "setStateTo: ATTACK_SHIP");
EXIT = ();
		
UPDATE = ("scanForNearestShipWithRole: warimp", "pauseAI: 1.0");
	}; 


GLOBAL = {
        ENTER = ("setStateTo: LOOK_FOR_TARGETS"); 
        EXIT = (); 
        UPDATE = (); 
    }; 
}
This is for an OXP ship that only appears at at certain mission stage and is fighting ships with the above roles. (They have similar AIs to make them attack the enemy ships). But if your substuted, trader, police, pirate, miner, player. Then the ship would attack pretty much every human ship it encountered, whilst leaving Bugs alone.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

Post by Arexack_Heretic »

I don't think I like that method for standard thargoid behaviour.
Seeing as there is this readymade method to select potential 'thargets',
I'd rather have that fixed than work around it by scanning for all possible scanclasses.
Riding the Rocket!
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

gabbakeisen wrote:
cheers :) but I find that usually only 3 are released? Any way I'll up it and see what happens
*Looks up from revamping station set-up code*
The default for max_defense_ships is in fact three.
Post Reply