[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

Gravitycontrol
Posts: 396
Joined: Sat, 7. Jan 06, 19:27
x4

Post by Gravitycontrol »

It runs finally without crashes ^^ now i can start my professional pirating carrer (me+teladi+yaki vs argon+boron+terran+atf vs paranid+split vs xenon vs khaak) :twisted: :twisted: :twisted:
User avatar
ThalonMook
Posts: 1296
Joined: Tue, 3. Feb 04, 12:11
x4

Post by ThalonMook »

Hi,

after the update I found a log10002.txt. Problem is I made serval updates form different scripts. So I don't know if it's from your script.

Here's the link:

http://www.tzd-online.de/X3TC/log10002.txt


CU
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

ThalonMook wrote:Hi,

after the update I found a log10002.txt. Problem is I made serval updates form different scripts. So I don't know if it's from your script.

Here's the link:

http://www.tzd-online.de/X3TC/log10002.txt


CU
Yeah, I left some logging in a previous version by accident. Its nothing to worry about. Its fixed in the latest version. You can delete the file no worries.
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
ThalonMook
Posts: 1296
Joined: Tue, 3. Feb 04, 12:11
x4

Post by ThalonMook »

I know that I can delete such logs. I use them also for debugging in my scripts :D

I have the newest Version 1.7.6 and the logfile is updated every x minutes.

CU Thalon
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

Update v1.7.7

:arrow: Minor update, left a little debug logging in there. Thanks to ThalonMook for pointing it out.
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
ThalonMook
Posts: 1296
Joined: Tue, 3. Feb 04, 12:11
x4

Post by ThalonMook »

Hi,

I wont let you sleep :D

I have a request. I use Lucikes scripts. Commercial Agent, Commodity Logistics Software, Economy and Supply Trader.....
If you know that scripts you also know that a pilot is very valuable.
Sometimes I miss one of the traders, then I find a bailed ship and if I get it I see that it is one of mine.
Is it possible to get a message when one of my pilots bail that I get a message ?

CU Thalon
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

ThalonMook wrote:Hi,

I wont let you sleep :D

I have a request. I use Lucikes scripts. Commercial Agent, Commodity Logistics Software, Economy and Supply Trader.....
If you know that scripts you also know that a pilot is very valuable.
Sometimes I miss one of the traders, then I find a bailed ship and if I get it I see that it is one of mine.
Is it possible to get a message when one of my pilots bail that I get a message ?

CU Thalon
NPC Bailing Addon does not work for player ships, so if pilots are ejecting from your ships it must be something Lucike has coded, best off asking in one of his threads.
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
TrixX
Posts: 2035
Joined: Wed, 18. Aug 10, 14:28
x4

Post by TrixX »

Salvage Commands and NPCs - is what you are looking for. It has a routine which warns if your ships are under attack.
"If you’re not prepared to be wrong, you’ll never come up with anything original."
Sir Ken Robinson
aka1nas
Posts: 1414
Joined: Thu, 7. Jul 05, 05:17
x4

Post by aka1nas »

ThisIsHarsh wrote:
ThalonMook wrote:Hi,

I wont let you sleep :D

I have a request. I use Lucikes scripts. Commercial Agent, Commodity Logistics Software, Economy and Supply Trader.....
If you know that scripts you also know that a pilot is very valuable.
Sometimes I miss one of the traders, then I find a bailed ship and if I get it I see that it is one of mine.
Is it possible to get a message when one of my pilots bail that I get a message ?

CU Thalon
NPC Bailing Addon does not work for player ships, so if pilots are ejecting from your ships it must be something Lucike has coded, best off asking in one of his threads.
Did you disable this functionality at some point? I could have sworn that you had it initially. I also have some vague half-forgotten memory of us having this same discussion 18 months ago or so. :D

Edit: Couldn't get it out of my head, lol. Found it: http://forum.egosoft.com/viewtopic.php? ... t=#3009913
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

LOL, well once more I stand corrected. Man my memory is baad.

OK, I'll have to add an option to enable/disable for player-owned ships and also to notify the player, as you requested.
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.
aka1nas
Posts: 1414
Joined: Thu, 7. Jul 05, 05:17
x4

Post by aka1nas »

Hehe, I thought I was getting senile, too. I actually love that feature as a balancing element.

One issue I always run into with the NPC Bailing Addon is that, well, NPCs will always be rather terrible at capping compared to the player. Unless you set the bail rate relatively high, you'll almost never get caps from your wingmates or fleets. Setting the bail rate at a sufficiently high level tends to mean that the player will almost always cap a ship they take on themselves.

Would it be possible to have a setting for each ship class that determines which attackers can trigger NPC Bailing? I.E. All ships, All Non-player-owned ships, All but Player? Personally, I would probably prefer to set fighters to not trigger additional bails from NPC bailing when I am attacking them, but still allow NPCs (including my owned ships) to have a chance at capping.
User avatar
ThalonMook
Posts: 1296
Joined: Tue, 3. Feb 04, 12:11
x4

Post by ThalonMook »

Hi,

I found out why the ReadText was shown again.
Also the values was setable only from 1 to 10

After reset options to default all values are chooseable correct and I can see now infinite.

Next time when you change something in the language file I think it's recommended that the script will reset the values or you write this to do when updating the script.


CU Thalon
dougeye
Posts: 2409
Joined: Sat, 7. Mar 09, 18:29
x3tc

Post by dougeye »

i have a problem with big ships i never get to claim them due to my tyr launching 18 strong broadsides of psp's at them lol :D
I used to list PC parts here, but "the best" will suffice!
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

@aka1nas: those suggestions are possible, I think. I'll have a ponder how best to implement them.


@ThalonMook: ah, I must have forgot to increase the version number in the t-files. 'Reset settings to default' does a similar job (i.e. reads and caches the JSON objects), so probably why that worked. Thanks for the heads-up.
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.
Coruskane
Posts: 851
Joined: Fri, 13. Jun 08, 13:14
x4

Post by Coruskane »

aka1nas wrote:
ThisIsHarsh wrote:
ThalonMook wrote:Hi,

I wont let you sleep :D

I have a request. I use Lucikes scripts. Commercial Agent, Commodity Logistics Software, Economy and Supply Trader.....
If you know that scripts you also know that a pilot is very valuable.
Sometimes I miss one of the traders, then I find a bailed ship and if I get it I see that it is one of mine.
Is it possible to get a message when one of my pilots bail that I get a message ?

CU Thalon
NPC Bailing Addon does not work for player ships, so if pilots are ejecting from your ships it must be something Lucike has coded, best off asking in one of his threads.
Did you disable this functionality at some point? I could have sworn that you had it initially. I also have some vague half-forgotten memory of us having this same discussion 18 months ago or so. :D

Edit: Couldn't get it out of my head, lol. Found it: http://forum.egosoft.com/viewtopic.php? ... t=#3009913
Security and Rescue Services, is what you are looking for. Dedicated rescue ships and defensive squadrons for Pilot Union pilots :)
User avatar
ThalonMook
Posts: 1296
Joined: Tue, 3. Feb 04, 12:11
x4

Post by ThalonMook »

@Coruskane
Thx I know this sript and I use it about 4 weeks :D

@ThisIsHarsh
One question.
When I need that the bailed ships have more equipment then I have to increase the 'Bail hull factor'. Is this correct ?


CU Thalon
Sunrayn
Posts: 85
Joined: Tue, 14. Oct 08, 00:59

Post by Sunrayn »

How do I turn on script debugging for NPC Bail. I have reached a point in my game where I get an unavoidable freeze. I even went back to an older save and precisely at almost the same game time, it freezes.

I logged the IR debug and there was nothing on there that explains it.
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

ThalonMook wrote:@ThisIsHarsh
One question.
When I need that the bailed ships have more equipment then I have to increase the 'Bail hull factor'. Is this correct ?
Yeah that means they will bail with less hull damage, and since equipment damage is related to hull damage, more of it will remain.
Sunrayn wrote:How do I turn on script debugging for NPC Bail. I have reached a point in my game where I get an unavoidable freeze. I even went back to an older save and precisely at almost the same game time, it freezes.

I logged the IR debug and there was nothing on there that explains it.
I never included any comprehensive debugging for NPC Bail Addon, it's really quite a simple script.

You can try disabling all the options, lowering all the factors to 1, and set the self-destruct timeout to 1. See if this affects the freeze (either preventing or delaying significantly).

You can also try uninstalling the plugin, see if this solves your freeze, but any ships already running a NPC Bailing Addon script will continue to run it, even if you uninstall the plugin (it is cached in your savegame).

In fact, best thing to do is both of the above. That is, lower all the options to minimum, then save and exit the game, uninstall plugin, and load the savegame again.

If you still have problems, then post what other plugins you use, maybe there is a conflict.
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.
djrygar
Posts: 1842
Joined: Mon, 10. Aug 09, 02:09
x3ap

Post by djrygar »

small glitch:

I just noticed recon drone that bailed ;)

also:
khaak/xenon ships IMHO should bail very rarely. They currently bail at same rate as other, while whey have no pilots that care for their own safety.
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

djrygar wrote:small glitch:

I just noticed recon drone that bailed ;)

also:
khaak/xenon ships IMHO should bail very rarely. They currently bail at same rate as other, while whey have no pilots that care for their own safety.
OK, thanks for the report. Damn X3TC, soo many ships don't have the right object class.

Hmm, I suppose I can add a modifier for Xenon and Khaak 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.

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