I've had a couple of requests to post my modifications to
HOopy Casinos and
Your Ad Here that limits their appearance to Corporate systems only, thus making a
de facto system OXP out of them in the same mode as Commies, Anarchies, Dictators, etc.
A couple of disclaimers: First, I'm using very very old versions of both OXP's because I'm trying to keep the retro look to my game. I cannot guarantee this modification will work with the current versions. Second, my change to YAH is designed only to populate the billboards at the Witchpoint and Navigation beacon, it does nothing to Constores themselves (personally I've removed them completely, as all I wanted was billboards).
In HOopy Casinos, you will need to edit hoopy_casino.js to change the script:
Code: Select all
this.tryAddingCasinoship = function () {
if (system.techLevel >= 10 && system.pseudoRandom100 > 55 && system.government != 4 || system.info.description.indexOf('hoopy casinos') > -1) {
// add in high tech level systems, but not in comunist systems. But, always in systems famous for their casinos.
system.addShipsToRoute('casinoship', 1, 0.995); // near station
}
into:
Code: Select all
this.tryAddingCasinoship = function () {
if (system.techLevel >= 11 && system.government == 7) {
// add in high tech level systems, but not in comunist systems. But, always in systems famous for their casinos.
system.addShipsToRoute('casinoship', 1, 0.995); // near station
This is just a simple change that only spawns casinos in high-tech, corporate systems and nowhere else.
Secondly, the version of YAH I'm using populates billboards via the shipdata.plist in the config folder. Newer versions may use a script instead, in which case, you'd need to change that in the same way as HOopy, by setting the system.government type to 7, which is Corporate. If your version of YAH still uses the shipdata.plist, this is a sample for the billboards:
Code: Select all
<key>yah_set_A_01-navbeacon</key>
<dict>
<key>conditions</key>
<array>
<string>systemGovernment_number equal 7</string>
</array>
There will be over twenty of these navbeacons that all have to have their systemGovernment _number changed to 7 in the same way.
Sorry if I'm not explaining this very well, but coding isn't my forte and this is very much a tinkering solution. Together this should only spawn casinos and billboards in Corporate systems, adding a little unique local color to those types. I personally call the result
Panem et Circenses. There are a few other plugins for YAH, like the moving billboards or asteroid billboards. I am fairly sure this same idea can also limit those to the same system type, and will look into adding those in as well at some point-- just to keep the advertising saturation up for the good citizens of those Corporate systems!
Edit: Thinking about it, I did just download Thargoid's
Your Ad Here Mobile and found it quite easy to make the same changes to both the shipdata.plist and script.js. This should add the ship-towed billboards as well!