[SCRIPT] NPC Bailing Addon v1.7.8 [2010-09-21]
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 2409
- Joined: Sat, 7. Mar 09, 18:29
i may have it set wrong or a conflicting mod but none that directly effect bailing.
i wouldnt take my asking for the previous version as a snub of your work. im just in the middle of a game and have had to do reinstalls and all sorts for other reasons unrelated to your mod already so i just want to go with what i know works for now. ext time i restart ill defo look out for you next release
thanks for your reply doug.
i wouldnt take my asking for the previous version as a snub of your work. im just in the middle of a game and have had to do reinstalls and all sorts for other reasons unrelated to your mod already so i just want to go with what i know works for now. ext time i restart ill defo look out for you next release
thanks for your reply doug.
-
- Posts: 85
- Joined: Tue, 14. Oct 08, 00:59
Update:Sunrayn wrote:My findings after 2 days. NPC salvagers turned off IR with hot wars enabled.
Small ships: bail 8, hull 5 --- ships bailed is average.
Big Ships bail 9, hull 6 --- found 1 M6
Huge Ships bail 9, hull 6 --- 0 after 2 days.
Since this post on Wednesday I have gotten 1 M7M and 2 more M6s, nothing bigger than that.
So that puts the count for huge ships still at a goose egg and for the settings, dismal for M6/M7.
-
- Posts: 1135
- Joined: Sun, 19. Oct 08, 18:46
OK thanks for that report. Out of interest, was this lack of ships bailing an issue with the previous version? It's weird cause I haven't changed the formula. Either the ships have a really high bravado rating in your game, or I've inadvertently 'fixed' something...
Anyway, releasing a new version in a sec that should help.
Anyway, releasing a new version in a sec that should help.
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.
Black holes are where God divided by zero.
-
- Posts: 1135
- Joined: Sun, 19. Oct 08, 18:46
Update v1.7.3
Added more selections for bail rate and hull factors. Now go up to 20 instead of 9.
A zero or negative value for the "Time before self-destruct" means infinite time, i.e. it won't ever self-destruct.


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.
Black holes are where God divided by zero.
-
- Posts: 1135
- Joined: Sun, 19. Oct 08, 18:46
Update v1.7.4
Major bugfix: finally traced reason for bail rates being so low, now fixed. You will now find ships bailing all over the place if you have set your rates unnaturally high in an attempt to counter this issue.
It turns out that for some reason signal scripts get prematurely terminated if they have a wait in them. This must be a something new added in a patch or something, since exactly the same code worked previously. I can't think of any other reason why this bug would suddenly crop up.
So basically, the problem was that each ship would check hull damage only once, so would rarely bail. Instead, the ship should be continuously checking hull damage over and over to see if it is now low enough to bail. I've now fixed this.
Apologies its taken me so long to positively respond to the various complaints on this line - it was a tough one to weed out.

It turns out that for some reason signal scripts get prematurely terminated if they have a wait in them. This must be a something new added in a patch or something, since exactly the same code worked previously. I can't think of any other reason why this bug would suddenly crop up.
So basically, the problem was that each ship would check hull damage only once, so would rarely bail. Instead, the ship should be continuously checking hull damage over and over to see if it is now low enough to bail. I've now fixed this.
Apologies its taken me so long to positively respond to the various complaints on this line - it was a tough one to weed 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.
Black holes are where God divided by zero.
-
- Posts: 3206
- Joined: Thu, 16. Jul 09, 12:24
The end result of it is that you managed to snuff out that bug which is good for all of us in the long run. Now I can begin collecting ships once more at a steady pace and build up credits so I can get a big ship
and no... that doesn't mean I'm going to set the bail rate to a high amount... I like balance in my games... unbalance and cheating are ways to easily break a good game and I don't like it... I like a challenge 


-
- Posts: 2409
- Joined: Sat, 7. Mar 09, 18:29
-
- Posts: 1135
- Joined: Sun, 19. Oct 08, 18:46
Nah, the factors are just parameters in a function. From previous page:dougeye wrote:exellent ill try your new version now
just too check if i set hull damage as 4 is that ships have too take 40% damage before bailing or have 40% hull left for example?
I wrote:OK, here is the formula:The same formula is used for both probability of bailing and the hull damage at which the pilot bails at. The only difference is the factor that is used is different (i.e. bail rate factor and bail hull factor in the menu). Theoretically the bravado could be anywhere between 0 to 300, but in practice it is more like 20 to 90.SpoilerShowfactor^2 / (factor^2 + bravado)
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.
Black holes are where God divided by zero.
-
- Posts: 1289
- Joined: Tue, 7. Mar 06, 20:24
-
- Posts: 2409
- Joined: Sat, 7. Mar 09, 18:29
happy to report the new version has fixed the probs i had
no probs at this end.
although probly out of your hands is something else i noticed which isnt realy a prob or bug as far as your mod is concerned and that is the mercenary ships that hang round omicron lyrae if claimed then continue there jobs even after they become your property. u cant sell them or anything. they will follow a command like dock at station but then imediatly resume there final fury orders.i guess they are hardcoded into a mission script. like i say not realy prob just an irregularity i noticed.

although probly out of your hands is something else i noticed which isnt realy a prob or bug as far as your mod is concerned and that is the mercenary ships that hang round omicron lyrae if claimed then continue there jobs even after they become your property. u cant sell them or anything. they will follow a command like dock at station but then imediatly resume there final fury orders.i guess they are hardcoded into a mission script. like i say not realy prob just an irregularity i noticed.
-
- Posts: 163
- Joined: Sun, 14. Mar 04, 05:15
-
- Posts: 331
- Joined: Thu, 23. Aug 07, 21:33
-
- Posts: 1135
- Joined: Sun, 19. Oct 08, 18:46
@dougeye and Happyblue: it indeed looks like plot ships get retasked by the mission director, it seems it does not check if the owner has changed. Do you guys enable the option "Allow non-standard ship bailing"? If not, then I have to have a rethink about what constitutes a 'non-standard ship'.
@Varek Raith: if the pirate commed you, then it was not NPC Bail Addon that caused him to bail (or not, as the case may be). It was either the vanilla bail logic, or some extra bail logic added by pirate guild. I would recommend you bring it up in the pirate guild thread, just in case it is something Serial Kicked added, he would like to know of such a bug.
@Varek Raith: if the pirate commed you, then it was not NPC Bail Addon that caused him to bail (or not, as the case may be). It was either the vanilla bail logic, or some extra bail logic added by pirate guild. I would recommend you bring it up in the pirate guild thread, just in case it is something Serial Kicked added, he would like to know of such a bug.
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.
Black holes are where God divided by zero.
-
- Posts: 331
- Joined: Thu, 23. Aug 07, 21:33
Roger that.ThisIsHarsh wrote:@dougeye and Happyblue: it indeed looks like plot ships get retasked by the mission director, it seems it does not check if the owner has changed. Do you guys enable the option "Allow non-standard ship bailing"? If not, then I have to have a rethink about what constitutes a 'non-standard ship'.
@Varek Raith: if the pirate commed you, then it was not NPC Bail Addon that caused him to bail (or not, as the case may be). It was either the vanilla bail logic, or some extra bail logic added by pirate guild. I would recommend you bring it up in the pirate guild thread, just in case it is something Serial Kicked added, he would like to know of such a bug.
Thanks.

-
- Posts: 304
- Joined: Fri, 26. Dec 03, 23:59
Strange thing, I been getting crashes/lock-up since I updated this today. They were occuring for me like half-an-hour to an hour of playing.
I went back to v1.7 and it was fine, left it on seta for an hour and it was fine. Though I am running quite a few other scripts so maybe the new version aint getting along with them as well.
I have no idea what the cause is, maybe it's just me though. Just thought I'd put it out there.
I went back to v1.7 and it was fine, left it on seta for an hour and it was fine. Though I am running quite a few other scripts so maybe the new version aint getting along with them as well.
I have no idea what the cause is, maybe it's just me though. Just thought I'd put it out there.
-
- Posts: 163
- Joined: Sun, 14. Mar 04, 05:15
-
- Posts: 2035
- Joined: Wed, 18. Aug 10, 14:28
I have noticed a few "locked" ships bail every now and then. Very frustrating when it's a good one and you tend to play as a salvager.
The freighter in the Tears of Greed mission for the Terran plot does it almost every time. I've had a few fighters in Treasure Chest and Omicron Lyrae do it too, nothing special those times (Disco/Harriers) but annoying nonetheless.
The freighter in the Tears of Greed mission for the Terran plot does it almost every time. I've had a few fighters in Treasure Chest and Omicron Lyrae do it too, nothing special those times (Disco/Harriers) but annoying nonetheless.
"If you’re not prepared to be wrong, you’ll never come up with anything original."
Sir Ken Robinson
Sir Ken Robinson
-
- Posts: 1252
- Joined: Sun, 20. Jun 10, 14:53
After sifting through about 7 or 8 pages of the discussion with no luck, I finally abandoned the effort and decided to just ask:
How do you access the configuration menu? I loaded up and installed the Community Configuration script, and then installed NPC Bailing, but I can't figure out how to get to the menu.
How do you access the configuration menu? I loaded up and installed the Community Configuration script, and then installed NPC Bailing, but I can't figure out how to get to the menu.
-
- Posts: 396
- Joined: Sat, 7. Jan 06, 19:27
im afraid i can confirm your problem ^^Sirilius wrote:Strange thing, I been getting crashes/lock-up since I updated this today. They were occuring for me like half-an-hour to an hour of playing.
I went back to v1.7 and it was fine, left it on seta for an hour and it was fine. Though I am running quite a few other scripts so maybe the new version aint getting along with them as well.
I have no idea what the cause is, maybe it's just me though. Just thought I'd put it out there.
Edit: i forgot to mention that i tested it with only running the npc bail addon ^^ and it froze for me ^^ without it it runs smoothly ^^
-
- Posts: 1135
- Joined: Sun, 19. Oct 08, 18:46
You just need to go into controls options, then under "Interface" tab there will be a hotkey setting for "Plugin configurations". Set a hotkey (I use SHIFT+F12), then use that to call up the config menu.Honved wrote:After sifting through about 7 or 8 pages of the discussion with no luck, I finally abandoned the effort and decided to just ask:
How do you access the configuration menu? I loaded up and installed the Community Configuration script, and then installed NPC Bailing, but I can't figure out how to get to the menu.
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.
Black holes are where God divided by zero.