[Wip] In-system traders 0.3
Moderators: winston, another_commander
[Wip] In-system traders 0.3
As discussed in the DeepSpacePirates thread, I have created a small expansion that adds a few in-system traders that fly randomly from station to station to the game.
* The number of added traders is the number of approved stations in system. Stations that have an allegiance of "galcop", "neutral" or "chaotic" are approved.
* The number is kept constant by launching a new in-system trader when another one docks. In the unfortunate case of premature death, a new in-system trader arrives to the system from witchspace.
This was my first dive into the new priority AI and it rocks .
Download (v0.3) oxz here: https://app.box.com/s/iza96jzorcm671tp3a7c
And as always all comments are much appreciated.
* The number of added traders is the number of approved stations in system. Stations that have an allegiance of "galcop", "neutral" or "chaotic" are approved.
* The number is kept constant by launching a new in-system trader when another one docks. In the unfortunate case of premature death, a new in-system trader arrives to the system from witchspace.
This was my first dive into the new priority AI and it rocks .
Download (v0.3) oxz here: https://app.box.com/s/iza96jzorcm671tp3a7c
And as always all comments are much appreciated.
Last edited by spara on Sun Aug 31, 2014 5:48 pm, edited 2 times in total.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: [Wip] In-system traders 0.1
Do these in-system traders take in rock hermits too?
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!
And any survivors, their debts I will certainly pay. There's always a way!
Re: [Wip] In-system traders 0.1
Yes they do. At least for now. It needs testing if feels right or wrong. The numbers are quite low so they should not make it too easy. And Deep Space Pirates is much recommended to discourage in-system trader farming.Cody wrote:Do these in-system traders take in rock hermits too?
- Venator Dha
- ---- E L I T E ----
- Posts: 329
- Joined: Sun Feb 23, 2014 11:26 am
- Location: Sweden
Re: [Wip] In-system traders 0.1
That's great. Thanks for doing this.
Downloaded and testing started.
Downloaded and testing started.
Taurus Driving through the galaxy since... .
Re: [Wip] In-system traders 0.1
Presumably this is so we see traders going from planet to planet to those stations as well?
--
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean
http://www.noahchinnbooks.com/
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean
http://www.noahchinnbooks.com/
Re: [Wip] In-system traders 0.1
No planetary landings at least at this point. That's a possibility for future versions of course.mossfoot wrote:Presumably this is so we see traders going from planet to planet to those stations as well?
Re: [Wip] In-system traders 0.1
Sorry, didn't mean landing on planets, I meant going to stations orbiting other planets.
--
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean
http://www.noahchinnbooks.com/
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean
http://www.noahchinnbooks.com/
Re: [Wip] In-system traders 0.1
You bet they are.mossfoot wrote:Sorry, didn't mean landing on planets, I meant going to stations orbiting other planets.
The change to the game is quite subtle so you have to be quite lucky to see one of these on it's way to the farthest station. But you _know_ they are out there. And if someone seems to go to a strange direction after launch, it just might be going to a rock hermit that's been tipped to it in a bar.
If someone wants to see what's really going on, there are some commented out logging lines in both script and AI files. That's how I mainly tested this. I set TAF to 16 and monitored the log.
Re: [Wip] In-system traders 0.2
A new wip version (0.2) is up. Lots of rewriting and code reorganizing on top of a couple of important changes.
* Oxp is now much more polite when spawning new traders. Ships with custom AIs are either removed or left untouched. If adding ships to station launch queue, ships with custom AIs are left untouched. Elsewhere they are removed right after spawning.
* Probability for an in-system trader to visit a rock hermits (or other similar stations) is greatly lowered. It's still possible, but very rare.
All logging lines are left in for those who want to test this and monitor it's work. See Latest.log.
* Oxp is now much more polite when spawning new traders. Ships with custom AIs are either removed or left untouched. If adding ships to station launch queue, ships with custom AIs are left untouched. Elsewhere they are removed right after spawning.
* Probability for an in-system trader to visit a rock hermits (or other similar stations) is greatly lowered. It's still possible, but very rare.
All logging lines are left in for those who want to test this and monitor it's work. See Latest.log.
- Redspear
- ---- E L I T E ----
- Posts: 2687
- Joined: Thu Jun 20, 2013 10:22 pm
- Location: On the moon Thought, orbiting the planet Ignorance.
Re: [Wip] In-system traders 0.2
Another worthy contribution.
Thanks spara
Thanks spara
- Venator Dha
- ---- E L I T E ----
- Posts: 329
- Joined: Sun Feb 23, 2014 11:26 am
- Location: Sweden
Re: [Wip] In-system traders 0.2
I've run into a very specific conflict with Distant_Suns.
When jumping to "Ara" Oolite (both 1.80 & 1.81) on Mac OS
stopped responding at the end of the countdown requiring me to forced quit Oolite.
By removing and adding OXP & OXZs I discovered there was some conflict with Distant_Suns. Now as I've been running both OXPs since In-system traders came out without a problem, this seemed specific to Ara. Looking at the planet info.plist in Distant_Suns, Ara's sun is moved a long way away. So by reducing sun_distance_modifier everything works well again.
Changedto
149 is the largest working value.
I have visited other systems with sun_distance_modifier larger than 149 without problem (I'm speculating -wildly perhaps that it's the resultant overall distance that's causing the problem)
I would guess there are more of these specific system conflicts out there to be found.
When jumping to "Ara" Oolite (both 1.80 & 1.81) on Mac OS
Code: Select all
Opening log for Oolite development version 1.81-140829 (x86-64 test release) under Mac OS X Version 10.9.4 (Build 13E28) at 2014-08-31 16:23:36 +0000.
Machine type: iMac11,2, 12288 MiB memory, 2 (4 logical) x x86 (Westmere) @ 3200 MHz.
By removing and adding OXP & OXZs I discovered there was some conflict with Distant_Suns. Now as I've been running both OXPs since In-system traders came out without a problem, this seemed specific to Ara. Looking at the planet info.plist in Distant_Suns, Ara's sun is moved a long way away. So by reducing sun_distance_modifier everything works well again.
Changed
Code: Select all
"0 245" = { // name = "Ara";
corona_flare = "0.800"; corona_hues = "0.20"; corona_shimmer = "0.38"; sun_color = "cyanColor";
sun_distance_modifier = "175"; sun_name = "Wyndham 1970"; // sun_radius = "";
};
Code: Select all
"0 245" = { // name = "Ara";
corona_flare = "0.800"; corona_hues = "0.20"; corona_shimmer = "0.38"; sun_color = "cyanColor";
sun_distance_modifier = "149"; sun_name = "Wyndham 1970"; // sun_radius = "";
};
I have visited other systems with sun_distance_modifier larger than 149 without problem (I'm speculating -wildly perhaps that it's the resultant overall distance that's causing the problem)
I would guess there are more of these specific system conflicts out there to be found.
Taurus Driving through the galaxy since... .
- Wildeblood
- ---- E L I T E ----
- Posts: 2453
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
Re: [Wip] In-system traders 0.2
Yes, the Wyndham Catalogue of Super-Luminous Stars includes only the very brightest stars, and Ara is an "impossible planet" because such stars should vaporize everything within several light years.Venator Dha wrote:toCode: Select all
"0 245" = { // name = "Ara"; corona_flare = "0.800"; corona_hues = "0.20"; corona_shimmer = "0.38"; sun_color = "cyanColor"; sun_distance_modifier = "175"; sun_name = "Wyndham 1970"; // sun_radius = ""; };
149 is the largest working value.Code: Select all
"0 245" = { // name = "Ara"; corona_flare = "0.800"; corona_hues = "0.20"; corona_shimmer = "0.38"; sun_color = "cyanColor"; sun_distance_modifier = "149"; sun_name = "Wyndham 1970"; // sun_radius = ""; };
I have visited other systems with sun_distance_modifier larger than 149 without problem (I'm speculating -wildly perhaps that it's the resultant overall distance that's causing the problem)
I would guess there are more of these specific system conflicts out there to be found.
Your speculation is likely correct as the sun-planet distance is the planetary radius multiplied by the sun distance modifier, and most of the variation comes from the planetary radius. So the same sun distance modifier can produce very different actual sun-planet distances. IIRC, the extremes of sun distance modifier set by Distant Suns are 14 and 190.
- Venator Dha
- ---- E L I T E ----
- Posts: 329
- Joined: Sun Feb 23, 2014 11:26 am
- Location: Sweden
Re: [Wip] In-system traders 0.2
Better get more sunblock thenWildeblood wrote:Yes, the Wyndham Catalogue of Super-Luminous Stars includes only the very brightest stars, and Ara is an "impossible planet" because such stars should vaporize everything within several light years.
That's good to know, Thanks.Wildeblood wrote:Your speculation is likely correct as the sun-planet distance is the planetary radius multiplied by the sun distance modifier, and most of the variation comes from the planetary radius. So the same sun distance modifier can produce very different actual sun-planet distances. IIRC, the extremes of sun distance modifier set by Distant Suns are 14 and 190.
Taurus Driving through the galaxy since... .
Re: [Wip] In-system traders 0.3
Got it and fixed it, looks like a core bug. A new version uploaded. Big thanks for the report, it would have taken ages for me to spot that.
- Venator Dha
- ---- E L I T E ----
- Posts: 329
- Joined: Sun Feb 23, 2014 11:26 am
- Location: Sweden
Re: [Wip] In-system traders 0.3
Great will get it now. And it works finespara wrote:Got it and fixed it, looks like a core bug. A new version uploaded.
No problem, That's what us players are for, to catch these rare occurrencesspara wrote:Big thanks for the report, it would have taken ages for me to spot that.
Taurus Driving through the galaxy since... .