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
Mining weird behaviour
Author Message
tleilax
Journeyman
*

Posts: 56
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2012
Reputation: 0



Post: #1
Mining weird behaviour
For some reason, nobody can mine any silver ore after updating to 56b form 55i. Could you check that everything is right?

Code:
[REGIONRESOURCE mr_silver]
// t_rock
SKILL=50.0,80.0
AMOUNT=3,6
REAP=i_ore_silver
REGEN=60*60*10

Code:
[AREA Britain province] //ok
FLAGS=0100
CLASS=11
RECT=1136,1228,1610,2016  
RECT=1080,1496,1136,2016
RECT=1610,1332,1740,1904
P=1261,1666
GROUP=ALLMAP
RAINCHANCE=019
RESOURCES=r_default_rock, r_default_water, r_default_tree
EVENTS=r_home_human

Code:
[REGIONTYPE r_default_rock t_rock]
// Random rocks
RESOURCES=100.0 mr_nothing
RESOURCES=100.0 mr_iron
RESOURCES=20.0 mr_sand
RESOURCES=30.0 mr_copper
RESOURCES=20.0 mr_zinc
RESOURCES=20.0 mr_sulfur
RESOURCES=5.0 mr_vash
RESOURCES=18.0 mr_tin
RESOURCES=15.0 mr_gold
RESOURCES=7.0 mr_rose
RESOURCES=11.5 mr_agapite
RESOURCES=8.5 mr_silver
RESOURCES=5.0 mr_verite
RESOURCES=4.0 mr_Valorite
RESOURCES=3.0 mr_bloodrock
RESOURCES=2.0 mr_blackrock
RESOURCES=0.7 mr_mytheril
RESOURCES=0.5 mr_diamond
RESOURCES=0.3 mr_ruby
RESOURCES=0.5 mr_citrine
RESOURCES=0.5 mr_emerald
RESOURCES=0.5 mr_star_sapphire
RESOURCES=0.5 mr_sapphire
RESOURCES=0.5 mr_amethyst
RESOURCES=0.4 mr_tourmaline
RESOURCES=0.5 mr_diamond_5
RESOURCES=0.3 mr_diamond_3
RESOURCES=0.5 mr_amethyst_3
RESOURCES=0.2 mr_sapphire_2
RESOURCES=0.2 mr_amethyst_4
RESOURCES=0.2 mr_citrine_4
RESOURCES=0.1 mr_amber
RESOURCES=0.01 mr_shadow

From what I've checked, they can only mine everything till gold and then every gems. Nobody has ever seen silver/gold/rose etc..

I've tried putting only RESOURCES=100.0 mr_silver into that regiontype - after restarting sphere, nobody could mine anything.

Thanks for any ideas.
01-03-2014 04:35 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: Mining weird behaviour
At first, you should know that the sum of ALL of these values MUST be 100, as they are percentajes, try redoing them and trying with mining=100.0
01-03-2014 05:51 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #3
RE: Mining weird behaviour
(01-03-2014 05:51 AM)XuN Wrote:  At first, you should know that the sum of ALL of these values MUST be 100, as they are percentajes, try redoing them and trying with mining=100.0
I don't know NOW, but before, it didn't need to SUM 100.

Don't know how he is testing, but with lower mining than silver requires, he will never find silver hahahahha

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
01-03-2014 06:25 AM
Find all posts by this user Like Post Quote this message in a reply
tleilax
Journeyman
*

Posts: 56
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2012
Reputation: 0



Post: #4
RE: Mining weird behaviour
Yea, the problem is that we upgraded from 55i - you didnt need to have sum of 100 there. I'll test it later, thanks for the feedback.
01-03-2014 06:26 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #5
RE: Mining weird behaviour
It is NOT mandatory, but these values will work as they are supossed to, it can be a sum of 100, 200, 1000... whatever, but these values are the reflection of a percentaje, so if you want a 5% chance of verite ore, you are not geting it because the sum is not 100-based. And, of course, you have to check your mining skill, if you are still unsure about everything: comment out all of the ores except mr_iron with a 100% chance, and you will see that it is working, your problem is that you have a very high mr_nothing chance.
01-03-2014 06:35 AM
Find all posts by this user Like Post Quote this message in a reply
tleilax
Journeyman
*

Posts: 56
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2012
Reputation: 0



Post: #6
RE: Mining weird behaviour
Good, I also had to update skillmake on every ore - that was another thing that wasn't working on 55i. Thanks!
01-03-2014 07:57 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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