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 12-29-2020, 11:36 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 63,347
Abronsyth is on a distinguished road
Default 1.3.5 Alternates

I see that when a new adoptable is inserted into the database the field "alternate" is filled in with 0. So how/when/where is the alternate form defined?

(Asking because my 1.3.4 site is heavily modified so I am upgrading in bits and pieces.)

EDIT:
Also it looks like class_breeding isn't updated for the new alternates function.
__________________
My Mods Site (1.3.4, 2020 Mods)

Last edited by Abronsyth; 12-29-2020 at 11:42 AM.
Reply With Quote
  #2  
Old 12-29-2020, 02:06 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is online now
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,422
Gender: Male
Credits: 187,491
Hall of Famer is on a distinguished road
Default

There is a new table called {$prefix}_alternates, which defines a list of adoptables alternate form. I will look into the breeding system and see if theres a bug I need to fix.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 12-30-2020, 11:11 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 63,347
Abronsyth is on a distinguished road
Default

I see that the alternates table stores the alternate forms for each adoptable type, but how is the chosen alternate form selected for each individual owned adoptable? I just see in the owned_adoptables table the section for alternate, but the default for when a pet is adopted is simply 0. So where/how does the script determine which alternate form is used?

And for breeding it's just in class_breeding.php the insert function is still the old version (with the "use_alternates" column for ownedadoptables.)
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #4  
Old 01-02-2021, 11:09 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is online now
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,422
Gender: Male
Credits: 187,491
Hall of Famer is on a distinguished road
Default

I've fixed the issue with alternate status in breeding. If you are using Mys v1.3.5 already, download the attachment to fix the bug. Otherwise, I will update the download links later today so this issue will go away for new users.
Attached Files
File Type: php class_breeding.php (3.9 KB, 3 views)
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 01-04-2021, 05:08 PM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 18,474
kristhasirah
Default

I also have the same question as Abronsyth where do one set an individual adopt to be alt or not and witch one to use. Im trying to upgrade my site and most of my adopts have an alternate version, but the alt image is not showing, now all of my alternates have the default image.

edit: never mind, found where to add the alt image.

my new problem is that the last alt form don't work. my site uses 7 levels 4 for the eggs and 3 for the rest. so I have an alternate adopt at level 6 and then level the adopt to level 7 and the image reverts to the primary image...
__________________

Last edited by kristhasirah; 01-04-2021 at 06:49 PM.
Reply With Quote
  #6  
Old 01-05-2021, 06:08 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 63,347
Abronsyth is on a distinguished road
Default

Where did you find that the individual pet's alt form is stored?
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #7  
Old 01-06-2021, 09:49 AM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 18,474
kristhasirah
Default

when an alt is chosen the url will be written in the imageurl column and the 0 in the alternate column will be replaced with the number of the alt.
so to make an owned adoptable an alt you need to add the image url to the imageurl and add the number to the alternates column
__________________
Reply With Quote
  #8  
Old 01-10-2021, 03:53 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 63,347
Abronsyth is on a distinguished road
Default

Quote:
Originally Posted by kristhasirah View Post
when an alt is chosen the url will be written in the imageurl column and the 0 in the alternate column will be replaced with the number of the alt.
so to make an owned adoptable an alt you need to add the image url to the imageurl and add the number to the alternates column
I understand this, but what I am trying to figure out is when/where is an alt chosen? Where's the code that changes it in the database?


I'm also having the last-alt error, puts it in as 0 even when I put a different number in. However when I got back and edit it, it updates just fine.
Edit: Nevermind, it appears to be working upon adding more. Weird.
__________________
My Mods Site (1.3.4, 2020 Mods)

Last edited by Abronsyth; 01-10-2021 at 03:59 PM.
Reply With Quote
  #9  
Old 01-13-2021, 10:18 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is online now
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,422
Gender: Male
Credits: 187,491
Hall of Famer is on a distinguished road
Default

Last alt works similarly as other conditions as the chance will apply. If you set the last alt field with 50 chance, then it will only be selected 1 out of 2.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
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 11:14 PM.

Currently Active Users: 288 (1 members and 287 guests)
Threads: 4,048, Posts: 31,827, Members: 15,720
Welcome to our newest members, Moth-chan.
BETA





What's New?

What's Hot?

What's Popular?


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