The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug + Interesting Behavior
Author Message
Pestilence
Apprentice
*

Posts: 16
Likes Given: 3
Likes Received: 0 in 0 posts
Joined: Oct 2013
Reputation: 0



Post: #1
Bug + Interesting Behavior
=== 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/)
06-01-2015 02:18 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: Bug + Interesting Behavior
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( ... )>)
06-01-2015 04:19 PM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #3
RE: Bug + Interesting Behavior
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))

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
06-01-2015 08:31 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Pestilence
Apprentice
*

Posts: 16
Likes Given: 3
Likes Received: 0 in 0 posts
Joined: Oct 2013
Reputation: 0



Post: #4
RE: Bug + Interesting Behavior
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
06-01-2015 11:54 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #5
RE: Bug + Interesting Behavior
I found a small internal problem that makes ABS() intrinsic function always return 0
it will be fixed on next nightly build Smile
06-02-2015 08:18 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)