ok, I fixed the crashing part here: https://github.com/simtr/The-Powder-Toy/commit/75034de5a40effc76bcec1ae5f1772ebf62ffd22 tothemyers helped by pointing me in a totally different direction than I was trying before :D. I still didn't fix the bug where the SOAP attaches to the TRON though, I tried but couldn't figure it out.
Seems right on spot, tothemyers. Isolated crash: id:1510763
To mac users, or anybody that experiences a crash while using this save, I think it's caused by the antimatter creating photons - the Simulation::create_part(...) function calls Simulation::detatch(...) which creates a memory access issue.
Tronny tron tron is tronning!!!! :D
So, basically, if TRON has a tmp of 6252, it freezes in place and turns orange. Wow. So amazing.
@coolkid215 I tried that, it doesn't appear to do anything. I've been examining the code, and so far it appears to be a bug involving the behaviour of the antimatter - the TRON is unimportant, and it's not a matter of a collision between AMTR and SOAP - disabling the ability of AMTR to destroy soap removes the glitch alltogether.
lol, anyone who is bluescreening, delet the antimatter, unpause, then ctrl z and it should work
@jacob1 Unfortunately, I am not using a Mac, but I do have one... minus a screen. Anyways, I'll try and see if I can find where exactly it crashes for me. If I can, I will find the line that makes it crash. I'm not exactly a PT code vetran or anything, I literally just compiled it yesterday, but who knows, maybe I can help in some way.