Page 1 of 7

[BONUS Plug-In] Basic Patrol Commands v1.03 [4-1-05]

Posted: Sun, 31. Oct 04, 21:01
by ticaki
Download: your personal downloadpage

update 4/1/05:
- New Enemy Detection Logic: fixed problem of friend/foe setting staying set to enemy after attack. Now, as soon as there are no eemies within 20 km of your patrol leader, settings will revert back to friend.

update 29/12/04:
- New Enemy Detection Logic: Ships attacking your in-sector bases or ships will be targeted by your patrol whether they are set as an enemy or not in the standard friend/foe settings. ('good' pirates vs. 'bad' pirates)

update 7/11/04:
- advanced target prioritization logic now selects the enemy which is the biggest threat to you, based on size and distance
- all player items (ships, satellites) in a sector can now transmit information to the patrol if they spot an enemy
- both Fight Command Software MK1 & MK2 are now required
- costs have been redone slightly, see readme for details (TS/TP now cost $)

Code: Select all

Two new commands are added to the Fight Command Menu: Patrol Single Sector and Patrol Multi Sector. These commands are only available on M6 and larger craft when both Fight Command Software Mk1 & Mk2 are installed. These commands patrol a defined area and engage enemy ships (not stations) when they are found. 

The following features are standard to both patrol commands: 

* The patrol will move at the speed of the slowest ship. It will wait upon reaching each waypoint to allow any stragglers to catch up. 

* The standard friend/foe settings of the lead patrol ship are used to determine if a ship is an enemy. Patrols will only engage ships that can be detected by one of your ships or satellites.

* If any ships are attacking your in-sector bases or ships, they will be targeted by your patrol whether they are set as an enemy or not in the standard friend/foe settings. Now your patrols will engage any 'bad' pirates that attack you, even if you have pirates set as friends so that you would normally leave them alone.

* Wingmen are controlled automatically, with no special input from the player. To assign a wingman to the lead patrol ship, simply order a ship to follow or protect it. The wingmen will be recognized and officially added to the formation upon reaching the next waypoint. 

* All ships in the patrol will engage the same enemy, focusing fire on a single target to ensure that your patrol is not split up, and that targets are killed as quickly as possible. Targets are prioritized based on their level of threat to you.

* When wingmen are substantially damaged, they will leave the patrol, fly to the nearest friendly / neutral shipyard, and contact you for orders.
For more informations look into the readme!

Scripter: Burianek

Posted: Sun, 31. Oct 04, 22:03
by Burianek
Just wanted to start off by saying thank you to ticaki. Tickai helped out a great deal with this script, and it was a pleasure working with him to get this signed.

:thumb_up:

Posted: Mon, 1. Nov 04, 00:43
by fchopin
Nice script,

I have a question on the order the sectors are selected.

I have selected 4 sectors for my M6 and 3 wingmen, and the order the M6 is protecting the sectors is exactly the order I selected.
If I select the sectors in a different order will this change the order my M6 will follow?

Edit: I have changed the order of the sector selection and now the M6 is folowing the new order.

Posted: Mon, 1. Nov 04, 09:48
by Vaylon
Well well, we have been a busy bunch over All Hallows!

I would like to try it out but I'm using Marks fight software Mk3. Will this script affect it in anyway?

-NJ

Posted: Mon, 1. Nov 04, 10:40
by strat
I think this is a reincarnation of marks script that will be fully compatable with all other signed scripts. I understand there was a bug in marks code that could cause your game to freeze if you picked another sector by accident while placing your way-points for patrol one sector.

I also understand that this is a work in progress and more features will be added in the future.
Oh, and marks script was not compatible with Xaicorps excellent AI either, which is a must have in my opinion.


Strat...

Posted: Mon, 1. Nov 04, 11:04
by Reven
There were lots of issues with the old scripts. Burianek did an excellent job with this. Particularly good is the way sectors are patrolled. There is some info that the readme doesn't cover that is useful information.

The way the patrol works is intelligent. It will generally patrol sectors in the order that you specify them, but this isn't set in stone. For example, consider the following: There are 3 sectors in a corner formation like this:

Code: Select all

1 - 2
    |
    3
If you enter the sectors in that order as sectors to patrol, it will start out by patrolling sector 1, then 2, then 3. At that point it goes back to sector 1 to start the patrol again.

In Mark's old patrol scheme, if you set that up on a "patrol 3 sectors" command, the ship would bly back from sector 3 to sector 1, not patrolling any sectors on the way.

With Burianek's script, if the ship passes back through sector 2 on it's way from sector 3 to 1 to start the patrol over again, it will see that sector 2 is in the patrol list, and WILL patrol it.

As Burianek described it to me, when you enter in a sector as a sector to patrol, you are entering it in as a sector of interest. Any time your patrol ship passes through a sector, if that sector is in the patrol list anywhere, it will patrol it.

This means you can set up a linear forward and back patrol very easily. Say, you have 4 sectors in a row you want to patrol:

Code: Select all

1 - 2 - 3 - 4
You don't have to worry about the ship completing the patrol "forward" and then wasting time flying back to the first sector. It will patrol the sectors it passes through on it's way "back" as well.

It's a great system. Burianek did an excellent job with this script. On the surface it looks simple, which is why it's perfect. The best program in the world is the one that seems the simplest.

Good work.

Posted: Mon, 1. Nov 04, 11:47
by Vaylon
Well it looks quite good and I may install it on a new game but I'll stick with Marks for now as it has extra comands I use quite often.

Thanks for the hard work Burianek :D

-NJ

Posted: Mon, 1. Nov 04, 12:12
by GCU Grey Area
Interesting script, just have one question:

In the costs section of the readme there's no entry for TP & TS ships
I've found Iguanas (equipped with Ion D's) & Demeters (with mining lasers) to be fairly effective OOS. If these ships are used as wingmen to an M6, will they either:
A. break the script :(
or:
B. cost nothing :)

Posted: Mon, 1. Nov 04, 12:33
by ticaki
B :roll:

Greets ticaki :D

Posted: Mon, 1. Nov 04, 12:35
by Burianek
GCU Grey Area wrote:Interesting script, just have one question:

In the costs section of the readme there's no entry for TP & TS ships
I've found Iguanas (equipped with Ion D's) & Demeters (with mining lasers) to be fairly effective OOS. If these ships are used as wingmen to an M6, will they either:
A. break the script :(
or:
B. cost nothing :)
Hmmm... good point. Right now they're free, as I didn't consider TS/TP ships to be worth charging for.
Perhaps I should consider this the first bug report and fix it right away? ;)
or are you happy with your free Iguanas? (for now :twisted: )

Posted: Mon, 1. Nov 04, 12:38
by Burianek
Vaylon wrote:Well it looks quite good and I may install it on a new game but I'll stick with Marks for now as it has extra comands I use quite often.

Thanks for the hard work Burianek :D

-NJ
You can use both if you want. This won't conflict with Mark's script (or any other script for that matter)
So if you don't mind having all the extra commands, just install this right alongside Mark's and use my patrol commands with Mark's extra stuff (or any combination)
The only thing you'll miss is if Mark's extra stuff ties directly into his patrol commands, since you won't be running his patrol 3 / patrol 6 commands.

Posted: Mon, 1. Nov 04, 12:51
by GCU Grey Area
Burianek wrote: I didn't consider TS/TP ships to be worth charging for.
Perhaps I should consider this the first bug report and fix it right away?
Think you should.

[EDIT: ...eventually - there's a lot of interesting stuff on the 'hopefully' list on the index of signed scripts thread, wouldn't want the signing of any of those to be delayed by fixing this]

Iguanas in particular are very effective OOS, IMO more effective than M3's & possibly some M6's (higher OOS laser strength, though weaker shields).

Posted: Mon, 1. Nov 04, 16:01
by martindemon
Just a question here, why the fees? These are our ships that are programmed, those are not hired pilot. Is it a balancing issue? What is the justification? Would it be easy to remove the fees from the script? I'm a programmer but I don't have so much time on my hands and I presently know nothing about scripting in X2...
Ok done, salary=0 because I don't see how it could be justified.

Posted: Mon, 1. Nov 04, 16:32
by JungleJim
I think the extra cost is very justified.

Look at it this way, for every other feature used in X2 you have to pay. This will be a very useful addition for OOSD, therefore, I'm willing to pay for it.

Eventually it'll save me a bunch by reducing the number of M6s required to keep my sectors safe.

Furthermore after playing for a while in X2 money isn't hard to come (& therefore not so valuable), however, your time is.

Posted: Mon, 1. Nov 04, 16:41
by Reven
No script will get signed unless it charges some money. Don't ask why. I don't think even the developers know why. :p Even the script to add a traded wares to a player-owned equipment dock charges you 1000 credits to add it. I've stopped asking why. :p

And really, what this script charges in an hour is a drop in the pond compared to the revenue most of us receive from our factories. I know I've stopped counting the digits on my money.

Just wait till my script gets signed - then you'll have reason to complain about getting charged money. :) I happen to think mine's justified, but I'm sure everyone thinks that.

Posted: Mon, 1. Nov 04, 16:47
by martindemon
JungleJim wrote:I think the extra cost is very justified.

Look at it this way, for every other feature used in X2 you have to pay. This will be a very useful addition for OOSD, therefore, I'm willing to pay for it.

Eventually it'll save me a bunch by reducing the number of M6s required to keep my sectors safe.

Furthermore after playing for a while in X2 money isn't hard to come (& therefore not so valuable), however, your time is.
I don't use other scripts that require credits because I don't see who exactly gets the money. Even if those are signed or used be lots of people, when something is not explained logically, I don't use it. I don't have time to test it right now but if I can't remove the fee, I'll do my own ship computer programmation (that's what it's all about, programming the computers of our ships.) I think there is no logical explanation that can be given to demonstrate that a computer of the era of X2 could not freely be programmed into doing patrols. I see that most people see that as cheating or bad game balance but I see that as thinking about using the features of the ships that I bought.

Posted: Mon, 1. Nov 04, 16:52
by Reven
JungleJim wrote:This will be a very useful addition for OOSD, therefore, I'm willing to pay for it.
I don't think there is any question at all that it's useful, and that it's worth it. The question is, do the charges make sense in the context of the game. Is charging for these patrols consistent with what we know of the X universe. The answer to that is no.

With the automatic trader, the fictional assumption is that there is a real pilot you are paying. With these patrols, there is no pilot, so where is the money going?

The issue that martindemon (as I understand it) is addressing, is that it seems that signed scripts seem to have to charge money arbitrarily based on the functionality they are providing to the player, not according to what they are doing in the fictional universe. This is a breach of the "willing suspension of disbelief" contract between the game and the person., because it makes the assumption that there is a player behind the keyboard who is gettting value from the script. Fictional game credits are being charged for value a non-fictional real-life person is receiving.

I just wanted to clarify that - it's not that the script isn't worth the money. No one is arguing that.

Posted: Mon, 1. Nov 04, 16:55
by martindemon
Thank you, that was exactly what I was refering to :)

Posted: Mon, 1. Nov 04, 16:59
by ticaki
Reven wrote:With the automatic trader, the fictional assumption is that there is a real pilot you are paying. With these patrols, there is no pilot, so where is the money going?
There is a pilot look at the Pilotname ;)

Greets ticaki

Posted: Mon, 1. Nov 04, 17:04
by martindemon
You have put your name there? :) :D
Ok so you say that a swarm of Ticaki pilots are assigned to my ships :)
But the assumption that the computer of the ship could function freely and automatically still holds...