Confusion in Galaxy One

General discussion for players of Oolite.

Moderators: winston, another_commander

User avatar
Pleb
---- E L I T E ----
---- E L I T E ----
Posts: 908
Joined: Sun Apr 29, 2012 2:23 pm
Location: United Kingdom

Re: Confusion in Galaxy One

Post by Pleb »

In that case maybe it should be left alone, as those of us who know this rule would like you said get confused if you changed it. It's not a complicated rule to remember just a bit strange at first, but once you understand why its that way it does make more sense...in a complicated way... :lol:
Desktop PC: CPU: Intel i7-4790K Quad Core 4.4GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1080Ti RAM: 32GB DDR3

Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2458
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Confusion in Galaxy One

Post by Wildeblood »

Pleb wrote:
I'm just theorising I know what I said before is trivial to implement I was thinking more about a way of the game determining if an OXP was made after a certain version release, that way you could implement a load of new coding features like updating system numbers and galaxy numbers to actual values (eg - Galaxy 1 = Galaxy 1 not Galaxy 0 = Galaxy 1) without screwing old OXPs?
But there is no "Galaxy 1". There is merely a screen, internally called GUI_SCREEN_LONG_RANGE_CHART (IIRC), which happens to have "Galactic Chart x" displayed at the top, where x is often equal to 1, in an unmodified, English language localized, Oolite installation. My Oolite usually says "Galactic Sector 1" on that screen, but has also at times said "Galactic Area 1", and sometimes occasionally "Galactic Chart 1" or just "Galactic Chart". There is no particular reason to include a number at the top of that screen. Like OXPs that expose bounties, this is an example of unnecessarily exposing internal workings to the player.

Hmm... feature request... let the key in descriptions.plist that often has the value "Galactic Chart" accept a list of values, and step one place through the list after each galactic jump. (<--- That's me avoiding saying "named galaxies" in so many words.)
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Confusion in Galaxy One

Post by Smivs »

Am I the only person who thinks we are discussing a non-existant problem here? Numbering systems starting with zero are common enough - I have a system monitor on my quad-core computer which amongst other things has four graphs for the four cores. These are numbered as CPU0, CPU1, CPU2 and CPU3. I know what it means.
And we have been happily working with the current system for years now without any problems. We know Galaxy 0 as Galaxy 1 because that's what humans do - Galaxy 0 is the first galaxy so it's called Galaxy 1 on the charts etc. The fact that 'internally' the game knows it as Galaxy 0 is irrelevant.
Commander Smivs, the friendliest Gourd this side of Riedquat.
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: Confusion in Galaxy One

Post by Cody »

Wildeblood wrote:
"named galaxies"
Now there's a good idea!
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
Fatleaf
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 1988
Joined: Tue Jun 08, 2010 5:11 am
Location: In analysis mode on Phaelon
Contact:

Re: Confusion in Galaxy One

Post by Fatleaf »

El Viejo wrote:
Wildeblood wrote:
"named galaxies"
Now there's a good idea!
I like the sound of that.

In Britain the equivalent to a US first floor we number it zero and give it a name "Ground Floor". So it is nothing new to a lot of people.
Find out about the early influences of Fatleaf here. Also his OXP's!
Holds the Ooniversal record for "Thread Necromancy"
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Confusion in Galaxy One

Post by cim »

Wildeblood wrote:
Hmm... feature request... let the key in descriptions.plist that often has the value "Galactic Chart" accept a list of values, and step one place through the list after each galactic jump. (<--- That's me avoiding saying "named galaxies" in so many words.)
Lists in descriptions.plist tend to represent random choices, rather than numbered lists. I'd rather keep that convention if possible.

However, adding "long-range-chart-title-0", "long-range-chart-title-1", etc. parameters should be straightforward, and allows the "long-range-chart-title-d" parameter to be kept for galaxies a particular OXP doesn't want to name.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2458
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Confusion in Galaxy One

Post by Wildeblood »

cim wrote:
However, adding "long-range-chart-title-0", "long-range-chart-title-1", etc. parameters should be straightforward, and allows the "long-range-chart-title-d" parameter to be kept for galaxies a particular OXP doesn't want to name.
Yes. That system is already used for the screenbackgrounds.plist, where you can define a default for all charts and also individual over-rides for each chart.

(Don't bother includin' any arbitrary upper limit - especially not 7 - on the number. Apparently, some people hack Oolite to use 24 charts.)
cim wrote:
Lists in descriptions.plist tend to represent random choices, rather than numbered lists. I'd rather keep that convention if possible.
I've been meaning to ask about those sort of lists. Are they intended/expected to contain a definite number of elements, or can they be extended? In a similar vein, Submersible Nebulae OXP contains four alternative nebula images that just over-ride the usual ones, I added a nebula.plist to it that listed all eight images, but I don't know whether it's having any effect.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Confusion in Galaxy One

Post by cim »

Wildeblood wrote:
(Don't bother includin' any arbitrary upper limit - especially not 7 - on the number. Apparently, some people hack Oolite to use 24 charts.)
It would be harder to add an arbitrary limit than not.
Wildeblood wrote:
cim wrote:
Lists in descriptions.plist tend to represent random choices, rather than numbered lists. I'd rather keep that convention if possible.
I've been meaning to ask about those sort of lists. Are they intended/expected to contain a definite number of elements, or can they be extended? In a similar vein, Submersible Nebulae OXP contains four alternative nebula images that just over-ride the usual ones, I added a nebula.plist to it that listed all eight images, but I don't know whether it's having any effect.
All of them in descriptions are arbitrarily extensible, though the ones in the system-descriptions array of arrays have a special case (for Elite-compatible RNG) when the inner array has the usual 5 elements.

nebulatextures.plist should work with any number of rows, as far as I can tell.

EDIT: fix quote markup
Last edited by cim on Thu Jul 19, 2012 10:45 am, edited 1 time in total.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Confusion in Galaxy One

Post by Commander McLane »

Smivs wrote:
Am I the only person who thinks we are discussing a non-existant problem here? Numbering systems starting with zero are common enough - I have a system monitor on my quad-core computer which amongst other things has four graphs for the four cores. These are numbered as CPU0, CPU1, CPU2 and CPU3. I know what it means.
No, you're not the only one. :)
Pleb wrote:
Agreed, I have already gotten used to the fact that when scripting you always take 1 number away for tech levels and system numbers and even galaxy numbers (have I missed one? )
Yes, you have missed everything else. Everything in Oolite that's in any way numbered (take for instance a look at all the properties of planetinfo.plist that you didn't mention: economy, population, GDP, political system; also the coordinates on the map; also the elements of any array in your script, the first one is number 0) starts with number 0. That's how computers work and have always worked, and there is nothing new, complicated, or confusing about it.

So yes, a total non-issue.
User avatar
Fatleaf
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 1988
Joined: Tue Jun 08, 2010 5:11 am
Location: In analysis mode on Phaelon
Contact:

Re: Confusion in Galaxy One

Post by Fatleaf »

Commander McLane wrote:
Smivs wrote:
Am I the only person who thinks we are discussing a non-existant problem here? Numbering systems starting with zero are common enough - I have a system monitor on my quad-core computer which amongst other things has four graphs for the four cores. These are numbered as CPU0, CPU1, CPU2 and CPU3. I know what it means.
No, you're not the only one. :)
Make that three! :wink:
Commander McLane wrote:
So yes, a total non-issue.
There are a few times I disagree with you Commander McLane, but this is not one of them :D
Find out about the early influences of Fatleaf here. Also his OXP's!
Holds the Ooniversal record for "Thread Necromancy"
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Confusion in Galaxy One

Post by Svengali »

The question was though if it makes sense to state the output value only in the documentation, so if OXPers are looking up a specific entry they always have to remember that .techLevel is non-zerobased when it needs to be exposed to the player.

cims point (if I get this right) was that you can't use .techLevel directly for displaying it as it needs the offset to match the descriptions on GUI_SCREEN_SYSTEM_DATA.

But I guess we can let it slip away, remove the old lists and Bob's your uncle .-)
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Confusion in Galaxy One

Post by JensAyton »

cim wrote:
Well, the fact that Oolite uses one-based for TL output and zero-based for TL input is the mess. It should probably use one-based for input as well (even if it continues to use zero-based internally), but that would break all existing equipment.plists and some planetinfo.plists.
If changing this was found to be a good idea, the equipment.plist case could be handled by allowing dictionaries instead of arrays for equipment definitions (which would make more sense anyway), and using one-based tech levels in the dictionary form. However, I think this would just result in more confusion and risk of human error.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Confusion in Galaxy One

Post by JensAyton »

Wildeblood wrote:
In a similar vein, Submersible Nebulae OXP contains four alternative nebula images that just over-ride the usual ones, I added a nebula.plist to it that listed all eight images, but I don't know whether it's having any effect.
Yes, that’s why nebulatextures.plist and startextures.plist exist in the first place.
Post Reply