Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Gender Ratio Mod for Mys v1.3.4
Well since I've had some new users requesting this plugin, I decide that its necessary to make a Mys v1.3.4 compatible version of the Gender Ratio Mod. I've included an rar file at the end of this post for you to download the files, make sure to enter the directory /install and execute the file /install/genderratio.php so that the column genderratio will be inserted successfully into the database.
Incase you cannot use the default files I have provided for some reason, I am writing a simple guide for manual installation of this Mod. It is quite easy, and requires less script edits than the older version. Anyway, to begin with, insert the column genderratio into your table prefix.adoptables. Its type is INT, default value should be 50: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
This is a reusable method, which means that both adopt.php and breeding.php can make use of it without writing the same block of code twice. Another reason why OOP pwns. So this marks the end of manual installation process, its a lot simpler than last time isnt it? Anyway I hope you enjoy the Mods I am making for the script, I've decided to work on a few more new plugins for the script in the next few days. Lemme know if you have any suggestions to make, please do lemme know.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#2
|
||||
|
||||
I have a few questions :3
1) So does this allow for there to be, approximately, a 50% chance of a male or female to be produced? (I am not clear on it, I searched for previous ones of this Mod and finally found it in the 1.1.x section XD And i just wanna clarify) 2) (This is a general question) For the alternate images, is the first image generally a male one and, if you enable an alternate image, is the alternate generally a female one? Because on my site the males and females have different images and I don't want a male with a female image and vice versa XD 3) Will this addon use the alternate image system? (As stated above, by detecting if the image is supposed to be male or female, I dunno if I explained that right...) And then it, like, makes a female have the female image and male have the male image? Thank you ^_^ |
#3
|
||||
|
||||
@ Parayna:
1. Just enter the value 50 in gender ratio field whenever you are filling adoptable creation form, and you will get half-half chance for male and female. 2. Nope, the alternate images have nothing to do with this mod nor the gender system at this stage. In Mys v1.4.0 alternate images can be configured to be gender-specific, but for the current version it's not possible. 3. I think I sorta already answered this question above.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#4
|
||||
|
||||
Oh, OK! Thank you! ^_^ I might use this then :3
|
#5
|
||||
|
||||
I installed this on my site. It works perfectly. The test pet was meant to be 100% female and it certainly happens as intended.
It requires the number to be set as 100. I assume a number lower than 50 means it has a higher chance of being male. Seems to me that the number actually means "chances of being female"
__________________
Failing at being normal since 1990. |
#6
|
||||
|
||||
Yup, the gender ratio number is chance of being female. So 100 = all female, 0 = all male, and 50 = half/half.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#7
|
||||
|
||||
Apparently it doesn't work like that. I set 0 for an all male species and it comes out random gender still.
*Edit* Apparently setting it to 100 isn't 100% for females either. It used to work, at least for female only species. Maybe something in the code is having trouble?
__________________
Failing at being normal since 1990. Last edited by AndromedaKerova; 12-04-2014 at 11:55 AM. |
#8
|
||||
|
||||
for those that have this mod running, this mod don't affect the adopts in the adopts shop so if you want to have it working on the adoptshops too, you must find in the /classes/class_stockadopt.php this:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
just in case... probably wont make to much of a change but add PHP Code:
PHP Code:
|
#9
|
||||
|
||||
Need a little help... I tried adding the option of genderless like the code for 2.x.x, but i can't figure out... And i really need it for my site pokeponies(upgraded the site to the new version)...i think i have the idea... But cant make it work...
|
#10
|
||||
|
||||
Hmm, could you get a link to the genderless code from that version? How genderless are we talking? Like... actually still a gender but not shown, or 'other' from birthday and entirely unable to breed? I'm not positive just how many errors (or not) such a thing might cause. x'D I've made my breeding entirely genderless and, for a while, had all pet genders hidden from view entirely, though still technically stored.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mys v1.3.3 Gender Ratio Mod for Mys v1.3.3 | Hall of Famer | Mys v1.3.x Mods | 17 | 05-23-2019 03:34 PM |
Mys v1.3.2 Gender Ratio Mod for Mys v1.3.2 | Hall of Famer | Mys v1.3.x Mods | 6 | 01-08-2013 02:02 PM |
Mys v1.3.1 Gender Ratio Mod for v1.3.1 | Hall of Famer | Mys v1.3.x Mods | 15 | 08-17-2012 03:25 AM |
Hall of Famer's Gender Ratio Mod v1.2 | Hall of Famer | Mys v1.2.x Mods | 45 | 04-02-2012 12:42 PM |
gender ratio script | maximillion | Questions and Supports | 16 | 06-27-2011 11:59 AM |
What's New? |
What's Hot? |
What's Popular? |