Capt. Murphy wrote:In response to this post in Scripting Requests:
Wildeblood wrote:Expose the galaxy seed numbers as read-only, so that scripts can confirm they are actually dealing with the galaxy configuration the scripts' authors assume they are. (There is no Oresrati in my ooniverse.)
this code snippet should do the trick - not fully tested as yet....
if (System.infoForSystem(galaxyNumber, 0).coordinates.distanceTo([0.8,18,0]) !== 0)
{this.alternateOoniverse = true;}
Thank you for your interest in the Galaxy Nine/Multiverse Explorers' Club, Capt. Murphy. (Club motto: 2048 non sufficit, Mr Bond.) If I'm reading it correctly, your suggestion is to check that system number 0 is in it's "correct" position. I had thought of that approach long ago, and discarded the idea because: the player may have merely shifted the galaxy number, not the seed values, and even accounting for this simple exception leads to code bloat; it only allows to check for a particular ooniverse, selecting among several leads to extreme code bloat; and I doubt the co-ordinate positions are sufficiently granular - sooner or later a completely different galaxy will have the same position for system 0.
Since I needed to address this problem to make the GalDrive Programmers, I settled on the simpler solution of adding a mission variable that explicitly states ooniverse = "elite". That is, this saved game is assumed to use the traditional galaxy seeds from Elite (with their traditional numbers*).
You can make OXPs like Explorers' Club multiverse compatible by checking for this mission variable at start-up and affixing its contents into the names of any relevant mission variables. So, for example,
missionVariables.explorerClub_record could become
missionVariables.explorerClub_elite_record or
missionVariables.explorerClub_murphiverse_record. (If only changing phone companies were as easy.)
* Now that I think about it, including a shift number from 0-7 probably would have been a good idea, and I should have used "elite-0". Good one, that's solved another problem. Now you can start mapping your personal ooniverse and not cause too much drama if you haven't decided which galaxy to use as the starting point.