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

Traders and offenders

General discussion for players of Oolite.

Moderators: winston, another_commander

Fritz
---- E L I T E ----
---- E L I T E ----
Posts: 591
Joined: Sun Jul 12, 2015 2:30 pm
Location: Bavaria, Germany
Contact:

Traders and offenders

Post by Fritz »

I have noticed that ships spawned as traders, even Anacondas, can appear as offenders. Is this caused simply by a random probability during system population or does is have more specific reasons? I would like to prevent this for my "company freighters" OXP I'm working on.
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16073
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Traders and offenders

Post by Cody »

Random, I'd think! Traders make mistakes like everyone else - launching with some forgotten scooped narcotics onboard, for example.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
Fritz
---- E L I T E ----
---- E L I T E ----
Posts: 591
Joined: Sun Jul 12, 2015 2:30 pm
Location: Bavaria, Germany
Contact:

Re: Traders and offenders

Post by Fritz »

Hmm... you're right. Even a well paid captain working for a big company can make a mistake or could be tempted to improve his income by smuggling illegal goods.
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16073
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Traders and offenders

Post by Cody »

<nods> Aye, you gotta wonder what some traders and their escorts are up to when you see something like this:
I pulled into the aegis at Biorve, about halfway through a parcel run, and got told I was seventh in the queue. Fair enough. I positioned Mercurial Amethyst next to the nav buoy, and waited patiently. After number six had docked, I got told I was number seven again due to prioritised launches. At that, an Anaconda proceeded to launch, followed by its five escorts - all six of them offenders! The local Vipers were going nutty issuing warnings as they headed out for their jump.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
Anonymissimus
---- E L I T E ----
---- E L I T E ----
Posts: 299
Joined: Mon Apr 27, 2015 9:03 pm

Re: Traders and offenders

Post by Anonymissimus »

Not random I think. If they are "only" offenders, they are smugglers (illegal goods traders). When they are jumping in, they will "Anyone heading for the rock hermit ? I'd appreciate the company." instead of the main station which normal traders will target. ("I think the Coriolis station will give the best prices. Let's try there first.) If the leader ship is fugitive, they are pirates (and do not appear at main stations). They seem to be hoping their bounty hasn't gotten large enough yet for the police to let them go. Sometimes that doesn't work, also because hunters can attack them, then they complain about "where are the vipers ?" even if it's the vipers which are attacking them.
warning sound if a missile is inbound: Missile warning
Fritz
---- E L I T E ----
---- E L I T E ----
Posts: 591
Joined: Sun Jul 12, 2015 2:30 pm
Location: Bavaria, Germany
Contact:

Re: Traders and offenders

Post by Fritz »

I am wondering about another thing concerning traders (including clean traders). It could be an AI bug, but I'm not sure.

Yesterday I was following a clean Python with one of my paint jobs (so it had to be a trader!) and four escorts to the planet to take some pictures. The convoy was on the standard course, not directly to the station, but roughly in the direction of the planet. Everything was normal and they kept flying in a straight line until they suddenly changed course, probably because there were pirates in the vicinity. After I had destroyed these, I found the Python again, but it didn't resume the old course. Instead it flew around randomly, essentially not changing its position (similar to ships waiting for prey around the witchpoints). With the escorts following neatly, the turns looked like some artistic formation flying, but it was certainly not what a trader should do!

I've noticed similar behaviour before. In one case I remember in more detail, it was a convoy I had followed through the wormhole. It didn't even start to fly to the planet but flew around in the vicinity of the witchpoint. Pirates could have been the reason in this case too. I wonder if the AI gets stuck somehow after a threat has gone.
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16073
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Traders and offenders

Post by Cody »

Fritz wrote:
I am wondering about another thing concerning traders (including clean traders). It could be an AI bug, but I'm not sure.[snip]
I've seen some odd AI behaviour lately - hard to pin down, or describe, though.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
Fritz
---- E L I T E ----
---- E L I T E ----
Posts: 591
Joined: Sun Jul 12, 2015 2:30 pm
Location: Bavaria, Germany
Contact:

Re: Traders and offenders

Post by Fritz »

I'm starting to understand how the plist AIs are working, but I don't understand the JavaScript AIs yet, and the trader AI is one of them.
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2676
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: Traders and offenders

Post by spara »

Fritz wrote:
I'm starting to understand how the plist AIs are working, but I don't understand the JavaScript AIs yet, and the trader AI is one of them.
With the current version of Oolite all sophisticated AIs are JS AIs. The old plist AIs are available mostly for compatibility as many OXPs use them.
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1390
Joined: Thu Aug 27, 2015 4:24 pm

Re: Traders and offenders

Post by cbr »

So somewhere there must be some oxp/oxz spawning traders with a pirateAI.
Fritz
---- E L I T E ----
---- E L I T E ----
Posts: 591
Joined: Sun Jul 12, 2015 2:30 pm
Location: Bavaria, Germany
Contact:

Re: Traders and offenders

Post by Fritz »

I don't have any OXP that would do anything like it. The only ship spawning OXPs I use are Cylon Raider and Aliens. And as I said, the traders _did_ behave like traders until they met possible threats. But after the threat was gone, they were stuck in some kind of "lurking AI".

I'll try to make more observations...
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"
Fritz
---- E L I T E ----
---- E L I T E ----
Posts: 591
Joined: Sun Jul 12, 2015 2:30 pm
Location: Bavaria, Germany
Contact:

Re: Traders and offenders

Post by Fritz »

Cody wrote:
I've seen some odd AI behaviour lately - hard to pin down, or describe, though.
There are definitely other AI bugs. One is that orbital shuttles like to crash into the navigation buoy, sometimes (or always?) after making a short stop immediately in front of it. And in some (relatively rare) cases, some ships, especially Sidewinders, Geckos, Mambas, but Cylon Raiders too, seem to forget what they should do and just "play dead" during a battle. They can be "woken up" again by shooting at them.
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"
Fritz
---- E L I T E ----
---- E L I T E ----
Posts: 591
Joined: Sun Jul 12, 2015 2:30 pm
Location: Bavaria, Germany
Contact:

Re: Traders and offenders

Post by Fritz »

Another case, this time a clean trader Python without escorts. I met it while it was travelling through pirate-infested space but not being attacked directly. I followed it, and it went on and on, the destination being somewhere in outer space (neither planet, nor sun, nor witchpoint, nor rock hermit). After some time I noticed that it hadn't a destination at all: It didn't fly in a straight line, instead it made a very slight change of course exactly every 40 seconds by pulling up perhaps 1 or 2 degrees.

After a while I forced it to change it's course by coming very near, but the described behaviour continued after it had settled on a new course. After this change I noticed that it was making little roll movements as well.
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2676
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: Traders and offenders

Post by spara »

Fritz wrote:
Another case, this time a clean trader Python without escorts. I met it while it was travelling through pirate-infested space but not being attacked directly. I followed it, and it went on and on, the destination being somewhere in outer space (neither planet, nor sun, nor witchpoint, nor rock hermit). After some time I noticed that it hadn't a destination at all: It didn't fly in a straight line, instead it made a very slight change of course exactly every 40 seconds by pulling up perhaps 1 or 2 degrees.

After a while I forced it to change it's course by coming very near, but the described behaviour continued after it had settled on a new course. After this change I noticed that it was making little roll movements as well.
Are you using the developer version of Oolite? If you are, you could use time acceleration and see where it's going.
Fritz
---- E L I T E ----
---- E L I T E ----
Posts: 591
Joined: Sun Jul 12, 2015 2:30 pm
Location: Bavaria, Germany
Contact:

Re: Traders and offenders

Post by Fritz »

No, I don't, and I left it alone after some time because I was on a "serious" flight and had some kills to save. But I think it was going nowhere. After some hours, the described behaviour would put the ship in a very big spiral, and after some centuries it would probably arrive in a neighbouring system... :lol:



PS: Somebody probably should move this to "Testing and Bug reports"...
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"
Post Reply