[BONUS Plug-In] Gunnery Crew turret plugin - Version 3.02
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
-
3iff
- Posts: 1085
- Joined: Thu, 23. Oct 03, 09:52

Reven,
So you mean it's the players responsibility to keep away from friendly fixed items like stations and gates?
Makes sense, I suppose, and it saves the script having to worry about it.
I'll keep that in mind.
Must admit it's very strange flying an M2 without having my own guns to fire...I could jump into a turret but I'd prefer not to...
So you mean it's the players responsibility to keep away from friendly fixed items like stations and gates?
Makes sense, I suppose, and it saves the script having to worry about it.
I'll keep that in mind.
Must admit it's very strange flying an M2 without having my own guns to fire...I could jump into a turret but I'd prefer not to...
...locating mandolin strings in the middle of Austin.
-
Reven
- Posts: 1133
- Joined: Thu, 10. Jul 03, 07:42

In the public release, 2.11, there is no class-based target prioritization. A turret will first try to engage the ship's target, however, so in a capital engagement be sure to target the big ship.stella wrote:How does the script handle target prioritisation?
For instance, if I'm attacking a KM3 in a Khaak sector, and an M1 comes into range, will my turrets see it as a greater threat and switch their attack, or will they carry on firing at their current target, while 6 Gamma Kyons rip me up?
In version 3 (which is in the signing process right now), I've implemented class-based prioritization. Target selection works in the following order:
- The ship's target is still a turret's first choice to engage.
- Next it looks at the ship's class in the order: M2, M1, OL (Orbital Laser), M6, M3, Pirate TS, TP, M4, TS, M5, Any other enemy (ie: bases)
- If there is more than one ship that is engagable of the same class, the closest one is selected.
What I am currently working on is code to make sure that there are never more than one turret targeting an M5 or M4 at one time. Be ensuring that turrets aren't ganging up on opponents that don't need multiple turrets, I think I can squeeze another 10-15% efficiency when engaging large groups of small fighters.
Something for you to look forward to (I hope).
You were warned... pirates will be hunted down like vermin.
Ex Turbo Modestum
Ex Turbo Modestum
-
3iff
- Posts: 1085
- Joined: Thu, 23. Oct 03, 09:52

-
The Flash
- Posts: 468
- Joined: Tue, 2. Mar 04, 00:43

-
frymaster
- Posts: 3008
- Joined: Wed, 6. Nov 02, 20:31

as scripts could be considered as optional "gameplay patches" it really depends on how many times it gets bounced for balance tweaks / conflicts / bugs / behavior changes.
Reven being Reven I don't expect many bugs or conflicts, but balance and intended behaviour is very much about point of view and could take any amount of time
Reven being Reven I don't expect many bugs or conflicts, but balance and intended behaviour is very much about point of view and could take any amount of time
-
Z0diac
- Posts: 213
- Joined: Fri, 6. Aug 04, 19:43

-
rfoote
- Posts: 171
- Joined: Thu, 18. Dec 03, 17:51

-
Pinger
- Posts: 624
- Joined: Thu, 31. Jul 03, 11:19

-
DeadlyDa
- Posts: 1883
- Joined: Mon, 5. Jan 04, 04:46

-
Reven
- Posts: 1133
- Joined: Thu, 10. Jul 03, 07:42

I just had the GREATEST IDEA!!!
I just finished implementing burst-fire mode (wow it's cool to see turrets firing mass drivers at 20 rounds per second - soon no one will ever slag a mass driver again).
Anyways, actually it's not the greatest idea. It's complete stupidity on my part for not seeing this sooner. Arghhh! How could I have been so blind?
[ external image ]
I need ticaki -- he'll need to approve this.
TICAKI WHERE ARE YOU? Not on devchat, not on ICQ. ARGH.
I just finished implementing burst-fire mode (wow it's cool to see turrets firing mass drivers at 20 rounds per second - soon no one will ever slag a mass driver again).
Anyways, actually it's not the greatest idea. It's complete stupidity on my part for not seeing this sooner. Arghhh! How could I have been so blind?
[ external image ]
I need ticaki -- he'll need to approve this.
TICAKI WHERE ARE YOU? Not on devchat, not on ICQ. ARGH.
You were warned... pirates will be hunted down like vermin.
Ex Turbo Modestum
Ex Turbo Modestum
-
Pinger
- Posts: 624
- Joined: Thu, 31. Jul 03, 11:19

It uses the lost powered weapon, so if you want to capture move you Ion's to a M3 you have docked so its forced to use the PSG's.cynric wrote:how exactly is that maximise capture command supposed to work? My fully loaded Ray (PPC, Ion D., APSG) kept on using the ion disruptors although the targets shields where down and the hull was still at 100%
-
frymaster
- Posts: 3008
- Joined: Wed, 6. Nov 02, 20:31

-
3iff
- Posts: 1085
- Joined: Thu, 23. Oct 03, 09:52

Not sure if this has been reported...or if it's a feature.
In Thynns Abyss, attacking xenon with turrets on max captures and xenon set to foe. I decide to go into xenon 472 and set xenon to friendly so I don't accidentally blast the jumpgate. However, as the enemy ships are still red, my turrets engage them.
I have to set turrets to NONE to avoid my hired gunners attacking them.
Thinking about it, I'm not sure if I fly within range of a pirate ship and they're set to friendly, whether my turrets fire.
It would be nice if enemy ships weren't engaged unless they were also set to foe...if that's possible?
In Thynns Abyss, attacking xenon with turrets on max captures and xenon set to foe. I decide to go into xenon 472 and set xenon to friendly so I don't accidentally blast the jumpgate. However, as the enemy ships are still red, my turrets engage them.
I have to set turrets to NONE to avoid my hired gunners attacking them.
Thinking about it, I'm not sure if I fly within range of a pirate ship and they're set to friendly, whether my turrets fire.
It would be nice if enemy ships weren't engaged unless they were also set to foe...if that's possible?
...locating mandolin strings in the middle of Austin.
-
cynric
- Posts: 354
- Joined: Mon, 15. Dec 03, 02:24

you also have to set that "show as enemy if enemy to me" kinda switch to off. they won't be red anymore and your turrets shouldn't fire3iff wrote:Not sure if this has been reported...or if it's a feature.
In Thynns Abyss, attacking xenon with turrets on max captures and xenon set to foe. I decide to go into xenon 472 and set xenon to friendly so I don't accidentally blast the jumpgate. However, as the enemy ships are still red, my turrets engage them.
I have to set turrets to NONE to avoid my hired gunners attacking them.
Thinking about it, I'm not sure if I fly within range of a pirate ship and they're set to friendly, whether my turrets fire.
It would be nice if enemy ships weren't engaged unless they were also set to foe...if that's possible?
-
Reven
- Posts: 1133
- Joined: Thu, 10. Jul 03, 07:42

From my latest turret script's debug log:
I didn't really need to post all that - just wanted to show off a little.
The point is, and this was the great idea I posted about earlier, I have solved the refire delay issue across the board. No matter what the weapon is, no matter what its refire rate is, the turret system will now be able to fire it at its maximum refire rate.
What the above log is showing is that I have made the firing system into two separate tasks for each turret. The main task does most of the work, figuring out the best weapons, selecting targets, and firing. The second task does nothing but "aim" the turret. It's this aiming that previously kept weapons from firing at their maximum rate - because no aim command can complete in less than 150ms (a mass driver could fire three times in that "wasted" interval). With two concurrent tasks, we can fire at the maximum rate for any weapon. It's also a LOT more lag resistant - and I won't sport with your patience any longer explaining why that is.
At any rate, it works! Thought I would share.
Code: Select all
FIRE- Starting on turret 1
FIRE- Starting on turret 4
FIRE- Turret 4 Main is Gamma Photon Pulse Cannon, WMD is Ion Disruptor, CIWS is Mass Driver, Tracking is Mass Driver
FIRE- Turret 4 Main refire is 270ms, Heavy refire is nullms, WMD refire is 200ms
FIRE- Turret 1 Main is Gamma Photon Pulse Cannon, WMD is Ion Disruptor, CIWS is Mass Driver, Tracking is Mass Driver
FIRE- Turret 1 Main refire is 270ms, Heavy refire is nullms, WMD refire is 200ms
FIRE- Turret 1 selected target Pirate Ship
SEEK- Starting task 51 with PID 488002269 for target Pirate Ship
FIRE- Turret 1 tracking task started - awaiting a firing solution
SEEK- Turret 1 firing solution is FLRET_FIREFREE for target Pirate Ship
FIRE- Turret 1 obtained FLRET_FIREFREE solution in 300ms
SEEK- Turret 1 firing solution is FLRET_FIREFREE for target Pirate Ship
FIRE- Turret 1 firing Gamma Photon Pulse Cannon at target Pirate Ship
SEEK- Turret 1 firing solution is FLRET_FIREFREE for target Pirate Ship
... More of the above
SEEK- Turret 1 firing solution is FLRET_FIREFREE for target Pirate Ship
FIRE- Turret 1 firing Gamma Photon Pulse Cannon at target Pirate Ship
FIRE- Turret 4 selected target Pirate Ship
SEEK- Starting task 54 with PID 488002735 for target Pirate Ship
FIRE- Turret 4 tracking task started - awaiting a firing solution
SEEK- Turret 1 firing solution is FLRET_FIREFREE for target Pirate Ship
FIRE- Turret 1 firing Gamma Photon Pulse Cannon at target Pirate Ship
SEEK- Turret 1 firing solution is FLRET_FIREFREE for target Pirate Ship
FIRE- Turret 1 firing Gamma Photon Pulse Cannon at target Pirate Ship
SEEK- Turret 4 firing solution is FLRET_FIREFREE for target Pirate Ship
SEEK- Turret 1 firing solution is FLRET_FIREFREE for target Pirate Ship
FIRE- Turret 4 obtained FLRET_FIREFREE solution in 650ms
FIRE- Turret 1 firing Gamma Photon Pulse Cannon at target Pirate Ship
SEEK- Turret 4 firing solution is FLRET_FIREFREE for target Pirate Ship
SEEK- Turret 1 firing solution is FLRET_FIREFREE for target Pirate Ship
FIRE- Turret 4 firing Gamma Photon Pulse Cannon at target Pirate Ship
... More of the above
FIRE- Turret 1 firing Gamma Photon Pulse Cannon at target Pirate Ship
FIRE- Turret 4 firing Gamma Photon Pulse Cannon at target Unknown Object
SEEK- Turret 4 firing solution is FLRET_NOCOMMANDS for target Unknown Object
SEEK- Turret 4 is terminating PID 488002735
SEEK- Turret 1 firing solution is FLRET_NOCOMMANDS for target Unknown Object
SEEK- Turret 1 is terminating PID 488002269
FIRE- Turret 1 firing Gamma Photon Pulse Cannon at target Unknown ObjectWhat the above log is showing is that I have made the firing system into two separate tasks for each turret. The main task does most of the work, figuring out the best weapons, selecting targets, and firing. The second task does nothing but "aim" the turret. It's this aiming that previously kept weapons from firing at their maximum rate - because no aim command can complete in less than 150ms (a mass driver could fire three times in that "wasted" interval). With two concurrent tasks, we can fire at the maximum rate for any weapon. It's also a LOT more lag resistant - and I won't sport with your patience any longer explaining why that is.
At any rate, it works! Thought I would share.
You were warned... pirates will be hunted down like vermin.
Ex Turbo Modestum
Ex Turbo Modestum
-
3iff
- Posts: 1085
- Joined: Thu, 23. Oct 03, 09:52

-
nobby375
- Posts: 151
- Joined: Fri, 15. Oct 04, 13:37

Revan, this sounds like such a good script but i am having problems
Ive purchased the ware but when i run it in my oddy(or any other ship) the crew appears to run around from turret to turret as if they are playing tig!
and they dont even bother firing the weapons.
So far i have only given them a verbal warning but if this happens again they will be getting a P45 and a lesson in how airlocks work!
Have u heard of this type of problem before or am i just special?
Im running version 1.4 eng. without any conflicting scripts(I think) and have not seen this sort of prob in the forums
Any help would be great!
Ive purchased the ware but when i run it in my oddy(or any other ship) the crew appears to run around from turret to turret as if they are playing tig!
and they dont even bother firing the weapons.
So far i have only given them a verbal warning but if this happens again they will be getting a P45 and a lesson in how airlocks work!
Have u heard of this type of problem before or am i just special?
Im running version 1.4 eng. without any conflicting scripts(I think) and have not seen this sort of prob in the forums
Any help would be great!
-
Reven
- Posts: 1133
- Joined: Thu, 10. Jul 03, 07:42

I'm not quite sure I understand the issue - running from turret to turret? Are you saying you don't get any weapons fire?nobby375 wrote:when i run it in my oddy(or any other ship) the crew appears to run around from turret to turret as if they are playing tig!
You were warned... pirates will be hunted down like vermin.
Ex Turbo Modestum
Ex Turbo Modestum
