#11
|
||||
|
||||
I'm having the exact same problem as parayna.
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion |
#12
|
||||
|
||||
Quote:
Actually the fix is indeed to delete the line 32. I tested it on my demo site and it worked for me when generating alternate forms when leveling up. If you see that it never gets alt form at level 0, this is because alt form no longer exists for level 0(egg stage). When an adoptable levels up, it will check the available alt forms and selects one according to the criteria. Since theres no level-up at level 0, the level 0 can only have a primary form. I hope this explains things, your adoptables will have proper alt forms if you set them for level 1 and beyond.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#13
|
||||
|
||||
Thank you! Worked perfectly!
Another thing I just found though (but I'm not sure if it's by design or not lol) is that using an item that raises clicks (and that levels the adopt up) won't use the alt form even if the chance is set to 100%. I wanted to test the fix so I adopted some adopts, and bought some items from the shop to raise their clicks. They levelled up but didn't use the alt form for level 1, even though chance is set to 100%. It worked perfectly when I manually clicked to raise their level though! (For testing purposes I set the clicks required to 1) I know there is an item that raises the level so I'm not sure if it's by design or not, ignore me if so lol. Thanks again!
__________________
It's been a long time. I had so much fun making a site back in 2016 that recently, when I started thinking about it again, I decided to come back and work on something small. It'll probably just be a personal project but who knows? We'll see, anyway.
|
#14
|
||||
|
||||
Quote:
I think this is a bug, items that raise clicks should trigger the alternate form selection code. Lemme take a look into it.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#15
|
||||
|
||||
Okay, thanks
__________________
It's been a long time. I had so much fun making a site back in 2016 that recently, when I started thinking about it again, I decided to come back and work on something small. It'll probably just be a personal project but who knows? We'll see, anyway.
|
#16
|
||||
|
||||
Try this file and see if the alternate forms are generated similarly to when you level up by clicking. You will need to upload it to /functions directory, or just edit /functions/functions_items.php and replace the entire code.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#17
|
||||
|
||||
That worked perfectly, thank you!! ^_^
__________________
It's been a long time. I had so much fun making a site back in 2016 that recently, when I started thinking about it again, I decided to come back and work on something small. It'll probably just be a personal project but who knows? We'll see, anyway.
|
#18
|
||||
|
||||
You are welcome. Btw can you try the new functions_items.php file? I've updated the item functions for alternate images. There are two item functions for alternate forms, the first one 'Alts1' will set the adoptable to the specified alternate form ID(the item 'value' is the new alternate form ID), while the second one 'Alts2' will simply select one alternate form randomly(the item 'value' is the target adoptable type ID). Give a try and see if it works as expected?
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#19
|
||||
|
||||
I've just done some testing and Alts1 doesn't seem to work. I set multiple alt images for level 1 on an adopt (3 alt forms, all set at 33% chance to be applied). When I levelled them up they took on 1 of the alt forms so I made Alt1 use the ID of 5 (which was an alt that the adopt did not take)
When I use the item it says Action Completed! at the top but the actual text either says 'It appears that your adoptable does not have an alternate image at its given level...' or 'The item can only be used for adoptable Luna at level 1 or above...' I adopted 2 to test on just in case and they are both level 1, the text seems to swap between saying both those things Also Alts2 doesn't show in the list for me so I haven't been able to test that one yet Hopefully that helps a little :)
__________________
It's been a long time. I had so much fun making a site back in 2016 that recently, when I started thinking about it again, I decided to come back and work on something small. It'll probably just be a personal project but who knows? We'll see, anyway.
|
#20
|
||||
|
||||
i'm trying to figure out why it doesn't do this automatically?>???? do we have to manually put this in for all of our adopts? that seems like a lot of work!
|
|
|
What's New? |
What's Hot? |
What's Popular? |