Browse Search Popular Register Upload Rules User list Login:
Search:
xray or any other xpert help

Image:
screenshot of the scene

Author: ie-dot_inc

Group: Default

Filesize: 52.5 kB

Date added: 2026-06-09

Rating: 5

Downloads: 73

Views: 97

Comments: 7

Ratings: 1

Times favored: 0

Made with: Algodoo v2.2.4

Tags:

Scene tag

Can you reveiw the code of the fuzz and determine if my game crasheing randomly from them is my own flawed code or just my computes? I've tried multiple PCs and it crashed them all.
Please log in to rate this scene
edit
Similar scenes
Title: pokemon types for Xray [extra ones for good measure ]
Rating: 4.5
Filesize: 156.17 kB
Downloads: 1428
Comments: 7
Ratings: 2
Date added: 2022/07/21 18:28:46
Made with: Algodoo v2.1.0
Rating: rated 4.5
download
Title: thanks Xray!!!
Rating: 5
Filesize: 70.03 kB
Downloads: 1662
Comments: 3
Ratings: 1
Date added: 2014/01/13 04:19:52
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Something For Xray
Rating: 5
Filesize: 0.66 MB
Downloads: 518
Comments: 5
Ratings: 1
Date added: 2015/08/06 17:19:06
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Basic Logical Calculator
Rating: 5
Filesize: 18.39 kB
Downloads: 668
Comments: 0
Ratings: 1
Date added: 2019/09/15 15:41:27
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Test (Xray said to me)
Rating: 5
Filesize: 8.32 kB
Downloads: 403
Comments: 3
Ratings: 1
Date added: 2020/11/04 22:16:35
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Kid in a Box
Rating: 5
Filesize: 0.59 MB
Downloads: 732
Comments: 5
Ratings: 1
Date added: 2024/02/27 22:56:40
Made with: Algodoo v2.1.0
Rating: rated 5
download
im NOT an expert but i see whats going on actually its because the balls keep multiplying and they lag the game more and more, causing your pc to crash!
im probably in the expert group but all i know is that once there is alot of fuzz it crashes
this doid not help.
doid
Hello! Not an expert here but I've looked into this and right away I see one fatal flaw: Since the code uses rand.normal to calculate the mutation rate, it's possible for mutation to go negative -- this also explains why it doesn't crash every generation but rather the more fuzz you have the more likely it is to crash.

If _mutate goes too far into the negatives, the check to spawn more entities might trigger at or below 0.25m radius, causing an infinite loop. As the entities are spawned in the loop they then multiply themselves, doing the tick again, and again, and again until the end of time.

The fix for this should be really simple! -- Replace this line:
_mutate = _mutate + (rand.normal * _dnaPolution);
with this:
_mutate = math.max(0, _mutate + (rand.normal * _dnaPolution));

I really hope this helps. This worked for me so..!

But also just to confirm, it's not your computer. :lol:
Hello, also not an expert. You keep crashing because your device is a potato!:D
you could probably use rand.uniform01 instead of rand.normal or just math.sqrt(rand.normal ^ 2) to make it abs