![]() |
Issues with Alternate Outcome Rarity
Resolved
This is a little confusing. One of my artists brought to my attention that outcomes that are supposed to be less common are, in fact, more common. For example I have a pet that has an alternate outcome. I set the outcome chance to be 1 out of 10. However, it seems to have reversed it so that the alternate's chance of happening is 9/10, leaving the original adopt to have an outcome of 1/10. I don't really get where this is going wrong, so I'm afraid I cannot provide more information than this. Basically the "alternate outcome chance" is doing the opposite of what it should. |
Re
Quote:
Also, when you check the breed adopts in your database, does the probability in the probability column look normal? Edit: Here's what I suspect: Apparently, the ACP (at least for my version) uses an integer percent for probability. This percentage is based on 100, so 1/10 would be 10/100. If you just input "10", that's your 1/10 probability. The ACP might do something funny with fraction values? O.o |
I'm not putting in a fraction, I am putting "10" in the box. The table looks as it should...so I'm not sure what's going on.
|
Re
Quote:
PHP Code:
my class_probability code: PHP Code:
Does your probability work fine for other things... say, item consumption? |
The only difference between the codes is in the .../classes/class_probability.php file I have this at the top (where as yours does not);
PHP Code:
|
Well the alternate outcome isnt generated from probability class, that one is used to generate one adoptable from several possible adoptable species(ie. when your two adoptables can produce offspring of multiple species).
The actual alternate status generation code is located at class_adoptable.php, in this method: PHP Code:
|
HoF, you mention that it should work for pets adopted through the adoption center...does this also apply to pets adopted via adopt shops (as the issue has only really been noticed with those purchased from stores)?
Edit: Fixed Apparently there were some discrepancies in how adoptables from shops were dealt with in regards to the alternate outcome, so I replaced the getAltStatus in the file .../classes/class_stockadopt.php with the one from .../classes/class_adoptable.php and now it seems to be functioning the way it's supposed to. Edit 2: Okay I *think* I fixed it...I'm not yet sure. I'm still testing it. |
http://www.mysidiaadoptables.com/for...20&postcount=6
This might interest you. I noticed the same problem when I first made my adopt shop. All pets were coming out with their alternate images. I think this fixed the issue but havent tested it completely. |
Re
Quote:
|
Well adoptable shops surely dont work the same way as standard adoption, as it bypasses adoption conditions and the behaviors may be strange to you. Its possible to tweak adoptable shop to work the way you expect it to work though, and its not very difficult.
|
All times are GMT -5. The time now is 11:36 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.