Custom design pets

Forum
Last Post
Threads / Messages
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.
 
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.
 
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.
 
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.
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.
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!
05-upload.jpg


You can now have an Elefunion.
Here are the images that I used:
E-body-1.png
e-lines-0.png
egg-image.png
 
This is great :) Thanks for sharing this. It works perfectly for me.
 
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).
 
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
 
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.
 
Your instructions for installing this mod on an already established site are,
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.
 
yes as long as their isnt any other modifications made to those pages it will work.
please let me know if their was any problems or fixes you found for the next update of this script.
 
ok well im doing it the easier way, just going to do a complete re-install using your already modified version. Thanks for reply, and this is for cindykt so I won't be able to report any problems.
 
This could be very helpful to my site! I am very interested in where this is going! Great Work!
 
The link does not work when I try to download it :cfrown:...Does anyone have a working link? I would really like to download this mod!
 
Does anyone have a copy of the finished script? This looks like something I'd really like to try, but the download is defunct!
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,118
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top