Page 1 of 1
[0.17.23] Tooltip causes crash to desktop.
Posted: Fri Mar 29, 2019 10:50 pm
by Earendel
Attached is a mod showing the problem. You can fire the rocket without a problem, but if you mouse-over the rocket ammo it crashes.
It's probably a recursion problem. Adding show_in_tooltip = false doesn't seem to fix it.
Re: [0.17.23] Tooltip causes crash to desktop.
Posted: Sat Mar 30, 2019 3:21 am
by TruePikachu
Please upload a log as well.
Re: [0.17.23] Tooltip causes crash to desktop.
Posted: Sun Mar 31, 2019 1:21 am
by Rseding91
Thanks for the report. The problem is you've defined a recursive trigger effect: projectile A creates smoke B which creates projectile A and it repeats forever if specific conditions aren't met.
I could add in some non-trivial logic in an attempt to detect a trigger effect like this and error at startup but that doesn't make the scenario you're trying to do work.
For now, I'm going to just say: don't make recursive triggers. If it continues to be a problem in the future I'll enforce it doesn't happen.
Re: [0.17.23] Tooltip causes crash to desktop.
Posted: Sun Mar 31, 2019 11:01 am
by Earendel
That's unfortunate, the recursion is intentional and the weapon functions as desired apart from the crash.
Would it be possible to just make the show_in_tooltip=false setting terminate the tooltip recursion so that it does not crash?
Re: [0.17.23] Tooltip causes crash to desktop.
Posted: Sun Mar 31, 2019 5:07 pm
by Rseding91
I'll look into why that part isn't working (the show in tooltip).