Ark wrote:Maybe we should write a guidline of some kind about the maintenance of abandoned oxps so we can avoid similar situations in the future.
McLane did it right. He posted his intentions two weeks ago. I even read it, but it just slipped my mind. I'll figure it out with McLane that version 1.3 contains the best of both versions.
---
This time I did it proper. Jonhsmith returned my message and allowed me to upload an improved version of lovecats.
I made it mission clash proof. (or in my words MOP proof). Doing this I wondered why he asks for the conhunt mission and the nova mission to be finished. The first I don't understand, the second I can.
Problem is, again, the mission clash. On oolite 1.69 and newer the OXP's execute after the internal missions and a MOP mission will not overwrite the internal mission briefings. However, in Oolite 1.65 the internal mission runs after the external OXP's. This way there is always a risk that the nova mission briefing will overwrite that of an external mission.
I only see two solutions:
1) Check the nova mission is ended (also for deposed)
2) Add the following code:
Code: Select all
{
conditions = ("mission_nova undefined", "mission_wedding_started equal YES");
do = ("set: mission_novacount 0");
},
This forces the jumpcounter that starts the nova mission to zero as long the novamission was not started yet and lovecats is running. This will effectively postpone the nova mission till after completion of this mission. (The whole code has a galaxy-4 check so that is not needed again in above conditions)
The same can be done with deposed. For the mission it is bad in my opinion, but it is the only way to avoid a clash between mission briefings when playing on oolite 1.65 or older.
------
Looking at the nova mission, I also discovered a bug in my UPS-courier. Because of the random character of those missions it is theoretical possible that I am placing a mission in a system were the sun has gone nova. A target ship in such a system will just evaporate and the player will never be able to reach the main station in such a system. That mission will then never finish as intended. (I now added a check in the code for this rare event)
Thinking of this, any mission played in system 4 after the nova mission runs the risk that one of the key systems has gone nova and thereby makes it impossible to finish. A good reason not to wait for the mission till after the nova mission, but preferably do it before and postpone the nova mission. Anyone seeing any problems with this?