Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.2.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=38)
-   -   Custom design pets (http://www.mysidiaadoptables.com/forum/showthread.php?t=2194)

AlexC 06-22-2011 08:44 AM

Jesus, this is an AMAZING script! I would totally add this to my site as a "bonus pet". Question - does this pet change colors as it changes images/levels?

And I think you should do both - offer the files and make a list.

Chibi_Chicken 06-22-2011 06:37 PM

Quote:

Originally Posted by Gloometh (Post 17163)
Jesus, this is an AMAZING script! I would totally add this to my site as a "bonus pet". Question - does this pet change colors as it changes images/levels?

And I think you should do both - offer the files and make a list.

Yes, when the adoptable reaches a new level and it has done a check to see if their is a new level their. it will then update it self and use the same color that you picked when you adopted it.

I released the code, i put the link and info on my first post.

AlexC 06-23-2011 02:29 PM

I have tried installing the script in my site, but appear to be having troubles with it. The egg image is stretched, and when I try to change the color on the adopt page it's not working. And the image isn't showing up anyway. In the myadopts page, the admin center, nowhere. :/

I think something may have gone wrong while I was setting up my adoptables - can you maybe do a screenshot guide, your writing is a bit confusing. (no offense - I have dyslexia and some memory problems. Anything that isn't laid out very plain and simple, and in complete and proper English I can't read or even compute in some cases.

Chibi_Chicken 06-23-2011 04:20 PM

Quote:

Originally Posted by Gloometh (Post 17199)
The egg image is stretched

In customadopt.php line 146
Code:

repace <img height='284' alt='Dynamically generated image' src='preview.php' width='88'>
with <img alt='Dynamically generated image' src='preview.php' >

First start with your image prep. I am going to use Teshia Elefunions they are pngs and have transparency.

I will need to build a body layer. So open it up in an image editing software (in my case old copy of PS.) With the magic of the magic wand and the select->inverse I have a body layer.
http://www.plumagedoom.com/cpet/cpet/01-ps.png

Now save it out as a png-8 File->Save as.
When I name my file I want a unique name. So when I upload it to the script it wont have problems, due to it naming convention of the script.

I will also make an preview image that is displayed when the user wants to pick from the different adopts. the image is simply the body and lines combined.

Now create a new adopt in the admin page, I have used the Change Adoptables->Upload a new Adoptable Image for the preview image.
Now I will create a new adoptable Elefunions setting up the Basic Information, and Adoption Information and Conditions. I do not add anything to Alternate Outcomes Settings.


In the Admin Center in Site Settings at the bottom, is the plug-in Custom Pet Admin or you can just go to it directly by cpetadmin.php.
http://www.plumagedoom.com/cpet/cpet/03-admin.jpg

Here click on upload an image layer and set up your layers.
Remember to change from lines to body when uploading the different layers!
http://www.plumagedoom.com/cpet/cpet/05-upload.jpg

You can now have an Elefunion.
Here are the images that I used:
http://www.plumagedoom.com/cpet/cpet/E-body-1.pnghttp://www.plumagedoom.com/cpet/cpet/e-lines-0.pnghttp://www.plumagedoom.com/cpet/cpet/egg-image.png

ruletka 06-23-2011 06:02 PM

This is great :) Thanks for sharing this. It works perfectly for me.

Teshia 06-23-2011 11:41 PM

<3 Absolutely brilliant Chibi. I'm glad its finally finished.

Hall of Famer 06-24-2011 03:59 PM

I am glad its been working perfectly for you guys/gals too. Best luck to whoever use Chibi's script(not to be confused with ChibiKawaii).

AlexC 07-12-2011 04:55 PM

sorry to bother you yet again... ^.^; the adopts aren't showing up anywhere? It was showing up on customadopt.php page, but when I look elsewhere, it doesn't. The preview image isn't either. In the admin center, on my profile, nowhere. o.O

Chibi_Chicken 07-12-2011 10:19 PM

no worries about bothering me just working in my chicken coop of Science!

so the new adopt doesnt show up at all except the customadopt.php with the preview image?

what changes have you made to to the script?

After adopting a new pet the image is saved and the link to the url is in the owned_adoptables image url field and the the way it is pulled is with the function getcurrentimage(id of adoptable)

if you are not seeing a preview image but just "Dynamically generated image"
right click on it and "view image" and it should come up with some error.

Nemesis 07-27-2011 12:00 PM

Your instructions for installing this mod on an already established site are,
Quote:

If you want to install this code to an already installed copy of Mysidia Adoptables, run the install.php script to add in the tables and apc hook. For the pages look for:
#//----------
#custom pet mod
#//----------
this is the start of the new code that I have added in, I tried not to alter any code outside of this. The exceptions are in adopt.php I relinked from doadopt.php to customadopt.php, this also doesnt have the custom pet mod comments.

Here is the list of the files.
inc/functions.php //added in link to the cpet functions forgot to add in the comment however it is basically the third line.
adopt.php //redirected page and clear out/build a new variable in the session
breeding.php //added in section for the pet to breed with the custom background. note: I just had it pick a color randomly for the new adoptable.
doadopt.php //added in section to add the info from the custom pet session pet save it. Then build the image and save that to the adoptable.
levelup.php //added in find the parent id then level up the adoptable, level up rebuilds and saves the image again.

Altered
myadopts.php //altered how the image is taken from the db and displayed.
stats.php //altered how the image is taken from the db and displayed. Note: I missed a spot when the code get a random set of adoptable, it shows the egg image instead.

New Files
preview.php //used to display the new colors. Note: This may have caching issues with some browsers, I am not sure.
customadopt.php //form used to build the new pet.
cpetadmin.php //admin that manages the image assets for the custom adopts.
custompet_functions.php //core engine of the custom adopts does stuff minus toast.

Please leave any comments and questions in this thread.
so Basically for my clients if i were to add this to their sites i would need to run the install script, then over write the existing files with the changed ones and it should work? Also adding in the new files. thanks for help.


All times are GMT -5. The time now is 06:47 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.