[RELEASE] YAH_Haulers OXP V1.12 (updated 6 August 2016)
Posted: Fri Jan 17, 2014 8:12 am
YAH_Haulers_GriffR_v1.12.oxp
Download link, OXP format: http://www.keeper1st.com/Oolite/YAH_Hau ... _v1.12.zip
(but see the "Installation" section below for required other OXPs and OXPs that are superseded by this)
=== Description ===
So you have those lovely Constores near the witchpoints of certain systems, thanks to the YOUR_AD_HERE series of OXPs. But how do the stores get their merchandise? Surely big brand-name stores such as these don't rely solely on independent traders. That's where this OXP comes in.
With this OXP, when you enter a system that has a constore, there will be a 2/3 chance of a likewise-branded Hauler appearing. For example, if there's an Oodles store, then an Oodles Hauler (and Oodles Security escorts) may appear. When a Hauler does appear, it may be heading toward the store full of cargo, or be on its return run to the system main station, with no cargo (for the cargo has been delivered).
When the Hauler arrives at the store or the main station, it and its escorts will dock.
The ships: The "GriffR" in the OXP name indicates that this version of the OXP is designed for the Griff shadered replacement shipset. It will work without shaders as well since standard Oolite now uses the same models. However, if you use shaders you will need Griff's shader versions of the Anaconda and Boa (this OXP calls their shaders, normal maps and effects maps rather than duplicating them).
This OXP also corrects mistakes made by the Your Ad Here OXP with regards to the Constore defenders. YAH calls them up with the Sidewinder Escort model, but the textures were designed for the standard Sidewinder model. Also, this OXP uses my version of the textures which have specular maps.
As the haulers and escorts are spawned by role rather than by name, it will be easy to add ships that can be used by this OXP, so you could make your own additional branded store haulers and escorts.
This OXP also restores the individual colour schemes for the different branded stores, which got removed at some point in the history of the Your Ad Here OXP. It also restores an ad that had been inadvertently replaced due to a typo in the current version of YAH.
This OXP also replaces one of the two "Star" Con Stores with a "GalaxyMart" Con Store (a parody of the big Asian chain "FamilyMart"), and slows the rotation speed of all stores to a more sensible rate -- now you have time to read a sign or two before it spins out of sight. The new rotation speed wasn't necessary for this OXP, but I think you'll find it's a nice bonus.
Thanks go to dertien for most of the textures (which I have modified to add specular maps and some colour improvements here and there). He had made these textures a few years ago but they didn't have appropriate scripts to go with them, so this OXP puts them to good use. More thanks to dertien for providing templates to assist me in creating the GalaxyMart-branded ships.
Thanks also to eric walch, for I modified one of his scripts to make sure the hauler that heads for the store stays in the system. This is old plist-style AI, though, so it isn't as good as modern javascript AI, but that's beyond my current abilities. I'd love it if somebody could re-do the AI for javascript, because the plist AI has a problem with some or many of the escorts docking before the hauler does, leaving the hauler vulnerable. I'm told that new javascript AI could remedy that.
This OXP now needs at least Oolite 1.81.
=== Installation ===
To use this OXP, first you will need the following OXPs:
* YOUR_AD_HERE_4.2.2 and at least one of the "set" packages
Get from the OXP Manager in the game.
* Griff_Boa_v1.04.3 (or later, presumably) -- only required if you have shaders enabled
Get from the OXP Manager in the game.
* Griff_Anaconda_v1.04.3 (or later, presumably) -- only required if you have shaders enabled
Get from the OXP Manager in the game.
In addition, if the following OXPs are installed, you should/must remove them, as this OXP supersedes them:
* YOUR_AD_HERE_Z.oxp
* Z_GrOovy_YAH_Constore _L_Transports_.oxp
* Z_GrOovy_YAH_Sidewinder_Variety_Pack.oxp
Once you've done all that, simply place the YAH_Haulers_GriffR_v1.12.oxp folder in your Oolite\AddOns\ folder.
Optional: This OXP is compatible with Escort Formations OXP. https://bb.oolite.space/viewtopic.php?f=4&t=12117 (or get from the Manager in game)
=== Future Ideas ===
While I made sure that the empty returning haulers are not on the pirate-victim-roles list (pirates are smart enough to know that a hauler going from the store to the main station has already delivered its cargo), it might be nice to add a script that will make the empty hauler berate the player for attacking it. "We're not carrying any cargo, you moron!"
As mentioned before, rewriting the AI in javascript to ensure that the hauler always is the first to dock.
Currently, once the hauler docks, it never will re-appear (unless you're using Station Dock Control OXP). Also, when the 0-2 random number comes up as 2, no hauler is spawned. Maybe it would be nice, in that case, to make it possible for the hauler to launch from the store or the main station at some point in the future.
=== License ===
YAH_Haulers_GriffR_v1.12.oxp is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. http://creativecommons.org/licenses/by-nc-sa/4.0/
I encourage suggestions and/or updates. Want to make textures for haulers and escorts on different ship models? Please do; I can add the necessary lines to this OXP or you can simply incorporate them into your own OXP and this OXP will spawn them -- I can make the code for you if you like, to ensure compatibility.
=== Changelog ===
V1.12 restores the individual colour schemes for the different store brands, which the current version of YAH had removed (making all stores orange). Also it overrides a line from YAH that contained a typo that was preventing one ad from displaying ("The Happy Trumble Restaurant" ad from the Pi-42 store was displaying on the Sainsboory's store by mistake, instead of the "Coriolis Preservation Society" ad).
V1.11 gives the escorts military lasers instead of beam lasers, and thus no longer overrides YAH's establishment of military lasers for the constore defenders. Let me know if you think that makes the escort team too strong.
V1.1 updates the OXP to work with Oolite versions 1.81 and above and the current version of YAH. It fixes a mistake created by YAH (calling the wrong Sidewinder model). This OXP calls the correct Sidewinder model for the texture used, and includes correct effects and normal maps for that model. Also the OXP now can work on systems that are not running shaders.
V1.02 adds compatibility with Escort Formations OXP. If you have Escort Formations OXP installed, you will see a variety of defensive formations taken by the hauler escorts. It is not necessary to have the OXP; without it, you'll still get the same default echelon formation as before.
V1.02 also alters the colours of the GalaxyMart store with JJP's suggestion -- a slightly different shade of green, and now blue lines introduced.
V1.02 also changes some distance values in the AI, to help avoid accidents. The haulers should enter the docking procedure earlier now. I had experienced one hauler crashing into a main station and another nearly crashing into the store before entering its docking procedure.
V1.01 changes the spawning of escorts to be by role instead of by name (when used with 1.79), so other OXPs can add ships that this OXP will use (thus there can be an assortment of ship models, for variety). This change facilitated incorporating overrides to implement a change from "Star" to "GalaxyMart" for the set_D store (there's still a Star store, in set_F), otherwise that hauler would end up with no escorts unless the player had modified their YOUR_AD_HERE installation in the same way I had.
V1.01 also adds Boa haulers for Pi-42 and Tescoo (in addition to their Anacondas). The ship types were added to their names, i.e. "Tescoo Hauler Anaconda", "Tescoo Hauler Boa", "Tescoo Security Sidewinder" so you'll be able to differentiate between various ship types that may appear now or in the future. Also, the number of escorts a hauler will have now varies when using Oolite 1.79. The Anacondas will have between six and eight escorts (in 1.77, always eight), and the Boas will have between five and seven (in 1.77, always six). I'm open to suggestions about what may be too many or not enough.
Download link, OXP format: http://www.keeper1st.com/Oolite/YAH_Hau ... _v1.12.zip
(but see the "Installation" section below for required other OXPs and OXPs that are superseded by this)
=== Description ===
So you have those lovely Constores near the witchpoints of certain systems, thanks to the YOUR_AD_HERE series of OXPs. But how do the stores get their merchandise? Surely big brand-name stores such as these don't rely solely on independent traders. That's where this OXP comes in.
With this OXP, when you enter a system that has a constore, there will be a 2/3 chance of a likewise-branded Hauler appearing. For example, if there's an Oodles store, then an Oodles Hauler (and Oodles Security escorts) may appear. When a Hauler does appear, it may be heading toward the store full of cargo, or be on its return run to the system main station, with no cargo (for the cargo has been delivered).
When the Hauler arrives at the store or the main station, it and its escorts will dock.
The ships: The "GriffR" in the OXP name indicates that this version of the OXP is designed for the Griff shadered replacement shipset. It will work without shaders as well since standard Oolite now uses the same models. However, if you use shaders you will need Griff's shader versions of the Anaconda and Boa (this OXP calls their shaders, normal maps and effects maps rather than duplicating them).
This OXP also corrects mistakes made by the Your Ad Here OXP with regards to the Constore defenders. YAH calls them up with the Sidewinder Escort model, but the textures were designed for the standard Sidewinder model. Also, this OXP uses my version of the textures which have specular maps.
As the haulers and escorts are spawned by role rather than by name, it will be easy to add ships that can be used by this OXP, so you could make your own additional branded store haulers and escorts.
This OXP also restores the individual colour schemes for the different branded stores, which got removed at some point in the history of the Your Ad Here OXP. It also restores an ad that had been inadvertently replaced due to a typo in the current version of YAH.
This OXP also replaces one of the two "Star" Con Stores with a "GalaxyMart" Con Store (a parody of the big Asian chain "FamilyMart"), and slows the rotation speed of all stores to a more sensible rate -- now you have time to read a sign or two before it spins out of sight. The new rotation speed wasn't necessary for this OXP, but I think you'll find it's a nice bonus.
Thanks go to dertien for most of the textures (which I have modified to add specular maps and some colour improvements here and there). He had made these textures a few years ago but they didn't have appropriate scripts to go with them, so this OXP puts them to good use. More thanks to dertien for providing templates to assist me in creating the GalaxyMart-branded ships.
Thanks also to eric walch, for I modified one of his scripts to make sure the hauler that heads for the store stays in the system. This is old plist-style AI, though, so it isn't as good as modern javascript AI, but that's beyond my current abilities. I'd love it if somebody could re-do the AI for javascript, because the plist AI has a problem with some or many of the escorts docking before the hauler does, leaving the hauler vulnerable. I'm told that new javascript AI could remedy that.
This OXP now needs at least Oolite 1.81.
=== Installation ===
To use this OXP, first you will need the following OXPs:
* YOUR_AD_HERE_4.2.2 and at least one of the "set" packages
Get from the OXP Manager in the game.
* Griff_Boa_v1.04.3 (or later, presumably) -- only required if you have shaders enabled
Get from the OXP Manager in the game.
* Griff_Anaconda_v1.04.3 (or later, presumably) -- only required if you have shaders enabled
Get from the OXP Manager in the game.
In addition, if the following OXPs are installed, you should/must remove them, as this OXP supersedes them:
* YOUR_AD_HERE_Z.oxp
* Z_GrOovy_YAH_Constore _L_Transports_.oxp
* Z_GrOovy_YAH_Sidewinder_Variety_Pack.oxp
Once you've done all that, simply place the YAH_Haulers_GriffR_v1.12.oxp folder in your Oolite\AddOns\ folder.
Optional: This OXP is compatible with Escort Formations OXP. https://bb.oolite.space/viewtopic.php?f=4&t=12117 (or get from the Manager in game)
=== Future Ideas ===
While I made sure that the empty returning haulers are not on the pirate-victim-roles list (pirates are smart enough to know that a hauler going from the store to the main station has already delivered its cargo), it might be nice to add a script that will make the empty hauler berate the player for attacking it. "We're not carrying any cargo, you moron!"
As mentioned before, rewriting the AI in javascript to ensure that the hauler always is the first to dock.
Currently, once the hauler docks, it never will re-appear (unless you're using Station Dock Control OXP). Also, when the 0-2 random number comes up as 2, no hauler is spawned. Maybe it would be nice, in that case, to make it possible for the hauler to launch from the store or the main station at some point in the future.
=== License ===
YAH_Haulers_GriffR_v1.12.oxp is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. http://creativecommons.org/licenses/by-nc-sa/4.0/
I encourage suggestions and/or updates. Want to make textures for haulers and escorts on different ship models? Please do; I can add the necessary lines to this OXP or you can simply incorporate them into your own OXP and this OXP will spawn them -- I can make the code for you if you like, to ensure compatibility.
=== Changelog ===
V1.12 restores the individual colour schemes for the different store brands, which the current version of YAH had removed (making all stores orange). Also it overrides a line from YAH that contained a typo that was preventing one ad from displaying ("The Happy Trumble Restaurant" ad from the Pi-42 store was displaying on the Sainsboory's store by mistake, instead of the "Coriolis Preservation Society" ad).
V1.11 gives the escorts military lasers instead of beam lasers, and thus no longer overrides YAH's establishment of military lasers for the constore defenders. Let me know if you think that makes the escort team too strong.
V1.1 updates the OXP to work with Oolite versions 1.81 and above and the current version of YAH. It fixes a mistake created by YAH (calling the wrong Sidewinder model). This OXP calls the correct Sidewinder model for the texture used, and includes correct effects and normal maps for that model. Also the OXP now can work on systems that are not running shaders.
V1.02 adds compatibility with Escort Formations OXP. If you have Escort Formations OXP installed, you will see a variety of defensive formations taken by the hauler escorts. It is not necessary to have the OXP; without it, you'll still get the same default echelon formation as before.
V1.02 also alters the colours of the GalaxyMart store with JJP's suggestion -- a slightly different shade of green, and now blue lines introduced.
V1.02 also changes some distance values in the AI, to help avoid accidents. The haulers should enter the docking procedure earlier now. I had experienced one hauler crashing into a main station and another nearly crashing into the store before entering its docking procedure.
V1.01 changes the spawning of escorts to be by role instead of by name (when used with 1.79), so other OXPs can add ships that this OXP will use (thus there can be an assortment of ship models, for variety). This change facilitated incorporating overrides to implement a change from "Star" to "GalaxyMart" for the set_D store (there's still a Star store, in set_F), otherwise that hauler would end up with no escorts unless the player had modified their YOUR_AD_HERE installation in the same way I had.
V1.01 also adds Boa haulers for Pi-42 and Tescoo (in addition to their Anacondas). The ship types were added to their names, i.e. "Tescoo Hauler Anaconda", "Tescoo Hauler Boa", "Tescoo Security Sidewinder" so you'll be able to differentiate between various ship types that may appear now or in the future. Also, the number of escorts a hauler will have now varies when using Oolite 1.79. The Anacondas will have between six and eight escorts (in 1.77, always eight), and the Boas will have between five and seven (in 1.77, always six). I'm open to suggestions about what may be too many or not enough.