Can't start the game with the RED version, as it displays a very weird error message that crashes the game as it loads.
Make a rainbow shield.
QuoteMake a rainbow shield.
Will do. Horizontal or vertical? In fact, it should be diagonal. Diagonal-spherical.Spoiler(https://i.imgur.com/dC5LLXm.png)[close]
protected void buildingFinished() {
super.buildingFinished();
this.market.removeIndustry("PLANETARYSHIELD", (MarketAPI.MarketInteractionMode)null, false);
}
"industry":{
"shield_texture_pink":"graphics/planets/planetary_shield_pink.png",
"shield_texture_blue":"graphics/planets/planetary_shield_blue.png",
}
public class PlanetaryShield_Blue extends BaseIndustry {
[stuff]
# changes go here, otherwise would be the same as class PlanetaryShield
public static void applyVisuals(PlanetAPI planet) {
if (planet != null) {
planet.getSpec().setShieldTexture(Global.getSettings().getSpriteName("industry", "shield_texture_blue")); # blue version
planet.getSpec().setShieldThickness(0.1F);
planet.getSpec().setShieldColor(new Color(255, 255, 255, 175));
planet.applySpecChanges();
}
}
SpoilerCodeprotected void buildingFinished() {
super.buildingFinished();
this.market.removeIndustry("PLANETARYSHIELD", (MarketAPI.MarketInteractionMode)null, false);
}
The new 'Industries' would just need to be copies (variations) of the original PLANETARYSHIELD, save with a different link to the color option.
You could then add entries to a custom settings.json:Code"industry":{
"shield_texture_pink":"graphics/planets/planetary_shield_pink.png",
"shield_texture_blue":"graphics/planets/planetary_shield_blue.png",
}
And then you would need the industry itself (example):Codepublic class PlanetaryShield_Blue extends BaseIndustry {
[stuff]
# changes go here, otherwise would be the same as class PlanetaryShield
public static void applyVisuals(PlanetAPI planet) {
if (planet != null) {
planet.getSpec().setShieldTexture(Global.getSettings().getSpriteName("industry", "shield_texture_blue")); # blue version
planet.getSpec().setShieldThickness(0.1F);
planet.getSpec().setShieldColor(new Color(255, 255, 255, 175));
planet.applySpecChanges();
}
}[close]
How about adding a (non industry) buildable option at the colony, that depends upon the presence of the Red Shield (original) version
How about adding a (non industry) buildable option at the colony, that depends upon the presence of the Red Shield (original) version
I'm gonna stop you right here!
It's not a good idea to clutter the colony menu with more things to build, as per your suggestion, it would take 2 slots to get a blue planetary shield, that's complete madness.
I'm gonna stop you right here!
It's not a good idea to clutter the colony menu with more things to build, as per your suggestion, it would take 2 slots to get a blue planetary shield, that's complete madness.
I'm gonna stop you right here!
It's not a good idea to clutter the colony menu with more things to build, as per your suggestion, it would take 2 slots to get a blue planetary shield, that's complete madness.
As shown in my prior post, it can be coded to replace the shield using "removeIndustry"; thus only taking one slot.
Is it possible to make shields don't affect the planets appearance? Like as if they don't exist from outside?