Muji_k
SOC-1
No problem I'm glad to be able to help...I finally figured it all out! I was not being careful about where generation started and making sure every last aspect happened only after the random number generator was initiated with the desired seed. Restructured the code to fix it.
New version has released with Muji_k's items 1, 2 and 4 fixed; 3 and 5 are now on my to-do list.
Having said this, I've run it on a few systems and I may be missing things. I've been staring at this for too long. I'd very much like other pairs of eyes over this to verify I've fixed these things. As always, please message me here or email me (contact details on TravellerWorlds) with any bugs or enhancement requests.
Many thanks again for the excellent descriptions Muji_k that let me replicate the problem and then fix it.
So I've tested the new version released on July 17 and found a few things:
- When generating a system through "New star system">"Make system and map", the Stellar Data is not being followed.
If I import the data of Regina (SPIN 1910) through "get data for this world" and try to generate the system, it creates 3 stars with size and spectral class different from what was inputted in the Stellar data field, which in this case is not much of a problem since we can change it back in the star details, but in other systems like Quiru (SPIN 2321) besides changing the size and class of the stars it also changes the numbers of stars which is kinda of a problem since we can't scrub stars, which leave us trying to find a seed with the number of stars that we want. This also happens if the Stellar data in inputted directly so it's not the "get data" process fault. - When clicking "Regenerate system (current seed)" right after creating a new star system through "New star system" the system still changes.
In the case of Regina (SPIN 1910) the position, UWP and other details of the planets change, and one of the gas giants get transformed in a normal planet, although the stellar data now stays the same, it's different from what was inputted in the Stellar data field before generating the system as stated in the previous item, but it's still the same from before pressing "Regenerate system (current seed)". Testing it with Quiru (SPIN 2321), produces similar results, with a gas giant also being transformed into a planet, and positions, UWP, and other details changing.
Further pressing "Regenerate system (current seed)" doesn't change the system anymore after the first time. Looking at the JSONs now i have no idea what might be causing this, both the JSONs from before and after the change have the same seed with integer format, and besides a few parameters like, diameter (it's different but still in the range for that UWP size), density type, density, rotation period, axial tilt, and hidroPercentage everything else for the mainworld is exactly the same. And all those parameters shouldn't affect the system formation, they should only matter for the planet map if at all, but strangely the world map is unaltered. But the parameter for the other worlds vary drastically from the before and after JSON files.