Problem Povray Planets

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

Moderators: winston, another_commander

User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Problem Povray Planets

Post by CommRLock78 »

I've been taking a look at system redux and povray planet code, and it looks like adding additional moons and planets are going to be more involved than I initially thought.
Thargoid wrote:
If either isGasGiant or solarGasGiant are set to true for the planet entity, then PF will not try and land on it (detailed here on the wiki). But it needs to be set, ideally by the OXP which makes the planet a gas giant, but if there is some way to distinguish them then I can also put it into the PF script. But doing it at source is of course much preferred (and should be simpler).

You will get a warning though that you are trying to land on a gas giant - if that isn't wanted then just set PFNoLandQuiet to true instead. Then the planet effectively is completely and silently ignored by PF. Any landing attempt there will just result in the same splat that would occur if PF wasn't installed at all.
I actually don't mind being told that it isn't possible :).
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Problem Povray Planets

Post by cim »

Thargoid wrote:
Plus there's also the old question of gas giants as main planets anyway. The system station is supposed to be in orbit around the main planet of the system
I wonder if some of the "known for [...] shyness" worlds would specify a gas giant as their primary planet and direct all trade traffic there, in an attempt to keep casual visitors away from their real homeworld. Planets with diseases might be a candidate for this, too, though in that case it might well be Galcop rather than the system authorities making that decision.

Certainly actual habitation of the gas giant (beyond a couple of specialist high-atmosphere installations) should be extremely rare. Quite possible, if you're adding moons anyway, that a gas giant with several moons gets designated the primary just because it's easier to track and put a station in orbit around than the actual moons.
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: Problem Povray Planets

Post by Cody »

cim wrote:
... if you're adding moons anyway, that a gas giant with several moons gets designated the primary...
That's what is needed... habitable moons (large or small) in gas-giant systems.
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
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Problem Povray Planets

Post by CommRLock78 »

El Viejo wrote:
cim wrote:
... if you're adding moons anyway, that a gas giant with several moons gets designated the primary...
That's what is needed... habitable moons (large or small) in gas-giant systems.
<Agrees> While I absolutely positively love all the new eyecandy provided by POVray planets (in conjunction with Distant Suns) I miss my dynamic systems with moons and multiple planets!
Edit: BTW, I don't think it would take more than a couple dozen textures for the moons that could be re-used. I wouldn't have a problem with a bit of recycling, especially when it comes to "secondary" bodies.
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
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: Problem Povray Planets

Post by Diziet Sma »

CommRLock78 wrote:
Now that I'm making those suggestions, I would also like to say that I miss having moons and multiple planets in systems. Since I'm doing this now, I haven't had a chance to look at some code (namely DS system redux) to see how hard it would be to dovetail some additional planets and moons in each system via another OXP. What are your thoughts on moons/additional planets Submersible? Is it something you've considered or are working on? I don't want to step on toes, but this could be a good place for me to start OXPing.
I like the sound of that!

<waves box of cookies under CommRLock78's nose>
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
Cmd. Cheyd
---- E L I T E ----
---- E L I T E ----
Posts: 934
Joined: Tue Dec 16, 2008 2:52 pm
Location: Deep Horizon Industries Manufacturing & Research Site somewhere in G8...

Re: Problem Povray Planets

Post by Cmd. Cheyd »

I have mentioned it before, and have tried not to for a long time... But... You should look at the code behind DH-Systems. A lot of what has been discussed in this thread was addressed in there.

And before someone says that gas giants as mains were too prevenlent, I will again state that is only because gas giant textures are easy so I finished them long before I got around to other textures, so when I released it without all the others done, they had an un-planned higher appearance rate.
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Problem Povray Planets

Post by CommRLock78 »

Okay, I've had more than just a look at the code - in fact, I think I might have gotten some the exact compatibility that I was looking for (although very 'quick and dirty').
Using Version 2.0.8 of DHS, this is the changelog of things I've done:

Code: Select all

---------------
SystemRedux2.js
---------------
set lines 22 & 59 to false


-----------------------
Deep_Horizon_Systems.js
-----------------------
255-257 commented out
481-516 commented out
Deep Horizons Systems now provides extra planets and moons that is compatible with all Famous Planets 2.7 (Test release), POVray Planets (FP edition), and Distance Suns :D. So far no console errors and everything seems to working great :mrgreen:
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
submersible
Commodore
Commodore
Posts: 264
Joined: Thu Nov 10, 2011 7:49 am

Re: Problem Povray Planets

Post by submersible »

CommRLock78 wrote:
Deep Horizons Systems now provides extra planets and moons that is compatible with all Famous Planets 2.7 (Test release), POVray Planets (FP edition), and Distance Suns :D. So far no console errors and everything seems to working great :mrgreen:
Erm yes - I'd say more hackability than compatibility and surely not what Cmdr Cheyd had in mind. I'd like to try doing this with an update to the Povray Planets base OXP and using the actual DH API to effect the changes.
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Problem Povray Planets

Post by CommRLock78 »

submersible wrote:
CommRLock78 wrote:
Deep Horizons Systems now provides extra planets and moons that is compatible with all Famous Planets 2.7 (Test release), POVray Planets (FP edition), and Distance Suns :D. So far no console errors and everything seems to working great :mrgreen:
Erm yes - I'd say more hackability than compatibility and surely not what Cmdr Cheyd had in mind. I'd like to try doing this with an update to the Povray Planets base OXP and using the actual DH API to effect the changes.
Whether or not it was what Cmd Cheyd had in mind, these OXPs work together now - that's all I was saying :). Though, if you work out a way to make it work through the PP base OXP, that would probably be preferable.
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
Cmd. Cheyd
---- E L I T E ----
---- E L I T E ----
Posts: 934
Joined: Tue Dec 16, 2008 2:52 pm
Location: Deep Horizon Industries Manufacturing & Research Site somewhere in G8...

Re: Problem Povray Planets

Post by Cmd. Cheyd »

Submersible is correct, it's not what I had in mind, but so long as the altered version is not distributed - I'm good with it.

API is supplied specifically to allow other OXP's to control the behavior of DH-S. It's not hard to figure out from the code, but I really should get around to get around to writing the documentation sometime... Meh.

If I ever bother finishing the rewrite, it would actually become even easier. I was going to allow alternative OXPs to register their artwork into DH-S for use in texturing decisions along with some other features.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Problem Povray Planets

Post by Wildeblood »

CommRLock78 wrote:
submersible wrote:
Erm yes - I'd say more hackability than compatibility and surely not what Cmdr Cheyd had in mind...
Whether or not it was what Cmd Cheyd had in mind, these OXPs work together now - that's all I was saying :)...
And there's the real problem on display from submersible: too much emphasis on "Isn't this code clever?" and not enough thought given to "Will this actually work for players?"
Cmd. Cheyd wrote:
Submersible is correct, it's not what I had in mind, but so long as the altered version is not distributed - I'm good with it.
Just for clarification, what exactly will happen if it's "distributed"?
Cmd. Cheyd wrote:
API is supplied specifically to allow other OXP's to control the behavior of DH-S. It's not hard to figure out from the code, but I really should get around to get around to writing the documentation sometime... Meh.
It's not an API unless it's documented. The usual terminology for an undocumented API is trojan or trapdoor. Fortunately, a trapdoor into an OXP script can't harm a player's computer, but the repeated references to a "DH API" are just so much pretentious nonsense.
submersible wrote:
I'd like to try doing this with an update to the Povray Planets base OXP and using the actual DH API to effect the changes.
What you refer to as the "base" Povray Planets OXP is of course in reality a completely unnecessary, extra script which serves no useful purpose, but attempts to resolve the problems caused by other people's sledgehammer javascripts by piling on yet more javascript. Only madness lies down that route.

The way to solve DH Systems taking a sledgehammer to the system info is for Cmd. Cheyd to update it with the one line bug fix it needs:

Code: Select all

if (!system.info.texture) {...}
That's all that is needed: before you presume to set a texture on the main planet, check that it hasn't already been set.
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: Problem Povray Planets

Post by Diziet Sma »

Wildeblood wrote:
The usual terminology for an undocumented API is trojan or trapdoor.
According to Micro$oft, the correct term is Undocumented Feature. :lol:
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
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Problem Povray Planets

Post by Wildeblood »

Diziet Sma wrote:
According to Micro$oft, the correct term is Undocumented Feature. :lol:
You must have been reading my mind while I composed the first draft. I thought I did rather well at removing all the more offensive references such as "Micro$oft", while still letting the tone of general frustration shine through. :D
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Problem Povray Planets

Post by CommRLock78 »

Wildeblood wrote:
CommRLock78 wrote:
submersible wrote:
Erm yes - I'd say more hackability than compatibility and surely not what Cmdr Cheyd had in mind...
Whether or not it was what Cmd Cheyd had in mind, these OXPs work together now - that's all I was saying :)...
And there's the real problem on display from submersible: too much emphasis on "Isn't this code clever?" and not enough thought given to "Will this actually work for players?"
I most definitely thought about other players - specifically players who are using Distant Suns, Povray Planets, and DHS. The last several posts I made on this thread I was considering re-establishing more comprehensive solar systems by way of a new OXP, but after Cmd. Cheyd gave his input and looking at the code to DHS, I realized it would be infinitely easier to re-craft the wheel rather than re-invent it ;).
Wildeblood wrote:
Cmd. Cheyd wrote:
API is supplied specifically to allow other OXP's to control the behavior of DH-S. It's not hard to figure out from the code, but I really should get around to get around to writing the documentation sometime... Meh.
It's not an API unless it's documented. The usual terminology for an undocumented API is trojan or trapdoor. Fortunately, a trapdoor into an OXP script can't harm a player's computer, but the repeated references to a "DH API" are just so much pretentious nonsense.
Learning a bit more about API, it looks like Wildeblood is absolutely right, documentation is a integral part of an API.
Wildeblood wrote:
submersible wrote:
I'd like to try doing this with an update to the Povray Planets base OXP and using the actual DH API to effect the changes.
What you refer to as the "base" Povray Planets OXP is of course in reality a completely unnecessary, extra script which serves no useful purpose, but attempts to resolve the problems caused by other people's sledgehammer javascripts by piling on yet more javascript. Only madness lies down that route.

The way to solve DH Systems taking a sledgehammer to the system info is for Cmd. Cheyd to update it with the one line bug fix it needs:

Code: Select all

if (!system.info.texture) {...}
That's all that is needed: before you presume to set a texture on the main planet, check that it hasn't already been set.
I'm fairly certain that DHS does in fact check this (I haven't seen this code per se, but at the same time I haven't seen a mis-textured planet from POVray planets. The main issue with DHS was it sledgehammering Distant Suns (you may recall I was having trouble with sun color).
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Problem Povray Planets

Post by CommRLock78 »

I couldn't help posting this one... too funny! :P

Image

Edit: From G5
# 43. Bexein (54,248), {80,95,98,117,160,172,245,250} within 7.0 LY. Radius 3638 km.
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
Post Reply