|
|
 |
View previous topic :: View next topic |
 |
|
|
|
|
Author |
Message |
|
|
|
|
|
Litcube

Joined: 20 Oct 2006 Posts: 2246 on topic Location: Canada

 |
Posted: Tue, 19. Apr 11, 20:08 Post subject: Litcube's Missile Boat Add-On (Turret:V0.92b / Supply:V0.93b) |
|
|
Litcube's Missile Boat Add-On (Turret:V0.92b / Supply:V0.93b)
Enables Missile Boats to do their thing
Download Missile Boat Turret Overwrite:
Download Military Suppliers Job Script:
What is this?
Videos from builder680:
BEFORE your !turret.missileattack and Lib.Cmd.Turret.Barrage
VIDEO (CLICK)
AFTER your !turret.missileattack and Lib.Cmd.Turret.Barrage
VIDEO (CLICK)
Missile Boat Turret Overwrite:
In the stock game, missile boats are close to useless. They fire missiles using the same frequency as other ships would (FLY's-> get missile fire probability). This changes that by running a turret script on a missile boat's missile turret. Note that the missiles are not hardcoded.
New rules as of V0.9
- A volley is defined as missile launches between respected missile ROF + ship's assigned Missile Fire Probability Delay.
- The Missile Fire Probability Delay is equal to 11.5 seconds - (ship's assigned Missile Fire Probability * 100).
- Missile Fire Probability is set in the ship's command console (delay examples: %5: 10 sec, 100%: 0.5 sec)
- By default, AI ship's have a 5% Missile Fire Probability.
- Turrets can fire at only one target per volley.
- To mitigate overkill and waste, not all pods are used in a volley, depending on target "hit points"
- Multiple turrets can attack a single target, if the expected damage output is appropriate per "hit points"
Missile selection:
- Highest damage missile that is 20% faster than the target's speed
- If target range is more than 90% of missile range, the missile is skipped for fire
- If no missile is found that meets speed requirements, pick fastest missile
- If no missile is found that meets range requirement, NO missile is returned (thus barrage will not fire)
Loops are all "waited", and scripts do not run OOS, performance is not an issue. Once installed, AI ships will use this script automatically. Player ships are not effected unless you run the "Attack Enemies" command on the missile turrets, at which point they will run this script.
[NOTE:] All the scripts included in this package include versioning checks, and will auto-update themselves in terms of running status if a newer version is supplanted.
Military Suppliers Job Script:
M7s and M8s don't resupply themselves properly, so I wrote a job script for it. Ships running this job will search for their own races missile boats that are low on missiles (<12). Once they find a ship, they'll jump to a military outpost to supply (supply is faked, but ship *is* loaded with actual missile wares), and then fly to the target ship within transporter range, and finally use the transporter to resupply.
The job is very heavily "waited", so much so, that if a missile boat is out of missiles, it could be five to ten minutes before the military supply ship picks up the operation. This is intentional to ensure good performance.
The Military Suppliers Job script will not automatically be implemented in your game. you will have to add a job to run this script. I've added 4 for each commonwealth race and 3 per ATF/Terran. I set them to TS ships, and named them Military Supply Transports.
Note that it is not necessary to implement the Military Suppliers Job for the Missile Boat Turret Overwrite script to function. However, you will notice AI missile boats frequently running out of ordinance if you don't.
Install
Missile Boat Turret Overwrite:
This will overwrite your !turret.missileattack.pck in your scripts directory. Back it up if you want the option to revert later.
Military Suppliers Job Script:
Copy !job.missilesupply.xml to scripts directory. Make a job that runs this script (if you're using vkerinav's xtra jobs, it's done for you). Note that a job's script field does not include "!job", so yours will look like this: "missilesupply".
Missile Boat Turret Overwrite Versions
0.92b:
- Compressed the !turret.missileattack.xml to a .pck for easier installation.
0.91b:
- Packing issue. Forgot a file. Very important.
0.9b:
- Near total rewrite
0.7b:
- Added two checks to ensure missile was present and enemy still existed before firing.
0.6b:
- Fixed packing issue. The old version didn't work with ATF/Terran ships, as I had hardcoded values. Proper version included now.
0.5b:
- Initial release
Military Suppliers Job Script Versions
0.93b:
- Bug where military suppliers were all running for the same ship to supply. This has been fixed. Only one military supplier will supply a single missile boat with missiles at one time.
0.92b:
- Job scripts fun fact! If you don't set a command on the ship, the job engine will re-run the script on the spawned ship ever time its spawn timer comes up. This doesn't cause a problem unless your spawn time is lower than the ship's initial wait, in which case it'll never do anything. Added a set command COMMAND_SUPPLY_WARE. Problem solved.
0.8b:
- Packing issue
0.7b:
- Sets the "it's ok guys, I got this one" flag on a target ship to null if an outpost can't be found, allowing others to take over if an outpost becomes available.
0.6b:
- Suppliers were loading too many energy cells, leaving little room for missiles. Has been fixed. No restart required, just replace files.
0.5b:
- Initial release
_________________ My works
Fixed Notoriety Rewards | Missile Rebalance & UI Icons | Phanon Corporation | Revelation | Saturn Complex Hub
Last edited by Litcube on Fri, 11. May 12, 23:06; edited 23 times in total |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Mizuchi

Joined: 10 Feb 2011
Location: Tokyo, Japan
|
Posted: Tue, 19. Apr 11, 20:13 Post subject: |
|
|
Suddenly, Station Insurance Premiums sky-rocketed across the universe, while sales of large red buttons and "do not push" signs were met with huge demand.
Coincidence?!
Also:
| Litcube wrote: |
| However, you will notice AI missile boats frequently running out of ordinance if you don't. |
If you've just found your fighter wings have been replaced with numerous fireworks, and your hull condition is in the single digits, this might not be such a bad thing. :3
_________________
 |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Litcube

Joined: 20 Oct 2006 Posts: 2246 on topic Location: Canada

|
Posted: Tue, 19. Apr 11, 20:20 Post subject: |
|
|
| Mizuchi wrote: |
Suddenly, Station Insurance Premiums sky-rocketed across the universe, while sales of large red buttons and "do not push" signs were met with huge demand.
Coincidence?!
Also:
| Litcube wrote: |
| However, you will notice AI missile boats frequently running out of ordinance if you don't. |
If you've just found your fighter wings have been replaced with numerous fireworks, and your hull condition is in the single digits, this might not be such a bad thing. :3 |
Yeah, don't say I didn't warn you. I would strongly recommend nerfing the boat missiles by half. Once the boat has spent its missiles, enemies can breathe a sigh of relief until a military supply transport jumps in; at which point, it's probably a primary target.
_________________ My works
Fixed Notoriety Rewards | Missile Rebalance & UI Icons | Phanon Corporation | Revelation | Saturn Complex Hub |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Mizuchi

Joined: 10 Feb 2011
Location: Tokyo, Japan
|
Posted: Tue, 19. Apr 11, 20:33 Post subject: |
|
|
"So," said Litcube, "I heard you like... explosions..."
Anyhow, again, thanks for this one.
_________________
 |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Roger L.S. Griffiths

 
Joined: 12 Mar 2004 Posts: 5757 on topic Location: United Kingdom

|
Posted: Tue, 19. Apr 11, 20:34 Post subject: |
|
|
| Litcube wrote: |
| Mizuchi wrote: |
Suddenly, Station Insurance Premiums sky-rocketed across the universe, while sales of large red buttons and "do not push" signs were met with huge demand.
Coincidence?!
Also:
| Litcube wrote: |
| However, you will notice AI missile boats frequently running out of ordinance if you don't. |
If you've just found your fighter wings have been replaced with numerous fireworks, and your hull condition is in the single digits, this might not be such a bad thing. :3 |
Yeah, don't say I didn't warn you. I would strongly recommend nerfing the boat missiles by half. Once the boat has spent its missiles, enemies can breathe a sigh of relief until a military supply transport jumps in; at which point, it's probably a primary target. |
How about having the missile boats themselves RTB for reload?
_________________ Roger (aka [SRK] Mr^Rabbit)
"Understanding is a three edged sword... your side, their side... and the Truth!" - J.J. Sheriden, Babylon 5 S4E6 T28:55
"May god stand between you and harm in all the dark places you must walk." - Ancient Egyption Proverb
"How do you eat an elephant? One bite at a time." - Unknown |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Litcube

Joined: 20 Oct 2006 Posts: 2246 on topic Location: Canada

|
Posted: Tue, 19. Apr 11, 21:00 Post subject: |
|
|
| Roger L.S. Griffiths wrote: |
| How about having the missile boats themselves RTB for reload? |
That's a better idea. It'd take them out of the action when they're useless.
I'll work on it. It would require either a new job, which would mean M7Ms and M8s have to be specifically assigned as a shiptype, or a job overwrite, including code for missile boats to fly to the nearest military outpost for resupply.
I think there's already code in there for that, I'll take a look.
_________________ My works
Fixed Notoriety Rewards | Missile Rebalance & UI Icons | Phanon Corporation | Revelation | Saturn Complex Hub |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Sn4kemaster
 
Joined: 17 Jun 2009 Posts: 976 on topic Location: Just beyond the final star, staring at the edge of infinity.

|
Posted: Tue, 19. Apr 11, 21:09 Post subject: |
|
|
Wayhay.......... finally, this should make things a little more interesting out there in space!
I agree that the M7M and M8 should equipe themselves.
Can this be put into the EES (as well as a standalone script)
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
mr.WHO
Joined: 12 Oct 2006 Posts: 1677 on topic Location: Wroclaw - Poland

|
Posted: Tue, 19. Apr 11, 21:12 Post subject: |
|
|
How it fare with IR script (IR use some missile ships as blockade ships that fire barrages)?
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Mizuchi

Joined: 10 Feb 2011
Location: Tokyo, Japan
|
Posted: Tue, 19. Apr 11, 21:16 Post subject: |
|
|
Only one way to find out. 
_________________
 |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
vkerinav
Joined: 11 Apr 2010
|
Posted: Wed, 20. Apr 11, 01:10 Post subject: |
|
|
What I mean to say is, I'll add this to SRM/Xtra Jobs shortly.
_________________ Jobs for Ship Rebalance Mod and Cadius' Xtra Ships.
(Both TC only, and outdated)
Now includes Litcube's Enhanced Equipment Spawner! |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Litcube

Joined: 20 Oct 2006 Posts: 2246 on topic Location: Canada

|
Posted: Wed, 20. Apr 11, 01:27 Post subject: |
|
|
| vkerinav wrote: |
| What I mean to say is, I'll add this to SRM/Xtra Jobs shortly. |
Hah. I caught your original post.
As for editing the jobs to make the missile boats return to base, I've decided against it, despite me originally thinking it's a better idea. Here's why:
The solution as it stands, the military supply transporter, is a more elegant solution for a few reasons.
The missile boat turret overwrite is only a turret script, not a main control script. You can't (or shouldn't) write task 0 controlling code in a turret script to make it fly back to base. And to do that, we'd have to edit all existing jobs for any ship that uses a possible M7M or M8.
Not only that, there's going to be custom job files for different mods making this somewhat incompatible. Some jobs even contain flags for M7s OR M7Ms, making all non-missile-boat M7s fly back to base. I realize you can put a check in there, but it's not as streamlined.
FUTHERMORE, some scripts packages, nevermind just jobs, also spawn missile boats. The military supply transporter can tend them as well.
Adding a job, such as the military supply transporter, ensures that it's cross-mod compatible and is the least intrusive fix. Besides: it works, and it adds a neat little function for race TS ships aside from lobbing useless wares, shedding a little more life in the Universe.
[NOTE:] All the scripts included in this package include versioning checks, and will auto-update themselves in terms of running status if a newer version is supplanted.
_________________ My works
Fixed Notoriety Rewards | Missile Rebalance & UI Icons | Phanon Corporation | Revelation | Saturn Complex Hub |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
vkerinav
Joined: 11 Apr 2010
|
Posted: Wed, 20. Apr 11, 01:47 Post subject: |
|
|
| Litcube wrote: |
| vkerinav wrote: |
| What I mean to say is, I'll add this to SRM/Xtra Jobs shortly. |
Hah. I caught your original post. ;)
As for editing the jobs to make the missile boats return to base, I've decided against it, despite me originally thinking it's a better idea. |
I was apparently so caught up thinking that someone should do it, I forgot to check if someone did.
I agree with your reasoning. It seems to me that freighter resupply is a more elegant, and 'realistic' approach. Perhaps it could be expanded to include ammunition? And would it work for the Yaki/Pirate/Xenon, who, at least in SRM, have their own missile frigates?
_________________ Jobs for Ship Rebalance Mod and Cadius' Xtra Ships.
(Both TC only, and outdated)
Now includes Litcube's Enhanced Equipment Spawner! |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Litcube

Joined: 20 Oct 2006 Posts: 2246 on topic Location: Canada

|
Posted: Wed, 20. Apr 11, 01:51 Post subject: |
|
|
| vkerinav wrote: |
I agree with your reasoning. It seems to me that freighter resupply is a more elegant, and 'realistic' approach. Perhaps it could be expanded to include ammunition? And would it work for the Yaki/Pirate/Xenon, who, at least in SRM, have their own missile frigates? |
If you add a job where the ship owner is of Yaki, for example, it'll stock Yaki missile boats.
This could be expanded to do ammo. I've discarded ammo from my own game on account of the 0/ms bug it causes, but it's easy enough to modify the script supply it.
_________________ My works
Fixed Notoriety Rewards | Missile Rebalance & UI Icons | Phanon Corporation | Revelation | Saturn Complex Hub |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
builder680
Joined: 14 Feb 2011 Posts: 852 on topic Location: Kansas - Wheat Farm XL delta

|
Posted: Wed, 20. Apr 11, 02:00 Post subject: |
|
|
Lots of technical speak.
If all of this stuff has the end result of making M7M's shoot their missiles at *me,* not just the AI, I will be one happy son of a biscuit eater.
I *want* to be scared to death of the enemy, and to be forced to deal with major attrition, or even outright defeat, in battles with the AI.
Best of luck, and thank you for looking at this, Litcube. 
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Litcube

Joined: 20 Oct 2006 Posts: 2246 on topic Location: Canada

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
|
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
 |
|
|
|
|
|