Re: Extra Planet/Moon textures - now Additional Planets.oxp
Posted: Sat Mar 01, 2014 1:59 pm
It would be good if some of the additional planets had rings
For information and discussion about Oolite.
https://bb.oolite.space/
Glad you like it That was always the hope when I released it - that someone else could have fun with it too.Diogenese Senna wrote:Using it now - and .....
ooooo, very pretty !!!
Hi Lestradae.Lestradae wrote:I just noticed that since 0.5.6., my "Additional Planets" seem to be gone.
Hadn't visited one yet, but with 0.5.5. they showed up via another oxp that shows the in-system planets via the F4 screen in stations (forgot the name). They were recognizable due to the crazy distances they had to everything else.
Alas, in 0.5.6., no such luck. I am using trunk 1.79.
Thanks Astrobe, more to come when I get the timeAstrobe wrote:Those new textures look really nice. I wish there was full-featured lanes for each extra planets so I could go to the planet that looks better .
Ah, now that's something that's much more likely to happen. A major update is currently underway but I don't want to say too much yetAstrobe wrote:I started out with a couple of packs installed only and I noticed that the game defaulted often to the standard textures. Could it be possible to default to a random texture that's in the pack instead?
Completely agree and it has been considered but... maybe not scheduled just yetDGill wrote:It would be good if some of the additional planets had rings
Hmm - perhaps a few little tweaks here and thereRedspear wrote:I agree that it looks great, bit on the slow side though or have you... (gasp! ) tinkered with it?
No, that's indeed not going to be a solution - all Texture folders in my AddOns folder are where they ought to be, inside oxpsRedspear wrote:Hmmm... The only change between 0.5.5 and 0.5.6 was that I chaged the locations of the textures folder.
If you find the name of that other oxp then I'd be happy to investigate (could it be Norby's 'Far Planets' ...) It should work in 1.79 although I haven't tested it in the very latest version yet. In the meantime, version 0.5.6 doesn't add any special features, so if it works with 0.5.5 then stay with that. Sorry
Do you have a folder named 'Textures' within your AddOns main folder (not within a specific oxp folder) by any chance? I expect you know this (so please forgive me if I'm stating the obvious) but the textures from the packs should be put into the textures folder within the Additional Planets oxp.
Probably more of a job for system features ring OXP. It only deals with main planets right now. I'm trying to make it decorate all planets but it doesn't work; only the main planet gets a ring (which makes two if it has one already!). I don't understand what I do wrong, and there's no errors in the log.DGill wrote:It would be good if some of the additional planets had rings
Code: Select all
this.startUp = this.shipWillExitWitchspace = function() {
// only a few ring systems per galaxy.
// the largest planets have rings
if (system.isInterstellarSpace || system.sun.hasGoneNova) {
return;
}
/*
if (system.info.radius < 6850) {
return;
}
this._addRing();
*/
var len=system.planets.length;
log("Rings", system.name + " has " + len + " planets");
for(var i=0; i<len; i++)
{
var planet=system.planets[i];
log("Rings", "One ring added to " + planet.name);
var ring= system.addVisualEffect("systemfeatures-rings", planet);
ring.orientation=planet.orientation;
ring.orientation = ring.orientation.rotate(ring.orientation.vectorRight(),Math.PI/2);
ring.planet=planet;
}
}
Code: Select all
this._updatePosition = function() {
if (player.ship.position) {
this.visualEffect.shaderVector2 = player.ship.position;
// move very slightly towards player to deal with depth-buffer issues
// this.visualEffect.position = system.mainPlanet.position.subtract(system.mainPlanet.position.subtract(player.ship.position).direction());
var planet=this.visualEffect.planet;
this.visualEffect.position = planet.position.subtract(planet.position.subtract(player.ship.position).direction());
} else {
removeFrameCallback(this.$fcb);
}
}
Most likely? Whatever code is adding the extra planets has been selected to run after Rings in the OXP loading order. So, when you check for the planets in the Rings script, they aren't there yet.Astrobe wrote:I don't understand what I do wrong
Spara's [wiki]Market_Inquirer[/wiki] contain the "In-system distances" interface, where you can see some real-life distances with FarPlanets:Lestradae wrote:I think the F4-showing-planets oxp is Norby's.
I added a planet - Saturn - in a planetinfo.plistAstrobe wrote:Probably more of a job for system features ring OXP. It only deals with main planets right now. I'm trying to make it decorate all planets but it doesn't work; only the main planet gets a ring (which makes two if it has one already!). I don't understand what I do wrong, and there's no errors in the log.DGill wrote:It would be good if some of the additional planets had rings
The strange thing is that the traces report less planets than I see.
Thanks for the tips, Cim. But I don't get the last one. Where is the shortcut?cim wrote:Most likely? Whatever code is adding the extra planets has been selected to run after Rings in the OXP loading order. So, when you check for the planets in the Rings script, they aren't there yet.|/quote]Astrobe wrote:I don't understand what I do wrong
- set the ring orientation differently for secondary planets. You'll get some very strange lighting effects otherwise. The original script can use a shortcut because the position of the sun relative to the initial orientation of the main planet is always the same: that certainly won't be true for a secondary planet.
Code: Select all
20:52:16.459 [files.notFound]: ----- WARNING: Could not find texture file "planetD17.png".
20:52:37.629 [script.error.addPlanet.keyNotFound]: ***** ERROR: could not find an entry in planetinfo.plist for 'moonB29'
20:52:37.639 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (Additional Planets 0.5.5): TypeError: moon is null
20:52:37.639 [script.javaScript.exception.unexpectedType]: ../AddOns/Additional_Planets_0.5.6.oxp/Config/script.js, line 169.
It's working for me. (Although I do get the "moon is null" error. Did you put the textures in the right folder? They are separate when you download them, but they all need to be in the /Additional_Planets_0.5.6.oxp/Textures/ folder, otherwise the game doesn't know where to find them. I may be completely wrong, but thought it might be worth mentioning.Pleb wrote:I thought I'd give this OXP a try but it is not working for me!
I have installed all the texture packs (Redux, Demux, Free Bitmaps and Others) and the main OXP, but I get no planets or moons and the following errors in the log:Am I doing something wrong?Code: Select all
20:52:16.459 [files.notFound]: ----- WARNING: Could not find texture file "planetD17.png". 20:52:37.629 [script.error.addPlanet.keyNotFound]: ***** ERROR: could not find an entry in planetinfo.plist for 'moonB29' 20:52:37.639 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (Additional Planets 0.5.5): TypeError: moon is null 20:52:37.639 [script.javaScript.exception.unexpectedType]: ../AddOns/Additional_Planets_0.5.6.oxp/Config/script.js, line 169.
Code: Select all
09:08:16.304 [files.notFound]: ----- WARNING: Could not find texture file "planetD17.png".
Code: Select all
09:12:44.418 [script.error.addPlanet.keyNotFound]: ***** ERROR: could not find an entry in [icode]planetinfo.plist[/icode] for 'moonB29'
09:12:44.430 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (Additional Planets 0.5.5): TypeError: moon is null
09:12:44.430 [script.javaScript.exception.unexpectedType]: ../AddOns/Additional_Planets_0.5.6.oxp/Config/script.js, line 169.
planetinfo.plist
entries that are not there.