Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.2.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-11-2011, 07:28 AM
Chibi_Chicken Chibi_Chicken is offline
Niwatori Kami
 
Join Date: Jun 2011
Posts: 63
Gender: Unknown/Other
Credits: 6,316
Chibi_Chicken is on a distinguished road
Default Custom design pets

Custom Pet Mod for Mysidia Adoptables v1.2.1

This mod will allow users to pick the background color of the pet that they adopt, and as the adopt levels up their color choice will effect that level as well.

Demo: http://www.plumagedoom.com/cpet/petdemo.php?id=3
Download: http://www.plumagedoom.com/cpet/Cpet...stallation.zip

Installation Notes:
I have put this mod on to a fresh copy of Mysidia v1.2.1 after installing the basic script run the installer install.php in the main folder. You will need to be logged in as a admin to install it. This will add in the needed two tables and update the apc hooks; Remember to remove the install.php!

Now that you have installed Cpets create any adoptable like you would normally do however when making an adoptable do not use Alternate Outcomes Settings** after adding in adopts and any levels for it go to the Site Settings page and in the Plugin Settings use the Custom Pet Admin to add the needed layers for the adopt and its levels.
You have just added a new custom adopt for users to play with.
**Alternate Outcomes Settings has not been tested with this mod, I am not sure how it will handle it. what I think will happen is when any of the scripts call for the image of the pet it will find that alter images is on and will use that image instead of the one on the owned_adoptables.imageurl

Custom Pet Admin Notes:
At the moment you have two choices; add in a new image and delete an image (manage image layer.)
When you chose to upload an image you will need:

Layer name: This can be a readable name used when you want to manage the image at a latter time
Body or Lines: This will set up what type of layer it will be. If you were to add in more than one of either type the likely thing that would happen is the script will grab them and what ever one was sorted (added?) last will be used.
Pet ID: Pick what pet this layer is for.
Pet Level: Add in the level that this is for, note that level 0 is the egg level or first level that you make for an adoptable.
File to Upload: The image you want to use for the layer effect.
Image Requirements: The image must me less than 150kb.
It must be PNG-8 file, this script will allow gifs to load however the image functions will only handle pngs right now so it will just give you errors for trying to use gifs.
Body layers can be any color(s) the scrip will just go in and replace any value it finds. it handles transparency with the alpha channel.

Adding Cpets to a pre-existing install:

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.
[original post]

I have been working on this on and off for months now. i am at a point were i can show an example of what i am building

this mod will allow users to pick a pet type and then pick the color of the body also add in different effects. then when the pet levels or breeds the effects stick with it and can be passed on to the offspring.

so far this all i have gotten done
http://plumagedoom.com/cpet/petdemo.php

I am still learning how the different scripts work with each other.

any comments or interest is welcomed.

Last edited by Chibi_Chicken; 06-22-2011 at 07:33 PM.
Reply With Quote
  #2  
Old 06-11-2011, 09:57 AM
PokePets PokePets is offline
Premium Member
 
Join Date: Jun 2010
Posts: 228
Gender: Male
Credits: 22,538
PokePets
Default

This could be nice for kecleon @ Pokemon sites :P
Reply With Quote
  #3  
Old 06-11-2011, 10:22 AM
Inf3rnal's Avatar
Inf3rnal Inf3rnal is offline
Member
 
Join Date: Mar 2011
Location: Florida
Posts: 108
Gender: Male
Credits: 21,855
Inf3rnal is on a distinguished road
Default

Looks quite amazing.

Basically using GD to generate a color for specified areas?

or by having the bg color magenta and having whatever color specified replace the magenta?

Either way I can't wait to mess with that code. :3
Reply With Quote
  #4  
Old 06-11-2011, 03:12 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 491,130
Hall of Famer is on a distinguished road
Default

Sounds promising, but I hate to be the bad guy to tell you that this forum is only for mods/addons that are already completed and ready for users to download. For ideas or projects you are currently working on, post in Questions & Support forum so members can have a preview of your script.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 06-11-2011, 08:26 PM
Chibi_Chicken Chibi_Chicken is offline
Niwatori Kami
 
Join Date: Jun 2011
Posts: 63
Gender: Unknown/Other
Credits: 6,316
Chibi_Chicken is on a distinguished road
Default

Quote:
Originally Posted by Inf3rnal View Post
Looks quite amazing.

Basically using GD to generate a color for specified areas?

or by having the bg color magenta and having whatever color specified replace the magenta?

Either way I can't wait to mess with that code. :3
it basically takes the template png image and replaces the color but it still saves the alpha channel so you can get a blending effect when you add more than just one layer.

Quote:
Originally Posted by Hall of Famer View Post
Sounds promising, but I hate to be the bad guy to tell you that this forum is only for mods/addons that are already completed and ready for users to download. For ideas or projects you are currently working on, post in Questions & Support forum so members can have a preview of your script.
ok, wasn't to sure were it went, please move it to the right place, thank you.
Reply With Quote
  #6  
Old 06-12-2011, 12:41 AM
Teshia's Avatar
Teshia Teshia is offline
Art Director & Developer
 
Join Date: Sep 2010
Location: On the Road
Posts: 99
Gender: Female
Credits: 6,446
Teshia
Default

I think its friggin awesome. ^^

But then, I'm a bit biased. XD
<3
Reply With Quote
  #7  
Old 06-12-2011, 01:52 PM
Rozel Rozel is offline
Member
 
Join Date: Jun 2010
Posts: 144
Credits: 12,134
Rozel
Default

This is awesome! It could work pretty cool with breeding sites, if possible I think it would be cool to also be able to have it get markings and such kind of like Wajas. But first things first, of course. :3 It looks great.
Reply With Quote
  #8  
Old 06-12-2011, 11:24 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 38,567
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

Yeah I've been doing stuff with GD for awhile. It's hard to get it generic enough for others to use though. That's my opinion anyway.
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
  #9  
Old 06-13-2011, 04:01 AM
Teshia's Avatar
Teshia Teshia is offline
Art Director &amp; Developer
 
Join Date: Sep 2010
Location: On the Road
Posts: 99
Gender: Female
Credits: 6,446
Teshia
Default

Its a complex script. Your average newbie would get frustrated with it rather quickly. It will be a long way off before it could be edited from the admin panel, if at all. We do most of our editing directly in the database, so admin is kinda useless.
Reply With Quote
  #10  
Old 06-13-2011, 11:05 AM
Rozel Rozel is offline
Member
 
Join Date: Jun 2010
Posts: 144
Credits: 12,134
Rozel
Default

Well, I'm sure if you make a little guide you can explain to people how to edit from the database, rather then go through the trouble of coding more. By now I'm used to a database so I think I'd be fine with a little instruction. I don't know about other people though. :o
__________________
No longer working on Aroha. If you see the art of it somewhere else, it's because I've sold it.
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to design a theme? CallumCharlton Questions and Supports 6 04-03-2015 12:44 PM
Name for my web design service? tahbikat Webmasters Area 7 04-05-2014 03:08 AM
Need Opinions Please (card design) Tequila Other Chat 6 05-02-2013 08:14 PM
Responsive design Kesstryl Suggestions and Feature Requests 5 03-06-2013 03:34 PM
Ugliest Design Ever?? Tequila Other Chat 9 10-28-2011 05:37 AM


All times are GMT -5. The time now is 02:15 PM.

Currently Active Users: 748 (0 members and 748 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


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