SphereCommunity
Bug + Interesting Behavior - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Bug + Interesting Behavior (/Thread-Bug-Interesting-Behavior)



Bug + Interesting Behavior - Pestilence - 06-01-2015 02:18 PM

=== A ===

https://www.youtube.com/watch?v=DTpilJvmbu0

Also, spawning works different on totally same spheres, difference: win32 & linux os
An as well, I can segfault linux version, while win32 works good.

=== B ===

http://pastie.org/private/bmvmoizfqe1ylsxfrbbxag

in Ben's win32 build (http://benserver.no-ip.ca/SphereBuild/)


RE: Bug + Interesting Behavior - Coruja - 06-01-2015 04:19 PM

the ABS function got added a few days ago, honestly I never used it yet so I cant tell you exactly what's wrong

but afaik, ABS is an intrinsic function and math intrinsic functions can only be called inside <eval>, <hval>, <fval>, <floatval>, etc

so you must change
IF (ABS( ... ))

to
IF (<eval ABS( ... )>)


RE: Bug + Interesting Behavior - Ben - 06-01-2015 08:31 PM

actually, an IF statement does not need eval. but in his case, he used it like: IF abs(blah blah) and not IF (abs(blah blah))


RE: Bug + Interesting Behavior - Pestilence - 06-01-2015 11:54 PM

Coruja

http://pastie.org/private/peu1ml3lh6r1rcltj0hg

(06-01-2015 08:31 PM)Ben Wrote:  actually, an IF statement does not need eval. but in his case, he used it like: IF abs(blah blah) and not IF (abs(blah blah))

http://pastie.org/private/6ofb5nm2pmzz6h2l8sa

It's not hard to satisfy both of you Smile


RE: Bug + Interesting Behavior - Coruja - 06-02-2015 08:18 AM

I found a small internal problem that makes ABS() intrinsic function always return 0
it will be fixed on next nightly build Smile