[Release] Station Ads

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

Moderators: winston, another_commander

Post Reply
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: [WIP] Station Ads

Post by Diziet Sma »

ffutures wrote:
Could you have it as a configuration option selectable on F4, as though it were an equipment add-on?
As something which ought to be outside an in-game Commander's control, F4 is the wrong place for this.. it's more of a game configuration thing. So really, the proper place would be via the F2 options.. perhaps via OXPConfig.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2691
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [WIP] Station Ads

Post by spara »

Fritz wrote:
spara wrote:
Zauseris should not have any front ads at all if it's a commie world. Oh my :roll: .
Really? Then relax! :) Everything is ok... I thought that TL alone was relevant for the number of ads.
:D Great. At least I found a couple of minor bugs in the process. The distribution follows the distribution of the YAH! oxp with a twitch.

* All confederacies, democracies and corporacies have ads. Capitalism rules and it's OK in these. The number of ads depends on the productivity of the system. Higher productivity means more ads. Find a high productivity system with Ico to see a full array of eight ads. Different stations have different configurations of ads so TL indirectly plays a part that way.
* Anarchies, multigovs, dictatorships or commies don't have any front ads. The main reasoning being that in all these the relationship with GalCop and the local gov is somewhat problematic. So to not unnecessarily provoke, there are no front ads.
Diziet Sma wrote:
ffutures wrote:
Could you have it as a configuration option selectable on F4, as though it were an equipment add-on?
As something which ought to be outside an in-game Commander's control, F4 is the wrong place for this.. it's more of a game configuration thing. So really, the proper place would be via the F2 options.. perhaps via OXPConfig.
As cool as OXPConfig is, I'm not fond of it and would favor a core solution of "OXP configuration interfaces" menu option in F2 menu screen: https://bb.oolite.space/viewtopic.php?f=6&t=16457
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: [WIP] Station Ads

Post by Fritz »

I think, what confused me (and you, because I mentioned communism in my error description?) was the rare combination of Icosahedron station, TL 12, and communism. I can't remember seeing a TL 12 communist system or an Ico in any system lower then TL 13.
spara wrote:
At least I found a couple of minor bugs in the process.
I know the feeling! I often find other bugs in my code but not the one I'm looking for.
"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: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [WIP] Station Ads

Post by Cody »

spara wrote:
... commies don't have any front ads. The main reasoning being that in all these the relationship with GalCop and the local gov is somewhat problematic. So to not unnecessarily provoke, there are no front ads.
I wonder if GalCop might go the other way in some Commie systems - but you're probably right.
Having just docked at an Ico in a RI TL13 Commie system got me thinking about it, you see.
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!
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: [WIP] Station Ads

Post by phkb »

There appears to be a problem with the ZGroovy station addon. When I have that OXP installed, and start a new game, I get this in my log:

Code: Select all

10:58:36.153 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (station_ads_station_script 0.14): TypeError: ship.subEntities[this.$dockSubent] is undefined
User avatar
Amah
---- E L I T E ----
---- E L I T E ----
Posts: 486
Joined: Tue Aug 28, 2012 8:05 pm
Location: aboard the Laenina Crowne - Yasen-N class space freighter
Contact:

Re: [WIP] Station Ads

Post by Amah »

My fault. Looks like my fix/workaround for the Grey Dodo fired back. *sigh*

The grey dodos dock is actually broken (flying through walls etc. two docking slit after each other) I came up with a workaround by not defining a subentity as dock but relying on:

Code: Select all

port_dimensions = "192.000x64.000x283.550";
port_radius = "210";
for defining the docking area.

I hoped I worked around the flying through walls but it seems to have blown up stations ads in my face...Hmmh, have to revert the change I guess.
Amah
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2691
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [WIP] Station Ads

Post by spara »

Cody wrote:
spara wrote:
... commies don't have any front ads. The main reasoning being that in all these the relationship with GalCop and the local gov is somewhat problematic. So to not unnecessarily provoke, there are no front ads.
I wonder if GalCop might go the other way in some Commie systems - but you're probably right.
Having just docked at an Ico in a RI TL13 Commie system got me thinking about it, you see.
If it makes you wonder (and not in a good way!), then it's not good. You being the second one to note this, I'll need to think this over a bit. Maybe I'll forget the gov altogether and just use productivity as a rule. Usually unstable gov means low productivity anyway.
User avatar
Amah
---- E L I T E ----
---- E L I T E ----
Posts: 486
Joined: Tue Aug 28, 2012 8:05 pm
Location: aboard the Laenina Crowne - Yasen-N class space freighter
Contact:

Re: [WIP] Station Ads

Post by Amah »

Don't know, for a techlevel 13 Com system I always imagined a brave-new-world setup. Techlevel used controling the people. Propaganda and ads all over the place in line with the maxime of the ideology.
Amah
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: [WIP] Station Ads

Post by Smivs »

Don't forget the stations are operated by GalCop, not the planet, so I think Gov't type may not be that important. The ads are clearly aimed at incoming shipping, so they would be targeted at spacefarers mostly, and as the crews etc would probably not even visit the planet, the Gov't type is rather irrelevant.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Amah
---- E L I T E ----
---- E L I T E ----
Posts: 486
Joined: Tue Aug 28, 2012 8:05 pm
Location: aboard the Laenina Crowne - Yasen-N class space freighter
Contact:

Re: [WIP] Station Ads

Post by Amah »

Shouldn't GalCop be neutral then, to be accepted by a Communist system at all. I just try imagine something like "this nextGalCop council meeting is sponsored by Cooca Coola - the drink of ambassadors".
Amah
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: [WIP] Station Ads

Post by Smivs »

Amah wrote:
Shouldn't GalCop be neutral then....
Yes, and as far as I know it is. The reason all these disparate Worlds have joined the Co-operative is precisely because they gain all the trade advantages etc without any interference in their domestic politics.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Re: [WIP] Station Ads

Post by Disembodied »

Smivs wrote:
Don't forget the stations are operated by GalCop, not the planet, so I think Gov't type may not be that important. The ads are clearly aimed at incoming shipping, so they would be targeted at spacefarers mostly, and as the crews etc would probably not even visit the planet, the Gov't type is rather irrelevant.
True, but this is the just sort of thing that could cause friction ... the external skin of the station is where GalCop territory touches local jurisdiction, and planetary governments might, not unreasonably, be averse to having culturally or ideologically offensive signs stuck there, especially given that it's the side that faces the planet. It's precisely the sort of petty annoyance that could be blown up into a major diplomatic incident, especially if the government was looking for leverage in a larger dispute. A relaxed, confident and stable government, enjoying good relations with the Co-operative might not care what's up there; whereas a paranoid regime, constantly threatening to abandon the Co-operative, might see potential threats and insults everywhere (e.g. North Korea - self-described Communist, although much more Feudal in reality).
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [WIP] Station Ads

Post by Cody »

spara wrote:
I'll need to think this over a bit. Maybe I'll forget the gov altogether and just use productivity as a rule.
I'll ponder it too - but I think gov-type probably should have a bearing on it.


Question for those commanders who know their charts: as I said above, I'd just docked at an Ico in the seventh (Ededer), which I think is the only place in the Eight where two adjacent systems both have Ico stations (the other being Raatbi) - anyone know of another? Icos ain't too common anyway.
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!
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2691
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [WIP] Station Ads

Post by spara »

Great discussion and helps me a lot :D . I think I'm getting somewhere. At least I'm getting more comfortable with the distribution formula I've come up with based on your ideas/views.

In this version (0.15) the distribution is done by using a number I'm calling profitFactor as a basis. This number presents the potential profitability of advertising in current system. That is calculated by checking the nearby systems and comparing their economies with the current system. More difference means more potential. That is again weighted with the gov of the other system to emphasize risk. Unstable gov means less potential. For every system around (7 LY) the number is calculated and added to the whole, meaning that hub systems have more potential. And finally the number is weighted with the gov of the current system. Again unstable gov means less potential. In G1 this yields a number between 1.17 (Ermaso) - 315 (Aanbiat).

I have roughly taken out about 1/5 of the systems based on the number and scaled the number of ads shown up from there.

Please comment how this feels.

https://app.box.com/s/16y3uzyom78u3edhnk8e3z81p2ze752p
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2691
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: [WIP] Station Ads

Post by spara »

:roll: I don't know what I was thinking with the previous version and it granting ads to 4/5th of the systems. In G1 YAH puts ads to 96 systems and leaves 160 out. And that was what the previous version was doing too. So I fiddled the numbers a bit and updated the version to 0.16. Luckily only one download of the previous one. This version (0.16) grants ads to about half of the systems. It's still quite a lot above YAH distribution, but the calculation method has changed.

https://app.box.com/s/cbuo58pjg3anidq8fkaxc0oe7q1yjlxn
Post Reply