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-nmm7 (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-nmm7 (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-nmm7 (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
Crafting with board or log
Author Message
Coruja
Sphere Developer
*****

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

Dimension Shard

Post: #6
RE: Crafting with board or log
Sure, that's weird. But this should be a bit tricky to fix

The logic is: every item inside containers have an internal number and the code will search for itens inside this container using an loop by order (1, 2, 3, 4, ...). So if the board is number 2 and log is 10, and board can be used as log, the code will return "board" and stop the loop because the desired item was already found

So to the fix will be tricky because sphere should find a way to deal with these numbers correctly without cause any performance decrease (eg: heavier loops). Just to test if the fix that I'm planning will work, try craft the first board, then pickup the log and drop it on backpack again. Maybe this will change the item internal order inside the backpack, making the next loop find it first
(This post was last modified: 09-17-2019 07:19 AM by Coruja.)
09-17-2019 07:15 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Crafting with board or log - Jhobean - 09-04-2019, 09:07 PM
RE: Crafting with board or log - Coruja - 09-05-2019, 10:27 AM
RE: Crafting with board or log - Jhobean - 09-07-2019, 10:01 AM
RE: Crafting with board or log - Jhobean - 09-07-2019, 11:55 AM
RE: Crafting with board or log - Jhobean - 09-17-2019, 12:04 AM
RE: Crafting with board or log - Coruja - 09-17-2019 07:15 AM
RE: Crafting with board or log - Jhobean - 09-17-2019, 09:42 AM
RE: Crafting with board or log - Coruja - 09-17-2019, 12:39 PM
RE: Crafting with board or log - Jhobean - 09-17-2019, 09:19 PM
RE: Crafting with board or log - Jhobean - 09-24-2019, 08:28 AM

Forum Jump:


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