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
t_crops not growing
Author Message
Myrdin
Apprentice
*

Posts: 13
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #1
t_crops not growing
i downloaded the new "pre-release", set it up, works fine... but somehow the t_crops are not growing. reap the fruit of full grown plants is possible, they properly reset to first grow state, but then they won't grow, from none of the growing stages.
I doublechecked the scripts, everything seems to be fine (community script pack)
investigation shows, timer=-1 or timer = 0
is this a sphere bug or is this pushed out of hardcoded to scripting? and if so, is there a script with default behaviour?

besides: i tried cotton, wheat, grapevines flax,... none worked properly
07-06-2013 12:09 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: t_crops not growing
Looks like that the timer in t_crop items is stored in :


MORE1 = Time in seconds before this item will grow to the next stage (this overrides the default server defined number)
07-06-2013 12:31 AM
Find all posts by this user Like Post Quote this message in a reply
Myrdin
Apprentice
*

Posts: 13
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #3
RE: t_crops not growing
I tried setting more1 to different numbers, doesn't work. besides, timer is not 0 or -1 from the beginning. seems like somehow @timer isn't called or as if there is no function to update the item to the next stage, resulting in timer =0 or timer = -1 and nothing more happens. same result after manually setting timer to 1 (which results in timer around 400 (ie 385 or 426)). the timer counts down, nothing happens, timer is 0 or -1.
tdata2 is 0, tdata3 is the next growing stage and tdata1 is the first growing stage, which should appear after harvesting the fruit. (last growing stage has tdata2 set to the fruit id and tdata3 set to 0)

everything seems to be as it should, but somhow the items just stuck.
btw, i also tried with different attr values, to enshure its not a conflict with nodecay, nevermoveable, statics or other set attr.

?could it be some conflict with the ini settings? will try thisone next if no one has an idea
(This post was last modified: 07-06-2013 05:24 AM by Myrdin.)
07-06-2013 05:21 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #4
RE: t_crops not growing
Try this:

Code:
[TYPEDEF t_crops]
ON=@Timer
   IF !(<ATTR> & attr_invis)
      IF (<TDATA2> != 0) && (<TDATA2> != 0ffffffff)
         ID=<TDATA2>
      ENDIF
      UPDATE
   ELSE
      RETURN 0
   ENDIF
07-06-2013 06:03 AM
Find all posts by this user Like Post Quote this message in a reply
Myrdin
Apprentice
*

Posts: 13
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #5
RE: t_crops not growing
thx, with a little modification it works.
Code:
[TYPEDEF t_crops]
ON=@Timer
   IF !(<ATTR> & attr_invis)
      IF (<TDATA2> != 0) && (<TDATA2> != 0ffffffff)
         ID=<TDATA2>
      ENDIF
      UPDATE
   ENDIF
   RETURN 0
(return 0 enshures the timer is reset, could also be done explicit...)

while testing i realised:
regen3 does not influence how fast crops will grow,(like i thaught it would) but how fast food is consumed!
therefor setting regen3 to 1 results in characters consuming 1 food every second!!!!!!! -> you are hungry... you are starving...
is this the way it's ment to be? and where is the ini value for setting the growing time? (I didn't find anyShock)
07-06-2013 07:21 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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