Confusion in Galaxy One
Moderators: winston, another_commander
Re: Confusion in Galaxy One
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...
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
Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
- Wildeblood
- ---- E L I T E ----
- Posts: 2453
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
Re: Confusion in Galaxy One
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.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?
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.)
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Re: Confusion in Galaxy One
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.
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.
- Cody
- 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
Now there's a good idea!Wildeblood wrote:"named galaxies"
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!
And any survivors, their debts I will certainly pay. There's always a way!
- Fatleaf
- 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
I like the sound of that.El Viejo wrote:Now there's a good idea!Wildeblood wrote:"named galaxies"
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"
Holds the Ooniversal record for "Thread Necromancy"
Re: Confusion in Galaxy One
Lists in descriptions.plist tend to represent random choices, rather than numbered lists. I'd rather keep that convention if possible.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.)
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.
- Wildeblood
- ---- E L I T E ----
- Posts: 2453
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
Re: Confusion in Galaxy One
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.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.
(Don't bother includin' any arbitrary upper limit - especially not 7 - on the number. Apparently, some people hack Oolite to use 24 charts.)
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.cim wrote:Lists in descriptions.plist tend to represent random choices, rather than numbered lists. I'd rather keep that convention if possible.
Re: Confusion in Galaxy One
It would be harder to add an arbitrary limit than not.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.)
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.Wildeblood wrote: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.cim wrote:Lists in descriptions.plist tend to represent random choices, rather than numbered lists. I'd rather keep that convention if possible.
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.
- Commander McLane
- ---- 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
No, you're not the only one.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.
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.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? )
So yes, a total non-issue.
- Fatleaf
- 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
Make that three!Commander McLane wrote:No, you're not the only one.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.
There are a few times I disagree with you Commander McLane, but this is not one of themCommander McLane wrote:So yes, a total non-issue.
Find out about the early influences of Fatleaf here. Also his OXP's!
Holds the Ooniversal record for "Thread Necromancy"
Holds the Ooniversal record for "Thread Necromancy"
Re: Confusion in Galaxy One
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 .-)
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 .-)
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Re: Confusion in Galaxy One
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.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.
E-mail: [email protected]
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Re: Confusion in Galaxy One
Yes, that’s why nebulatextures.plist and startextures.plist exist in the first place.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.
E-mail: [email protected]