![]() |
Gender Ratio Mod for v1.3.1
1 Attachment(s)
It is about time to upgrade some of my old Mods. This one is the simple Gender Ratio addon, which I have been thinking about whether to add into the official package. Lemme know if you want this to happen, it is really an easy modification anyway.
I've provided a zip file that contains all necessary modifications to make in your script file in order to get this to work. Incase you have a highly customized site, you may install this Mod manually by following the instruction below. To begin with, insert a new column into table prefix.adoptables as usual: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Thaaanks *will use*
|
Trying to install this for CH, and I'm getting the following as an error:
Quote:
PHP Code:
|
1 Attachment(s)
My goodness, what a mistake. I accidentally typed an arbitrary string(generated from strongpassword.com) into the /admincp/adopt.php file... *sigh* Now just download the new file and it should work nicely:
|
Thanks, it works now. ;3
|
HI, i have a problem when it comes to breeding, the offspring dont have a gender, dont know if the problem is how i created the parents, or if is the code...
i usually create 2 adopts 1 100% female and 1 100% male. my site is based on pokemon, so in order to add the shiny version i do that, and works perfectly when adopting, but when it comes to breeding is like the code cant decide if the offspring is going to be male or female.... is there a way to fix that? right now i use the original breeding code, but i have to change some of the images manually, because it use the male image on a female. |
You have to do the same thing to the breeding script that you did with the adopt script.
|
i did change it, i followed HoF instructions, and after that, the offspring dint get a gender. so i reverted the changes that i made to the breeding code.
|
Quote:
|
What does this do? :)
|
Can you post your breeding script for me?
|
sure: this is the edited code, and i only edited the area with the gender.
Code:
//***************// |
Change this:
Code:
$adopts->insert("owned_adoptables", array("aid" => NULL, "type" => $types[$typerand], "name" => $types[$typerand], "owner" => $loggedinname, "currentlevel" => 0, "totalclicks" => 0, "code" => $code, Code:
$adopts->insert("owned_adoptables", array("aid" => NULL, "type" => $types[$typerand], "name" => $types[$typerand], "owner" => $loggedinname, "currentlevel" => 0, "totalclicks" => 0, "code" => $code, |
THANK YOU! everything is working perfectly now! =D
|
Hi, there seems to be a problem with the gender ratio mod. Everything worked great and all, except that it seemed to have caused some redirecting errors after adopting a pet.
Usually, after the adoption; users would be redirected to a page where they'll be told to either manage or feed their adoptables. Prior to installing the gender ratio mod, this part had no problems. But after installing it- this error message saying "invalid adoptable id specifiedThe ID specified does not match any adoptable in our system. Sorry. If you wish, you can adopt a pet." appears instead. The url, which usually displays the id number of the adoptable- did not generate. What I mean by that is that it turns out like this>> "website.com/myadopts.php?act=manage&id=" when it should have been "website.com/myadopts.php?act=manage&id=1" (example). Can anyone provide a fix to this problem? |
I see, it appears that the adoptables id is not loaded correctly. I do not think anyone else has reported this problem a few months ago, so there's a good chance that you installed the mod incorrectly. Would you mind showing me your doadopt.php file after installing this mod? I can fix it for you then.
|
All times are GMT -5. The time now is 03:26 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.