Planetfall 2.0 (apparently)
Moderators: winston, another_commander
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: Planetfall 2.0 (maybe)
I’m sure ever “Telescope” user will be happy to note that I’ve managed to get it to recognise the ground control interface points. And you can also target the point when it’s inside scanner distance. Which I hope leads to fewer craters been left behind on planet surfaces.
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Planetfall 2.0 (maybe)
I came back to retry this one. Had to search this meanwhile quite long chat to get the download URL, then had to read carefully again to find the required patches. That's why I opened Expansion Pack Field Testingphkb wrote: ↑Thu Apr 11, 2024 8:50 amWell, I could say there is nothing wrong here, because it works on *my* setup. But that doesn't get us closer to a solution.
It all comes down to two variables: distOffset and this.globalCount. One of those values is not being treated as a number, resulting in the NaN x 3 in the error message.
OK, can I get you to insert these lines just before line 776:Retest and let me know what you get.Code: Select all
log(this.name, "distOffset = " + distOffset + " - " + isNaN(distOffset)); log(this.name, "globalCount = " + this.globalCount + " - " + isNaN(this.globalCount));
With the quoted stuff, I get still get no selectable target for the astrogation compass, but here is something from my logfile:
Code: Select all
08:44:41.863 [PlanetFall2_MonkeyPatch]: Monkey-patching $addPlanets function of Additional Planets
08:44:41.870 [PlanetFall2]: distOffset = 16 - false
08:44:41.870 [PlanetFall2]: globalCount = NaN - true
08:44:41.898 [script.javaScript.exception.ooliteDefined]: ***** JavaScript exception (System Redux 0.9): Error: Could not construct vector from parameters (NaN, NaN, NaN) -- expected Vector, Entity or array of three numbers.
08:44:41.898 [script.javaScript.exception.ooliteDefined]: AddOns/PlanetFall2.oxp/Scripts/planetFall2_worldScript.js, line 778.
Sunshine - Moonlight - Good Times - Oolite
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Planetfall 2.0 (maybe)
Ok, I added line 25, which sits nicely in the middle of:
With this I found a landing site on the Ceesxe moon and approached it very slowly. Got the 'low altitude' warnings. And just when I thought I had gone through it I saw a station screen saying
Alter all I have landed the ship on something planet-like. Am now on 'Ceesxe: Mine'. As it seems the issued 'Low Altitude' warning was comparatively unimportant to the approach angle. But that is another topic.
Code: Select all
this.preload = false;
this.additionalPlanets = false;
this.globalCount = 0;
this._landingImages = {
Code: Select all
Your ship experienced some damage during re-entry. Cause: Approach to ground control interface point was too steep.
Sunshine - Moonlight - Good Times - Oolite
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: Planetfall 2.0 (maybe)
Thanks, hiran. That confirms what I thought the issue was.
So, version 2.1 is now available:
PlanetFall2.oxz
With this version, I've separated all the Feudal States code out and put it in an OXP of its own. This includes the Digebiti example of constructing a fully custom system. So, if you have Feudal States, and want to use PlanetFall2, you'll need this OXP as well.
Feudal_PlanetFall2.oxz
The goal would be for this extra OXP to be incorporated into Feudal States at some point in the future. Not important now, just wanted to flag intentions.
Anyway, big list of updates here in v2.1:
- Added methods to allow for a fully customised system to be defined (with multiple sites per planet/moon).
- Moved Feudal States override code into a separate OXP.
- Fixed missing semi-colon in shipdata.plist.
- Switched ground control interface point to be a normal ship object (rather than a visual effect) to gain better compatibility with OXP's like Telescope.
- Made the ground control interface points more visible.
- Reduced the number of monkey patches required.
- Made the maximum range at which the space compass will detect ground control interface points configurable via Library Config, and changed the default value to 200km.
- Added some conflict oxps ("Planetary Systems" and "Moons" by stranger).
- Improved compatibility with Market Inquirer.
- Tweaked spawning methods to better reflect the original PlanetFall results, where OXP station roles are not added unless override flag is set.
- Added a warning screen for players, informing them that ship maintenance services are only available on the planet.
- Added a chance of a misjump when executing a witchspace jump inside the atmosphere.
- Fixed issue where entering witchspace while the turbulence effect is still active would result in it staying active.
- Fixed bug that was setting service level to the minimum value when launching from a planetary location.
- Turbulence now doesn't end when speed is zero.
- Added a config item to manage how much the service level of the player ship is reduced.
- Added shipdata entries to allow for multiple military bases, leisure complexes, factories and dumps on the main planet in custom systems.
- Fixed issues where NaN, NaN, Nan is calculated for a vector.
- Log messages now controllable via a debug flag.
- Removed some unused code.
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: Planetfall 2.0 (maybe)
You must have been approaching the ground control interface point from mostly directly overhead. You must now approach it at a shallower angle. imagine a plane landing at a normal runway - try to emulate that approach and you should be ok.
- Cholmondely
- Archivist
- Posts: 5365
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: Planetfall 2.0 (maybe)
!
I've been wondering about the gas planet of Zarece and its large orbital cities.
I'm presuming that if one can create these cities that this would be easily assimilable with PF v.2
On another red herring, it would be interesting, when this is out of beta, to have an idea as to how what proportion of time was spent programming the basic concept - and what proportion was spent fitting it in with other OXPs (Feudal States, Galactic Almanac, Telescope, etc.).
I've been wondering about the gas planet of Zarece and its large orbital cities.
I'm presuming that if one can create these cities that this would be easily assimilable with PF v.2
On another red herring, it would be interesting, when this is out of beta, to have an idea as to how what proportion of time was spent programming the basic concept - and what proportion was spent fitting it in with other OXPs (Feudal States, Galactic Almanac, Telescope, etc.).
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: Planetfall 2.0 (maybe)
PlanetFall 2, and v1.51 as well, don’t create landing sites on gas giants. If the planet has been flagged as a gas giant, PlanetFall will do nothing.Cholmondely wrote: ↑Sun Apr 14, 2024 7:18 am!
I've been wondering about the gas planet of Zarece and its large orbital cities.
I'm presuming that if one can create these cities that this would be easily assimilable with PF v.2
- Cholmondely
- Archivist
- Posts: 5365
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: Planetfall 2.0 (maybe)
Should PlanetFall Market Saver be added as another conflict OXP?
And what is the conflict with SW's "Planetary Systems" and "Moons"? The fact that they actually move in orbit?
And what is the conflict with SW's "Planetary Systems" and "Moons"? The fact that they actually move in orbit?
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
- Cholmondely
- Archivist
- Posts: 5365
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: Planetfall 2.0 (maybe)
So one would just create the cities as cities orbiting the planet within the atmosphere - and then dock with them normally?phkb wrote: ↑Sun Apr 14, 2024 7:20 amPlanetFall 2, and v1.51 as well, don’t create landing sites on gas giants. If the planet has been flagged as a gas giant, PlanetFall will do nothing.Cholmondely wrote: ↑Sun Apr 14, 2024 7:18 am!
I've been wondering about the gas planet of Zarece and its large orbital cities.
I'm presuming that if one can create these cities that this would be easily assimilable with PF v.2
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Planetfall 2.0 (maybe)
And now I reached even some planetary factory. Nice graphics!
The approach is tedious, but that should be on purpose.
The approach is tedious, but that should be on purpose.
Sunshine - Moonlight - Good Times - Oolite
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Planetfall 2.0 (maybe)
Makes sense, yet I'd like to have some indicator on the dashboard. With the ship buffeting around and on the night side of the planet some artificial horizon is priceless.
Sunshine - Moonlight - Good Times - Oolite
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: Planetfall 2.0 (maybe)
Probably is the answer for the first one.Cholmondely wrote: ↑Sun Apr 14, 2024 7:24 amShould PlanetFall Market Saver be added as another conflict OXP?
And what is the conflict with SW's "Planetary Systems" and "Moons"? The fact that they actually move in orbit?
For the SW ones, those OXP’s add planets and moons at an incompatible point in the system generation process. It’s way too much work to retrofit PF2 to work with those methods at the moment, and using those methods means saving your game on a planet wouldn’t work, so it kind of defeats the Number 1 primary reason I took on this OXP.
There certainly no reason why the methodology I’ve used in PF2 couldn’t be retrofitted onto PlanetLand. I’m just not up for it at the moment.
Last edited by phkb on Sun Apr 14, 2024 7:36 am, edited 1 time in total.
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: Planetfall 2.0 (maybe)
Ideally, yes. Although how far into the “atmosphere” they should be placed is a hand-wave for another OXP.Cholmondely wrote: ↑Sun Apr 14, 2024 7:26 amSo one would just create the cities as cities orbiting the planet within the atmosphere - and then dock with them normally?
- Cholmondely
- Archivist
- Posts: 5365
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: Planetfall 2.0 (maybe)
?phkb wrote: ↑Sun Apr 14, 2024 7:31 amProbably is the answer for the first one.Cholmondely wrote: ↑Sun Apr 14, 2024 7:24 amShould PlanetFall Market Saver be added as another conflict OXP?
And what is the conflict with SW's "Planetary Systems" and "Moons"? The fact that they actually move in orbit?
For the SW ones, those OXP’s add planets and moons at an incompatible point in the system generation process. It’s way too much work to retrofit PF2 to work with those methods at the moment, and using those methods means saving your game on a planet wouldn’t work, so it kind of defeats the Number 1 primary reason I took on this OXP.
There certainly no reason why the methodology I’ve used in PF2 couldn’t be retrofitted onto PlanetLand. I’m just not up for it at the moment.
But I've got the entire SW suite loaded (except for PlanetLand). And PF v.2.0... (not 2.1)
I landed on Digebiti just fine. And I saved my game. And I took off just fine!
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Planetfall 2.0 (maybe)
You've got your joystick going? I am still on the keyboard only...Cholmondely wrote: ↑Sun Apr 14, 2024 7:54 am?
But I've got the entire SW suite loaded (except for PlanetLand). And PF v.2.0... (not 2.1)
I landed on Digebiti just fine. And I saved my game. And I took off just fine!
Sunshine - Moonlight - Good Times - Oolite