Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Reply
 
Thread Tools Display Modes
  #1  
Old 07-07-2020, 11:12 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 455
Gender: Unknown/Other
Credits: 17,382
Missy Master is an unknown quantity at this point
Default Breeding With Other Males [Solved]

[Solved!]





I need to allow breeding with other members males, I can't work out how to fix this in Validation, any help would be great :)


The females I want to breed only in their own, but the males I'd like to be able to have available from others.

Last edited by Missy Master; 07-20-2020 at 02:39 PM.
Reply With Quote
  #2  
Old 07-08-2020, 12:44 PM
Micolai's Avatar
Micolai Micolai is offline
Loving Mysidia
 
Join Date: May 2020
Location: Tennessee
Posts: 67
Gender: Female
Credits: 2,046
Micolai is on a distinguished road
Default

Try this thread
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion
Reply With Quote
  #3  
Old 07-08-2020, 02:11 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: Somerville
Posts: 4,391
Gender: Male
Credits: 158,304
Hall of Famer is on a distinguished road
Default

I think she means, breeding pets across users? Like your female pets with a friend's male pets? the easiest way is to use trade feature.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #4  
Old 07-09-2020, 12:14 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 455
Gender: Unknown/Other
Credits: 17,382
Missy Master is an unknown quantity at this point
Default

I do, and thank you HOF :)

If thats the best way to allow it, we'll go with that!
Reply With Quote
  #5  
Old 07-09-2020, 02:20 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: Somerville
Posts: 4,391
Gender: Male
Credits: 158,304
Hall of Famer is on a distinguished road
Default

Actually its possible to allow trade with friends' pets more easily, I can think of a solution later.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #6  
Old 07-14-2020, 07:25 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 455
Gender: Unknown/Other
Credits: 17,382
Missy Master is an unknown quantity at this point
Default

Does anyone else know a (hopefully) easy fix to this?

My members (understandably) dont want to hand over one of their pets to someone else, and trust they get it back. They just want to be able to breed with other males.

I have tried to work it out, and nothing works, just that white page we all love comes up.

Really need help on this, people breeding among each other's pets is really a big deal for us.

Tried the Validator and Settings code, a few different ways, removing the 'owner' part in an array, everything I can see to mess with. Still will *show* the other members males, but when we go to breed --- Invalid ID!


Thanks if anyone can work it out :)

Last edited by Missy Master; 07-14-2020 at 08:42 PM.
Reply With Quote
  #7  
Old 07-16-2020, 01:33 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,004
Gender: Male
Credits: 51,802
Abronsyth is on a distinguished road
Default

Is it only failing to get the ID for other member's males, but working fine for the user's own males?
Reply With Quote
  #8  
Old 07-16-2020, 08:07 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 455
Gender: Unknown/Other
Credits: 17,382
Missy Master is an unknown quantity at this point
Default

Yep!

Its just for other members pets. Breeding in our own is fine. I know how to get the *list* to show the other ones, finally figured that out, but go to breed and nope :(

Just cannot find it.

There's even a ban that happens sometimes.

Other times, depending on what I mess with, it just does the invalid ID.

Tried all that even looks like it might be for it, in breeding, breedingview, and class_breeding.

Somewhere it's saying ok, NOT your pet, so nope!
Reply With Quote
  #9  
Old 07-18-2020, 09:00 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,004
Gender: Male
Credits: 51,802
Abronsyth is on a distinguished road
Default

To show other males you just edit line 72 in breeding.php to this:
PHP Code:
$stmt $mysidia->db->select("owned_adoptables", array("name""aid"), "gender = 'm' AND currentlevel >= {$settings->level} AND lastbred <= '{$lasttime}'"); 
(I'd personally like to add a section for whether the pet is up for stud or not that's null for female pets automatically, and yes or no for males...)

Then I went into class_breedingvalidator.php and changed private function checkOwner to this:
PHP Code:
private function checkOwner(){
        
$mysidia Registry::get("mysidia");
        if(
$this->female->getOwner() != $mysidia->user->username){
            
banuser($mysidia->user->username);
            throw new 
BreedingException("owner");
        }
        return 
TRUE;
    } 
(removed the part where it does this for males, but left where it checks owner of female)

Now I have no idea if this will work or not because I don't have any other accounts on my test site right now, but you can check it if you want?
Reply With Quote
  #10  
Old 07-18-2020, 09:48 AM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 455
Gender: Unknown/Other
Credits: 17,382
Missy Master is an unknown quantity at this point
Default

Wow thank you, I will try this right away!! :)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:42 AM.

Currently Active Users: 358 (0 members and 358 guests)
Threads: 4,022, Posts: 31,669, Members: 15,660
Welcome to our newest members, Lawrence Wilkinson.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636