Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Dupe Spawn Fix: CreatureSpawns-Subnautica.cs #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Oracle624
Copy link

I looked in the code and all the reports. I noticed all the main creature dupe reports were of the ones with count before the probability. I will admit I am no programmer however logically I believe that the probability of the spawns checks for each count. while having count above probability it checks count first so an an example. count is 12 and probability is .01f idk the f I assume its % so a 1% chance of spawning 12 of the creature. while having probability first would seem to be like a 1% chance of spawning 1 of them and that triggers 12 times. idk makes sense to me could be complete nonsense. I will use my updated file and see if I get the dupe bug. I haven't played with it before. it will be a clean save and Ill give a update if it happens, and if u dont hear from me chances it worked.

I looked in the code and all the reports. I noticed all the main creature dupe reports were of the ones with count before the probability. I will admit I am no programmer however logically I believe that the probability of the spawns checks for each count. while having count above probability it checks count first so an an example. count is 12 and probability is .01f idk the f I assume its % so a 1% chance of spawning 12 of the creature. while having probability first would seem to be like a 1% chance of spawning 1 of them and that triggers 12 times. idk makes sense to me could be complete nonsense. I will use my updated file and see if I get the dupe bug. I haven't played with it before. it will be a clean save and Ill give a update if it happens, and if u dont hear from me chances it worked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant