Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
这也适用于你已经玩过的没有模式的世界。
一旦模式被应用并且行星被添加,它不能被撤销。
从行星加法器得到一个想法。谢谢教皇斯诺鲍。
*如何工作*
这种模式确保了各种行星的存在。否则,这种模式将丢失的行星添加到固定的(种子)随机位置。目标距离为80000公里至170000公里。
You could add a flag of some sort per save file to have the mod only run once on the startmap opening, but then you have the issue of someone opening the starmap and not saving the map falsely settings the flag.
If I understand correctly your suggestion, either using a generated GUID for the seed or not giving it zero seems to be able to achieve the randomization goal.
I think it may be necessary. If this mod is random, you can reload it if you don't like the planet position. However, I wanted to minimize the game balance adjustment factor and didn't want repeated loads. So randomization is not originally intended. I tried to add the same location if it was the same map.
If there is a way to get the map seed number, I can apply it as a seed instead of 0. I am not familiar with Unity etc. :) As mentioned in 2, there are some modifications to the seed selection method to fully reflect the existing planet position.
4)
Thank you for your many ideas :)
I agree with you. However, please understand that only some of them were applied first.
1)
Yes, in fact this mode was just for me, but I need to minimize overhead to share this. So I updated the planet detection logic to O(N). This is because it is always triggered when the starmap is opened. Although N (<= 30) is small enough.
2)
This idea is also a good suggestion, but this logic is only performed once on a map. So instead of taking this risk for testing after applying it, I have reinforced the random part. As a result, it will be a bit slower. :P
Some pointers:
1)
You could avoid unnecessary computation by just getting the list of planet IDs on the starmap and comparing them to a list containing each unique planet ID to get the missing planet IDs i.e.
Starmap: 1,2,3,3,5,6
Unique: 1,2,3,4,5,6,7
Difference: 4,7
2)
Instead of the do while you could simply generate a random row as you are doing, but instead of then generating random percentages, simply do as above and generate a random number in the valid range, but excluding the locations of the planets at that distance/row. That would get the performance down to O(N) from O(N2) and get rid of all those flag Booleans :P
3)
Also might be an idea to generate a GUID for the initialization of the Random() seed instead of always using 0 for more randomingnessings.
4)
Keep up the good work!
No, It is compatiable with other mods. Planet Adder also.
Is it incompatible with each other? I'm a bit confused here.
机翻加阅读理解
大概意思就是星图不会再受地图种子影响了(不管是什么地图,一定有固定的行星),
启动mod后会添加行星,没有撤退可言(添加的行星不能撤销,mod也只需要启用,不需要设置)