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: 123

Views: 156

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: 1473
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: 1687
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: 544
Comments: 5
Ratings: 1
Date added: 2015/08/06 17:19:06
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Test (Xray said to me)
Rating: 5
Filesize: 8.32 kB
Downloads: 427
Comments: 3
Ratings: 1
Date added: 2020/11/04 22:16:35
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: My entry for xray's contest (edited)
Rating: 5.375
Filesize: 102.92 kB
Downloads: 577
Comments: 4
Ratings: 2
Date added: 2016/08/19 13:20:18
Made with: Algodoo v2.1.0
Rating: rated 5.4
download
Title: my entry for xray's contest
Rating: 5
Filesize: 104.83 kB
Downloads: 616
Comments: 5
Ratings: 1
Date added: 2016/08/11 12:29:49
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 NOT NOT NOT NOT NOT NOT NOT NOT NOT NOT an expert but all i know is that once there is alot of fuzz it crashes
Last edited at 2026/06/29 13:11:23 by MIGDANALDS
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