[SCRIPT] NPC Bailing Addon v1.7.8 [2010-09-21]

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Mr. Trade
Posts: 58
Joined: Thu, 4. Dec 03, 16:53
x4

Post by Mr. Trade »

SOLVED ok renaming the .man file fixes it. I dont know why opera, or internet explorer wants to save it as .man thx for the script.
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

Mr. Trade wrote:SOLVED ok renaming the .man file fixes it. I dont know why opera, or internet explorer wants to save it as .man thx for the script.
My apologies, this MAN issue has been reported in another of my plugin's threads. I'll look into it.
apricotslice wrote:
ThisIsHarsh wrote:Did you happen to notice if they are Fighter Drone, Fighter Drone MK2 or Keris?
Fighter Drone Mk2.

. . .

The drones are called "Your Fighter Drone MkII".

Edit : What happens to the active drones of a ship which bails ? I wondered if the first drone is accidently being "bailed" as well ?
Active drones blow up after a while, not sure what script they run when their master dies though.

I'll add an explicit exclusion for MKII's. Thanks for pointing out this issue.
apricotslice wrote:I've also had a toucan bail with its original full name left. This also vanished into limbo when beamed onto a ship as its not a valid ship name.

I'm not clear what you mean? Are you saying that you claimed a Toucan that was not renamed after it bailed, and then you beamed it into your cargo bay where it disappeared, but stayed on your property list?
Yes, exactly that.

High Tech Trader Toucan Hauler.

Its now stored under "Unknown Object - Ships" as are 4 fighter drone mk2's.
This issue, on the other hand, has me completely baffled. It's not uncommon for ships to retain their original name (name changing on bailout is not handled by this script, its an engine thing, though maybe I should code it to force a name change, hmm...). I've never heard of anything like this and have no idea what could cause it. Though beaming into the cargo bay is a bit... dodgy, but I take it that this doesnt happen with other ships you beam into your cargo bay?
There are 10 types of people in the S&M forums - those who understand binary, and those who don't.

Black holes are where God divided by zero.
Gold Dragon
Posts: 1155
Joined: Wed, 30. Jul 08, 05:31
x3tc

Post by Gold Dragon »

I suspect that this mod gave me a fun "non-bug" bug.

I was cruising along finishing up the Poisoned Paranid start, when I came across an unusual sight: A Spacesuit. Normally, they are Astronauts.

Basic Scan (no Freight Scanner), showed it had no Pilot. Betty did her spiel about Space suits. Since I had Cargobay Life Support, I picked it up.

It showed up in Passengers as No Pilot. Near as I can Figure, the "pilot" had "bailed" out of his spacesuit, and of course, died immediately.

What did I do about it? Of course, I dumped and destroyed it, with a "21 gun salute", of course. But first, I stole it's Repair Laser, and later mounted it on the Hyperion. :twisted: (Usage of a "cheat Script", actually, but who wouldn't? That poor guy didn't need it anymore, anyways :twisted: :P )
Life Bringer
Posts: 128
Joined: Mon, 24. Jul 06, 18:46

Post by Life Bringer »

That's fun :lol:
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

I've got a who set of passengers with either no name or "-" for a name.

The no name ones I beleive are Khaak, and the - names are Xenon.

I like it. :D

The aberant ship name has only happened the once, out of 1000's of bails. It may have happened a few other times, but I never noticed it. However, I did have the ship jump back into the same sector a few times and never know why because there wasnt anything to pick up. I finally noticed this one, because I have put in a script to change the neutral race ships to a colour to make them stand out on the nav map. Thats how I found this one.
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

The no named passenger issue I have noticed once or twice. They can't be Xenon or Khaak because the 'pilot eject from ship' script command doesnt spawn spacesuits for Xenon/Khaak. Though, looking at the scripts, it's possible for large ships of Xenon/Khaak to eject spacesuits (if big ship bailing is enabled).
There are 10 types of people in the S&M forums - those who understand binary, and those who don't.

Black holes are where God divided by zero.
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

It would be the latter thats doing it.

I dont consider it a problem, and have found no side effects. I even have marines called "-" :D
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

Update v1.6.4

:arrow: Added exceptions to stop Khaak/Xenon big ships from ejecting crew, and to stop Drones from 'bailing'.
There are 10 types of people in the S&M forums - those who understand binary, and those who don't.

Black holes are where God divided by zero.
Life Bringer
Posts: 128
Joined: Mon, 24. Jul 06, 18:46

Post by Life Bringer »

Forgive the noob question, does it means that xenon and khaak ships aren't claimable because they don't eject their crew anymore or just we will not see the crew leaving the ships but we will be able to claim it?
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

Life Bringer wrote:Forgive the noob question, does it means that xenon and khaak ships aren't claimable because they don't eject their crew anymore or just we will not see the crew leaving the ships but we will be able to claim it?
They will still be claimable, but they wont eject spacesuits. The fighters already don't eject spacesuits for Xenon/Khaak, but there was no such measure for large ships.
There are 10 types of people in the S&M forums - those who understand binary, and those who don't.

Black holes are where God divided by zero.
Life Bringer
Posts: 128
Joined: Mon, 24. Jul 06, 18:46

Post by Life Bringer »

Thanx fast as always :D

Seems the .man issue on download is still there, for both this script and the MBBR
flight104
Posts: 18
Joined: Fri, 15. Oct 04, 07:01
x3tc

Post by flight104 »

ThisIsHarsh, I am new to scripts and I would like to try this one out. I was wondering if you could post a walkthrough for the computer challenged! I can fly and land most airplanes, but computer code is a foreign language to me. Thanks for writing this script.
Last edited by flight104 on Sat, 12. Sep 09, 20:56, edited 1 time in total.
User avatar
Yacek
Posts: 3157
Joined: Wed, 18. Jul 07, 11:44
x3tc

Post by Yacek »

v 1.6.4
No files:
plugin.npcbail.config.mnu.xml

So you want to? :)
X3:AP 3.1+XRM 1.30d+MSP 1.7+LoCo 2.01+IR 2.0
Zapraszamy wszystkich chętnych na forum XUDB, gdzie znajdziesz FAQ, opisy skryptów, modów i fabuł, oraz Mamut HQ.
[ external image ]
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

flight104 wrote:ThisIsHarsh, I am new to scripts and I would like to try this one out. I was wondering if you could post a walkthrough for the computer challenged! I can fly and land most airplanes, but computer code is a foreign language to me. Thanks for writing this script.
You mean how to install this script?

First you need Cycrow's plugin manager. This allows us to package scripts/mods so they install almost like any other computer program (rather than you having to copy files around manually - making it hard, for example, for you to uninstall scripts/mods).

Once you have installed and set up the plugin manager, you can just download any plugin saved in spk format, double-click it, and it will install to your game folder via the plugin manager.

So now you have the plugin manager. To configure NPC Bail Addon you will need another plugin, Cycrow's Community Plugin Configuration Menu. You will find the link there to download an spk, which as mentioned just installs by double-clicking.

Then just start your game. If you installed the Community Plugin Configuration Menu, you must assign a keyboard key to it in the game (under options->controls->interface, near the bottom of the list). Other than that, the NPC Bailing Addon will be active the moment you start your game (either new game or loading a savegame).

Yacek wrote:v 1.6.4
No files:
plugin.npcbail.config.mnu.xml

So you want to? :)
You had me a little worried with this one. I think that must be a remnant script from a much older version, since I don't have a script by that name and the menu still works fine.
There are 10 types of people in the S&M forums - those who understand binary, and those who don't.

Black holes are where God divided by zero.
User avatar
Yacek
Posts: 3157
Joined: Wed, 18. Jul 07, 11:44
x3tc

Post by Yacek »

ThisIsHarsh wrote:You had me a little worried with this one. I think that must be a remnant script from a much older version, since I don't have a script by that name and the menu still works fine.
OK, thank you
I'm using a script from the first version :)
X3:AP 3.1+XRM 1.30d+MSP 1.7+LoCo 2.01+IR 2.0
Zapraszamy wszystkich chętnych na forum XUDB, gdzie znajdziesz FAQ, opisy skryptów, modów i fabuł, oraz Mamut HQ.
[ external image ]
flight104
Posts: 18
Joined: Fri, 15. Oct 04, 07:01
x3tc

Post by flight104 »

Thanks, this helped alot. I had the .MAN file problem and had to rename the file. I was looking at the script to reset bail rate and allow for big and huge ships to bail, what do I need to change? :?
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

flight104 wrote:Thanks, this helped alot. I had the .MAN file problem and had to rename the file.

Its wierd, I don't get the .MAN file problem, spks download properly for me. I'm using Firefox and I tried with both normal Firefox download and using Free Download Manager. Both downloaded as spk not MAN. What are you all using?
flight104 wrote:I was looking at the script to reset bail rate and allow for big and huge ships to bail, what do I need to change? :?
This is done via the Community Plugin Configuration Menu script I mentioned. Once you've assigned a keyboard key (I use SHIFT+F12), pressing the key will bring up the menu, with one of the options being NPC Bail Addon. You can select that and change options there, it should be fairly self explanatory.

Just ignore the '%' signs in the bail rate settings, people tend to get confused by this (rightly so). It's not the actual probability (i.e. percentage chance) of bailing, its just a number that gets fed into an equation to determine the actual probability. The fact that the number ranges from 10-100 just made it look like a % sign would look better. Keep meaning to change that.

One thing to bear in mind is if you downloaded Salvage Commands & NPCS, as posted in the OP. With this plugin you get useful commands to help salvage as well as NPCs who will try to claim ships (both commands and NPCs can be seperately disabled). These NPCs will effectively balance the Bail Addon, by claiming ships before you can get there (some ships won't be claimed - there is an option to control the 'max response rate' of these NPCs).

So there are effectively two ways to control the amount of bailed ships lying around - by using competing NPCs, or by just making the probability that ships bail much lower.
There are 10 types of people in the S&M forums - those who understand binary, and those who don't.

Black holes are where God divided by zero.
flight104
Posts: 18
Joined: Fri, 15. Oct 04, 07:01
x3tc

Post by flight104 »

Thank you for the walkthrough. I know that it will help others like me who are in the same situation. On another note, I tried to claim 2 ships, and there wasn't a claim menu from my spacesuit. I was even killed when a missle hit the ship I was trying to claim. It was during an assasination mission. The pilot bailed in both cases.
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

flight104 wrote:Thank you for the walkthrough. I know that it will help others like me who are in the same situation. On another note, I tried to claim 2 ships, and there wasn't a claim menu from my spacesuit. I was even killed when a missle hit the ship I was trying to claim. It was during an assasination mission. The pilot bailed in both cases.
Was the ship a big ship (i.e. not a fighter or transport)? Big ships can't be claimed via the spacesuit method. You require yet another 3rd party plugin. There are several plugins to choose from. Search for the word 'salvage' in the sticky Community Script & Mod Download Library. The aforementioned Salvage Commands & NPCs plugin can use the vanilla System Override Software to claim any ship, including big ones.

Since it was a mission ship, it could be that it was not a big ship, since some mission ships are made purposefully unclaimable by egosoft. You can still claim them using one of the salvage plugins, though. You may want to reconsider that, however. I don't know specifically, because I don't play the random generated missions, but there have been problems reported in the past. For example, you may not be able to complete the assassination mission until the ship is destroyed, but claiming isn't the same as destroying, so you end up having to destroy your newly claimed ship. This might not be the case, but you get the idea.

There is an option in the config menu of NPC Bail Addon to (attempt to) block such 'special ships' from bailing, in case you're that way inclined.
There are 10 types of people in the S&M forums - those who understand binary, and those who don't.

Black holes are where God divided by zero.
virgil64
Posts: 54
Joined: Fri, 24. Nov 06, 14:17
x3tc

Post by virgil64 »

Hi There,

Firstly, thankyou for this script, been using it forever, lol.

Question re: latest update, in version history you have

"Fixed: added exception to stop Khaak/Xenon big ships from ejecting crew."

Does that mean that Q's, J's anf K's will no longer bail?

Thanks again :)

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”