
About Useful MFDs - I need time to look it, OK?
Moderators: winston, another_commander
Thanks! I had a look and compared it with your MFD, but it was too different from it for me to work out what the issue was.
Code: Select all
if (solarwind != null) txt += ", Solar Wind: "+solarwind.toFixed(3)+" LY/min";
Code: Select all
// if (solarwind != null) txt += ", Solar Wind: "+solarwind.toFixed(3)+" LY/min";
- opened the script, and never got to line 51, because right at the top I found this:-18:44:49.234 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (Here be Dragons 1.0): TypeError: this.$explorerClub_data is null
18:44:49.234 [script.javaScript.exception.unexpectedType]: D:\Oolite/oolite.app/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns/oolite.oxp.stranger.HereBeDragons.oxz/Scripts/here_be_dragons.js,
line 63.
19:07:48.469 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (Here be Dragons 1.0): TypeError: this.$explorerClub_data is null
19:07:48.469 [script.javaScript.exception.unexpectedType]: D:\Oolite/oolite.app/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns/oolite.oxp.stranger.HereBeDragons.oxz/Scripts/here_be_dragons.js,
line 51.
19:08:43.538 [script.javaScript.exception.unexpectedType]: ***** JavaScript exception (Here be Dragons 1.0): TypeError: this.$explorerClub_data is null
19
You're trying to copy a mission variable before it exists. MVs are created* when the player saves the game for the first time. So, I came to tell you about it, and discovered you already knew...this.startUpComplete = function() // set map after System Makeup processed planet textures!
{
this.$explorerClub_data = JSON.parse(missionVariables.explorerClub_record);
this.$setupSystemDisplay();
this.$setupLocalDisplay();
}
Now, I think the thing to do is, from within your startUpComplete function, reach into the Explorers' Club script and tickle its playerWillSaveGame so it creates the mission variables when you need them. Thus:stranger wrote: ↑Wed Apr 18, 2018 4:25 amHere be Dragons has some oddities.
If you already have oolite-save with Explorer’s Club written data, Here be Dragons will import it and show map as intended. But if you create new pilot there are no any Explorer’s Club data in memory and Here be Dragons will display all systems with full info. Just save and load to fix it.
Another minor issue – Here be Dragons synchronizes with Explorer’s Club data only after restarting from oolite-save. You may visit several systems en route and Explorer’s Club will mark these systems as visited, but Here be Dragons will treat these systems as unvisited yet and hide such systems beyond 7 LY horizon. The same solution: save and load. Or take it easy. It is not bug, it is feature. Synchronization of your private navigation database with Galcop database possibly requires restart of your ship software.
But, don't trust anything I write - I haven't looked at this stuff in 9 years.worldScripts["Explorers Club"].playerWillSaveGame();
If you want your OXP to go to the Expansion manager that procedure has changed when we lost the domain oolite.org.stranger wrote: ↑Sun Jan 21, 2024 4:22 am@Wildeblood
Thank you!
Just tested it locally. It works!
***
but I have issue with OXZ uploading. I can't see log in prompt on new oolite.space site
so this is direct link to updated HereBeDragons OXZ:
https://wiki.alioth.net/img_auth.php/a/ ... ragons.oxz