Email System (Release)

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

NorthenderPNE
Deadly
Deadly
Posts: 132
Joined: Tue Jul 25, 2006 2:32 pm

Re: Email System (Release)

Post by NorthenderPNE »

phkb wrote: Thu Jun 09, 2022 11:26 pm
NorthenderPNE wrote: Thu Jun 09, 2022 4:45 pm
[script.javaScript.exception.jsonBadParse]: ***** JavaScript exception (EmailSystem 1.7.9): SyntaxError: JSON.parse
:shock: :shock: :shock:

Err... there is only one place in the Email system that JSON.parse is used - during the "startUpComplete" event that happens soon after loading the save game. It's been there since the first version, so it's a complete surprise that somehow you're getting a "Syntax error" on it. The only thing I can imaging is if something in the missionVariable it's trying to read from is causing it to fail (although I'm struggling to come up with a valid explanation on how it could be doing that). Do you still have the save game you loaded that caused the error? Does it happen every time you load that file?
Hi phkb, it's the first time I've ever seen that error and I'm in the log files a lot recently after coming back to Oolite as I've obviously had to update the mods as many have been updated during the 2 years I've not played.

Reading your explanation above makes me think it could be my fault, as I removed the Towbar addon and any refence to it manually by editing the save with a blunt scalpel and fired up the game to make sure the save worked which it did and no other errors other than the email came up.

If I am at fault I will confess my sins and take a vow of silence for approximately 4 mins, I can't keep my gob shut any longer than that. :D :wink:
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2725
Joined: Sat Jun 11, 2011 6:07 am
Location: Nova Hollandia
Contact:

Re: Email System (Release)

Post by Wildeblood »

BUMP! Do you know that I put "Email System" into the search box, and had to scroll through seven pages of results to find this topic? You do now.

It took me so long to find this topic, I almost forgot what I wanted to ask. Hmm. Oh, yeah.
Version History
1.10 Streamlined method of reliably turning HUD on/off.
More information, please.

Also, I'm adding a link to this page from https://wiki.alioth.net/index.php/Email_System_OXP

Oh, I see it now, it's down the bottom in that stupid "quick facts" box. Excuse me for thinking a link to here would be in the section titled "links". :evil:
Make pteridomania great again!
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 5099
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Email System (Release)

Post by phkb »

Wildeblood wrote: Mon May 19, 2025 7:18 am
More information, please.
This code:

Code: Select all

this.missionScreenEnded = function() {
	if (player.ship.hudHidden == true) player.ship.hudHidden = false;
}
Post Reply