Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

[UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/12)

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Bogatyr
Deadly
Deadly
Posts: 230
Joined: Sun Feb 24, 2013 11:52 am

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/

Post by Bogatyr »

Bizarre lead ship behaviour: I'm running the OXP that is currently the latest (or near the latest) on 1.80. I'm right now on an escort contract to an anarchy system, and the lead ship is not heading for the station. I thought at first he was taking a conservative path off the main route, but he never once called for injectors, and never once did a synchronized jump even though our status has been green all the way. There was a fight as soon as we entered the system but nothing since......other contracts have always flown straight for the station and used injectors/jump drive a lot. I'm about to abandon the contract since it seems the main ship has gone a bit loopy: it's constantly spinning on it's axis and heading out into empty space past the station and planet. Does that mean it was badly damaged perhaps in the fight? I'm confused as to what's going on, is there any way to "check" with the main ship to see what it's doing?
Bogatyr
Deadly
Deadly
Posts: 230
Joined: Sun Feb 24, 2013 11:52 am

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/

Post by Bogatyr »

Well I just abandoned that trip and reloaded the saved game and the did the escort run again, and this time it behaved normally. Except at the end where it paid me 77000 credits, and afterwards I had 77,901,377,138 credits in my account. Now I'm not complaining about good pay for a job well done (I fought off a large pack and took out 2 or 3 of the attackers), but something seems fishy here.

By the way, something that I did out of the ordinary was that I saved the game after accepting the contract, and came back to the saved game another day on a fresh run of oolite.
Bogatyr
Deadly
Deadly
Posts: 230
Joined: Sun Feb 24, 2013 11:52 am

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/

Post by Bogatyr »

No comment on the above strangeness? Another weirdity: on another run, the python lead ship inexplicably stops dead in space just a minute away from the station and just sits there. I get bored after several minutes of this and leave towards the station, the second I'm outside of scanner range he calls me to say he's under attack, I jet back but it's too late. It sure would be nice to have some way of "ping"ing the lead ship to make sure it's still making progress towards the station.
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/

Post by Norby »

Similar problems reported before as you can see in this topic, but the original author and contributors are missing a while. I tried to locate the payment bug but after an hour I gave up without any success (except that there is no obviously wrong part in the code), sorry.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/

Post by cim »

The problem is that the script uses the same variable name - at different times - for an array and a number, so if at any point it tries to read the array when it's expecting to read a number, there are problems like this.

On saving, many of the script variables get saved into the mission variables - quite possibly in some circumstances it's trying to save an array into a mission variable, which isn't supported.
Bogatyr
Deadly
Deadly
Posts: 230
Joined: Sun Feb 24, 2013 11:52 am

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/

Post by Bogatyr »

I really like the escort contracts, it's very challenging staying alive against large pirate swarms and yet simultaneously not losing track of the mother ship. Switching to a flying a dedicated bounty hunter ship (Contractor) helps somewhat (don't get shredded instantly in a hostile furball) but it's still not easy. But some of those cargo skippers area really morons:

1) They *turn to fight* a giant swarm of pirates when even one of them goes hostile, when simply injecting on past would solve the problem (in fact, "injecting on past" is the answer to almost every problem the cargo skippers face).

2) *I* get the poor reputation when, after I clean up the whole attacking horde and turn to finish the last one off, he collides head-on with it and explodes. And I had just fought my way back to "neutral" standing. Ah well, I live to fly another day at least.
User avatar
Venator Dha
---- E L I T E ----
---- E L I T E ----
Posts: 329
Joined: Sun Feb 23, 2014 11:26 am
Location: Sweden

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/

Post by Venator Dha »

Bogatyr wrote:
2) *I* get the poor reputation when, after I clean up the whole attacking horde and turn to finish the last one off, he collides head-on with it and explodes. And I had just fought my way back to "neutral" standing. Ah well, I live to fly another day at least.
It always seem's to be Boa Cruisers against FdLs which ram each other on full injectors :roll: when I play escort.
I tend not to do it very often now as the freighter's AI is just too frustrating.
Taurus Driving through the galaxy since... .
Bogatyr
Deadly
Deadly
Posts: 230
Joined: Sun Feb 24, 2013 11:52 am

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/

Post by Bogatyr »

Also, what's up with the other escorts? They disappear after the witchspace jump every time, never form up properly, never use injectors so they get left behind. Not once has another escort fighter made it to the station along with me and the mother ship.

Is the original author of this oxp still active? If not I may try my hand over time at fixing it up and improving the AI a bit, it's really a great concept.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/

Post by Smivs »

Bogatyr wrote:
Is the original author of this oxp still active? If not I may try my hand over time at fixing it up and improving the AI a bit, it's really a great concept.
Capt. Murphy has not been here for over two years, sadly, so does appear to be MIA. The OXP has the normal CC3 licence, so you can tinker with it under those terms. It might be worth dropping Murphy a PM first though out of courtesy.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Keeper
---- E L I T E ----
---- E L I T E ----
Posts: 273
Joined: Fri Feb 01, 2013 7:44 am
Location: Indian Hills, Nevada, USA

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/

Post by Keeper »

Although I made what I believe are fixes for that save-then-load bug about nine months ago or so... I still have not tested it as I stopped playing Oolite long before then!

So... if you want to test it:
http://www.keeper1st.com/Oolite/Escort_Contracts.js

Download that updated script file.

Can't comment on the AI as I never touched any of that.

"Other escorts"? What other escorts? You're the only one!
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.6

Post by Norby »

Thanks for the update, I uploaded into the manager as version 1.6.
Keeper wrote:
"Other escorts"? What other escorts? You're the only one!
Except if you have anothers from [EliteWiki] Hired Guns or [EliteWiki] Escort Deck. ;)
User avatar
Keeper
---- E L I T E ----
---- E L I T E ----
Posts: 273
Joined: Fri Feb 01, 2013 7:44 am
Location: Indian Hills, Nevada, USA

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/

Post by Keeper »

So it works then?

I think I tried testing late one night before bed, but I died before completing the contract, so couldn't tell if it worked, and had no more time to try another run. Haven't started Oolite since then -- several months ago, alas.
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/

Post by Norby »

Keeper wrote:
So it works then?
I compared the code changes and seems to be ok so I uploaded due to at least the same or better imho but we need testers to confirm.
User avatar
Marte
Competent
Competent
Posts: 32
Joined: Mon Jan 05, 2015 11:06 am

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/

Post by Marte »

I've made a little "on the fly" test, and this is the result:

Image

No values for reward/bonus for every mission (plus no hints in the log).
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2321
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia

Re: [UPDATED RELEASE] - Escort Contracts OXP - 1.5.6 (07/05/

Post by Wildeblood »

Marte wrote:
No values for reward/bonus for every mission (plus no hints in the log).
On which OS, Marte? If it's your Mac this might be the same problem expanding mission text that afflicts Trading Assistant, but if its windows then Keeper has definitely messed up. :mrgreen:
Post Reply