[Mod]NPC Bail Modifier v0.4

The place to discuss scripting and game modifications for X Rebirth.

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

Tyrant597
Posts: 299
Joined: Wed, 9. Apr 08, 05:52
x4

[Mod]NPC Bail Modifier v0.4

Post by Tyrant597 »

v0.4
Nov 21, 2013

Changed npc ship bailing modifier. Now instead of it being a set percentage, the chance for a pilot to bail is based on his morale, and how much of his hull is remaining. Also pilots now give you an audio warning when they bail out.

Note: The only ships currently which you can force to bail are ships that have *shields*. Not shield generators (Capital Ships) or Police/Mass Traffic Ships. Just the Small/Medium Transports and Fighter ships.

http://xrebirth.nexusmods.com/mods/116//?
Last edited by Tyrant597 on Fri, 22. Nov 13, 05:54, edited 2 times in total.
You don't talks about X:Rebirth...
X4 Mods: Collect Inventory Wares Stations Supply Build Storage Mass Move Marines
Deleted User

Post by Deleted User »

erm, can you explain a bit more?
User avatar
pilakin
Posts: 235
Joined: Sat, 16. Feb 08, 23:44

Post by pilakin »

do they shoot back after you put your own pilot in? does putting a new pilot in even work? can you repair them?
User avatar
Jack08
Posts: 2993
Joined: Sun, 25. Dec 05, 10:42
x3tc

Post by Jack08 »

Dark_Ansem wrote:erm, can you explain a bit more?
Just liked in previous X games, fighters and transports can bail, and you can capture them if you have a pilot onboard the sunk.

35% is a little overkill, dont you think? :D
Central
Posts: 1143
Joined: Sat, 1. May 04, 15:15
x4

Post by Central »

how about making bail chances dependant from the moral-property of the pilot?

0 stars: 50% chance
1 star: 40%
2 stars: 30%
3 stars: 20%
4 stars: 10%
5 stars: 5%
User avatar
enenra
Posts: 7150
Joined: Fri, 8. Apr 05, 19:09
x4

Post by enenra »

Thurmonator
Posts: 205
Joined: Thu, 4. Dec 03, 21:07
x2

Post by Thurmonator »

Central wrote:how about making bail chances dependant from the moral-property of the pilot?

0 stars: 50% chance
1 star: 40%
2 stars: 30%
3 stars: 20%
4 stars: 10%
5 stars: 5%

Just open the aiscripts.xml file with notepad and change the '35' to 'whatever you think is good' . Presto As to having it work with their rating, that is beyond my skills.
lplates
Posts: 240
Joined: Mon, 4. Nov 13, 13:42
x4

Post by lplates »

The description for this mod says "5km station scan increase".

I am assuming you copied another mod and updated it? Does it actually work and if so you probably just want to update the texts.
Deleted User

Post by Deleted User »

why capital ships have no shields ?
lplates
Posts: 240
Joined: Mon, 4. Nov 13, 13:42
x4

Post by lplates »

I just noticed this as well and as yet I have not had a single ship bail.

By your calculations at least 3 of the 10 ships I attacked should have bailed and they did not.
DaveStrider
Posts: 11
Joined: Sat, 16. Nov 13, 23:10

Post by DaveStrider »

lplates wrote:I just noticed this as well and as yet I have not had a single ship bail.

By your calculations at least 3 of the 10 ships I attacked should have bailed and they did not.
Are you using a good bailing technique? whittling them down slowly with the maser is a good way to give them plenty of time to bail.
Dark_Ansem wrote:why capital ships have no shields ?
Cap ships have small generators that protect an area around them dotted around the hull. They're the blue glowing cylinders i think.
Nebogloee
Posts: 69
Joined: Sat, 18. Aug 07, 00:15
x3tc

Post by Nebogloee »

lplates wrote:The description for this mod says "5km station scan increase".

I am assuming you copied another mod and updated it? Does it actually work and if so you probably just want to update the texts.
Looks like OP needs to update the content.xml for this mod . . .
Tyrant597
Posts: 299
Joined: Wed, 9. Apr 08, 05:52
x4

Post by Tyrant597 »

lplates wrote:The description for this mod says "5km station scan increase".
Thanks! Fixed.
You don't talks about X:Rebirth...
X4 Mods: Collect Inventory Wares Stations Supply Build Storage Mass Move Marines
Tyrant597
Posts: 299
Joined: Wed, 9. Apr 08, 05:52
x4

Post by Tyrant597 »

Central wrote:how about making bail chances dependant from the moral-property of the pilot?

0 stars: 50% chance
1 star: 40%
2 stars: 30%
3 stars: 20%
4 stars: 10%
5 stars: 5%
Good idea! I'll look into that.
[Edit] Done.
Last edited by Tyrant597 on Thu, 21. Nov 13, 08:31, edited 1 time in total.
You don't talks about X:Rebirth...
X4 Mods: Collect Inventory Wares Stations Supply Build Storage Mass Move Marines
Tyrant597
Posts: 299
Joined: Wed, 9. Apr 08, 05:52
x4

Post by Tyrant597 »

lplates wrote:I just noticed this as well and as yet I have not had a single ship bail.

By your calculations at least 3 of the 10 ships I attacked should have bailed and they did not.
The 'mass traffic' ships will not bail. Nor will capital ships. You are looking for fighters and medium transport ships. They will have "shields" listed on your cockpit info screen. The trade ship naming scheme seems to be 'X_ware Trader'.
Spoiler
Show
Ships need to have less than 75% hull and 20% shields left before they will bail.
You don't talks about X:Rebirth...
X4 Mods: Collect Inventory Wares Stations Supply Build Storage Mass Move Marines
Central
Posts: 1143
Joined: Sat, 1. May 04, 15:15
x4

Post by Central »

Tyrant597 wrote:
Central wrote:how about making bail chances dependant from the moral-property of the pilot?

0 stars: 50% chance
1 star: 40%
2 stars: 30%
3 stars: 20%
4 stars: 10%
5 stars: 5%
Good idea! I'll look into that.
[Edit] Done.
very nice!
KRM398
Posts: 1556
Joined: Wed, 6. Nov 02, 20:31
xr

Post by KRM398 »

Been shooting up those little freighters that have 10k hauling but never got one to bail only 2 fighters in game so far, so bailing in the vanilla is tough, ty
KRM398
Posts: 1556
Joined: Wed, 6. Nov 02, 20:31
xr

Post by KRM398 »

ok a question...did anyone say anything about having trouble getting ships back to their base after putting a pilot in them? I lost 2 freighters I capped and put pilots in. one was full of stuff for my station, but after putting them in my squad I went through the highway and waited for them to catch up..never did, so I checked my owned list, not there. So I figured I turned my back and some fighter got it. Next one I followed him or he me, all the way to the highway, he was 1km from me and we both turned in and when I came out at my destination, he was gone and not on my list either.

There used to be a bailing extension for TC but when it first came out it had problems with ships disappearing when they were first caught and ordered through a gate, was wondering if something like that might be happening, because the second ship was never more than a km away from me until I hit the highway and it was only 1 jump...so where did it go?
User avatar
LordSekmeth
Posts: 13
Joined: Thu, 21. Nov 13, 04:03
x3tc

Post by LordSekmeth »

Dunno if this is due to your mod or not.

Sometimes when a pilot ejects npc's will still consider the ship hostile even after you sent a pilot to board it.

Also sometimes the captured ships will suddenly start shooting you again (for a few sec, then stop again)
If it ain't broken, fix it anyway
Tyrant597
Posts: 299
Joined: Wed, 9. Apr 08, 05:52
x4

Post by Tyrant597 »

KRM398 wrote:ok a question...did anyone say anything about having trouble getting ships back to their base after putting a pilot in them? I lost 2 freighters I capped and put pilots in. one was full of stuff for my station, but after putting them in my squad I went through the highway and waited for them to catch up..never did, so I checked my owned list, not there. So I figured I turned my back and some fighter got it. Next one I followed him or he me, all the way to the highway, he was 1km from me and we both turned in and when I came out at my destination, he was gone and not on my list either.

There used to be a bailing extension for TC but when it first came out it had problems with ships disappearing when they were first caught and ordered through a gate, was wondering if something like that might be happening, because the second ship was never more than a km away from me until I hit the highway and it was only 1 jump...so where did it go?
LordSekmeth wrote:Dunno if this is due to your mod or not.

Sometimes when a pilot ejects npc's will still consider the ship hostile even after you sent a pilot to board it.

Also sometimes the captured ships will suddenly start shooting you again (for a few sec, then stop again)
All this mod changes, is the chance for a pilot to bail, nothing else. All the other stuff is Egosoft's fault. Other people have been losing ships as well. =D That said, I did try to fix the problem with ships attacking you after you claim them in the new version, is that the one you are using? (v0.5) I think I did notice that it takes the game a minute to update the faction which owns the ship. Not sure how to make that go any faster. The only thing I know to do is wait for the ship to turn to faction=neutral before you claim it. Looks like Egosoft released a patch that changed bailing behavior. See if it fixed this problem.

-Tyrant
You don't talks about X:Rebirth...
X4 Mods: Collect Inventory Wares Stations Supply Build Storage Mass Move Marines

Return to “X Rebirth - Scripts and Modding”