[script.javaScript.exception.22]: ***** JavaScript exception: TypeError: this.guiScreenChanged is not a function
[script.javaScript.exception.22]: AddOns/Galactic_Navy.oxp/Scripts/galnavymain.js, line 201.
[script.javaScript.load.failed]: ***** Error loading JavaScript script AddOns/Galactic_Navy.oxp/Scripts/galnavymain.js -- could not run script
[script.load.notFound]: ***** Could not find a valid script file named galnavymain.js.
you got some basic errors there... none of them reveal though, why it is not accepting that as a function.. I'm not even sure you need (to) We need to see the entire script file..
Will generate an error when the player is not docked... because dockedStation will be Null, and then you effectively call a property of null which is illegal and will generate an Exception.
if(player.ship.docked) //we check first for if the player is docked...
{
if(player.ship.dockedStation.name == "Navy SecCom Station")
this.SecComBusiness();
}
Ahh i just figured out what you did wrong... you have this.guiScreenChanged() put inside another function.. it means the function is never declared thus unknown to the system, or as it writes, not a function. Still we need the entire script...I'm not even sure you are pasting the correct lines from where to error originates... as you should have just declared that funtion, inside another according to what you pasted.. however.. you still need to show us the entire script file.
Okay, I have to admit that I'm not quite sure what you're trying to say.
I need to have it so that it checks if the player is docked for both function calls. I didn't notice that until after you mentioned the docking bit.
However, this.guiScreenChanged = function(to){} is as the wiki has it. I also know that it's this line that's generating the error as that's the only time I'm using that event handler.
I'm using the code below to produce the system data screen like the one above whenever a different system is selected in the long or short range charts.
The only problem is the planet texture doesn't refresh until I reselect the system data screen again.
Can't help with a fix, but your frog doesn't look very blue (or does the description refer to their state-of-mind and general outlook on life?)
Said frog doesn't look very cheerful. Maybe that's where the "blue" comes from.
And he's donning a rather primitive dress. I would think they'd trade in the leather loincloths for suits on a TL 14, rich industrial corporate state.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
To go back to the original question - I'm not sure that there is a way at the moment. There is this.guiScreenWillChange(to, from), but that only fires for selected gui screens (not including the system data one).
Perhaps it may be worth requesting that function triggers for all screens, or at least for this one?
Can't help with a fix, but your frog doesn't look very blue (or does the description refer to their state-of-mind and general outlook on life?)
Said frog doesn't look very cheerful. Maybe that's where the "blue" comes from.
And he's donning a rather primitive dress. I would think they'd trade in the leather loincloths for suits on a TL 14, rich industrial corporate state.
Not just a suit a space suit
Download Fighter HUD, Stingray and System Redux from the EliteWiki
Can't help with a fix, but your frog doesn't look very blue (or does the description refer to their state-of-mind and general outlook on life?)
Said frog doesn't look very cheerful. Maybe that's where the "blue" comes from.
And he's donning a rather primitive dress. I would think they'd trade in the leather loincloths for suits on a TL 14, rich industrial corporate state.
Not just a suit a space suit
Okay, this is freakin' gorgeous, CaptKev! Will have me straying to the F7 screen a lot more often once you release, and planet textures be hanged. I only care about those when I'm actually orbiting the planet anyway.