Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Off Topic Discussions > Adoptables Sites Showcase

Reply
 
Thread Tools Display Modes
  #31  
Old 04-16-2015, 03:17 PM
Missy Master's Avatar
Missy Master Missy Master is offline
*~Pet-Sim Com!~*
 
Join Date: Jan 2010
Posts: 448
Gender: Unknown/Other
Credits: 13,105
Missy Master is an unknown quantity at this point
Default

If we ever get this done it will be a really fantastic Mod.

I really want to donate to you for all this hard work, this has turned out to be something else .. I'm guessing on a heavily modded site it's just butting against something that is messing it up!


This still kicks up when you go to stats or manage for any one Pet:

Catchable fatal error: Argument 2 passed to AppController::setField() must implement interface Resource\Native\Objective, string given, called in /home/petsim/public_html/Canidae/myadopts.php on line 50 and defined in /home/petsim/public_html/Canidae/classes/class_appcontroller.php on line 169
__________________
Reply With Quote
  #32  
Old 04-16-2015, 03:48 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 843
Gender: Unknown/Other
Credits: 36,057
Kyttias is on a distinguished road
Default

Alright, we'll go in and handle these one by one! It is turning out to be quite the adventure.

Everywhere I ask you to 'comment something out' just add a # to the beginning of the line it's on. If you've got syntax highlighting on your text editor, it'll probably make that line a different color to show that the line will be ignored at run time.

In myadopts.php search for public function manage(){ and comment out this line, it should be around line 41:
PHP Code:
$this->setField("image"$this->image); 
In myadoptsview.php search also for public function manage(){ and comment out this line, it should be around line 47:
PHP Code:
$document->add($image); 
Immediately after, add these lines:
PHP Code:
$adopt = new OwnedAdoptable($aid);
$document->add(new Comment($adopt->getImage())); 
In levelupview.php, should be near line 16, comment out this line:
PHP Code:
$image->setLineBreak(TRUE); 
And in the same file, should be by near line 19, comment out this line:
PHP Code:
$summary->add($image); 
And then after this, add:
PHP Code:
$summary->add(new Comment("<center>{$adopt->getImage()}</center>")); 
__________________
Please do not contact me. I cannot offer tech support on any coding I've done prior to 2018.
Reply With Quote
  #33  
Old 04-16-2015, 03:54 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 843
Gender: Unknown/Other
Credits: 36,057
Kyttias is on a distinguished road
Default

While managing certain aspects of pets, such as renaming them, similar errors will appear, so, we'll fix those, too:

In myadopts.php around line 70, comment out:
PHP Code:
$this->setField("image"$this->image); 
Also comment out the same line around line 95 and line 118.

In myadoptsview.php around line 76, comment out:
PHP Code:
$document->add($image); 
After this line, add:
PHP Code:
$document->add(new Comment("<center>{$adopt->getImage()}</center>")); 
For the last two steps, also comment out those same lines and add those same lines around lines 137, 146, 162, and 179.

If you come across more errors that point to lines similar to this, try similar fixes? If you stop between each step, you'll see each presented a new error I moved on to fix.
__________________
Please do not contact me. I cannot offer tech support on any coding I've done prior to 2018.

Last edited by Kyttias; 04-16-2015 at 04:01 PM.
Reply With Quote
  #34  
Old 04-16-2015, 04:03 PM
Missy Master's Avatar
Missy Master Missy Master is offline
*~Pet-Sim Com!~*
 
Join Date: Jan 2010
Posts: 448
Gender: Unknown/Other
Credits: 13,105
Missy Master is an unknown quantity at this point
Default

Okay cool got it, will get to work on all this right away!! Thank you so much!!

And BTW, I changed the imageurl for one Pet to JUST her filename and nothing else, and now I get -- where before there was the BG image and a small broken image I assume was the imageurl:





So I'm guessing her imageurl is in front of the BG now...

I'll head in and fix all the errors you noted, and please do let me know where I can donate to you on payday this month, you really deserve to be rewarded for all this hard work!
__________________
Reply With Quote
  #35  
Old 04-16-2015, 04:12 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 843
Gender: Unknown/Other
Credits: 36,057
Kyttias is on a distinguished road
Default

Right, I was wondering how the imageurl was being stored in the database. I didn't know which of the three it was:

A) image
B) image.png
C) http://pet-sim.com/Canidae/images/image.png

In the change we made to the getImage function inside classes/class_ownedadoptables.php, I have this line:

Code:
<img class='layer' src='{$mysidia->path->getAbsolute()}/images/{$this->imageurl}.png'>
But it's a assuming that what was in the database where imageurl is located was (A) from above.

For (B), it'd be:
Code:
<img class='layer' src='{$mysidia->path->getAbsolute()}/images/{$this->imageurl}'>
And for (C) it should be:
Code:
<img class='layer' src='{$this->imageurl}'>
As for donating, Kyttias@gmail.com will work with PayPal. ^^
__________________
Please do not contact me. I cannot offer tech support on any coding I've done prior to 2018.
Reply With Quote
  #36  
Old 04-16-2015, 04:21 PM
Missy Master's Avatar
Missy Master Missy Master is offline
*~Pet-Sim Com!~*
 
Join Date: Jan 2010
Posts: 448
Gender: Unknown/Other
Credits: 13,105
Missy Master is an unknown quantity at this point
Default

Oh let me try to apply that then .. I can see when I refresh the page, the Moon BG is there, for a sec, then its overlapped by the Pet image. But we're so close, WOW!!

Still getting this from stats for the pet:


Catchable fatal error: Argument 2 passed to AppController::setField() must implement interface Resource\Native\Objective, string given, called in /home/petsim/public_html/Canidae/myadopts.php on line 50 and defined in /home/petsim/public_html/Canidae/classes/class_appcontroller.php on line 169


I can try to apply the # to comment something out, I took a look and wasnt too sure ...
__________________
Reply With Quote
  #37  
Old 04-16-2015, 04:28 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 843
Gender: Unknown/Other
Credits: 36,057
Kyttias is on a distinguished road
Default

Is your pet image transparent? Because if its not, the background won't show up beneath it...? I'm mostly concerned over whether or not, during breeding, your new images are preserving the existing opacity/transparency/alpha layer of the image they're overlaying with a new design. It's definitely possible to merge images with PHP and preserve opacity, but without seeing your code and testing extensively, I can't tell you how to make this so. That, and, existing pet images will be kind of stuck having these solid backgrounds. So all their kids will have solid backgrounds. The cycle continues of having pets without transparent backgrounds.

Also, I don't have anything on line 50, but look through myadopts.php for all instances of $this->setField("image", $this->image); and comment them out. There should be one nearby.
__________________
Please do not contact me. I cannot offer tech support on any coding I've done prior to 2018.

Last edited by Kyttias; 04-16-2015 at 04:37 PM.
Reply With Quote
  #38  
Old 04-16-2015, 04:42 PM
Missy Master's Avatar
Missy Master Missy Master is offline
*~Pet-Sim Com!~*
 
Join Date: Jan 2010
Posts: 448
Gender: Unknown/Other
Credits: 13,105
Missy Master is an unknown quantity at this point
Default

OMG ... it is WORKING!! O.o

I need to go through and redo my images but wow, it really is working now! Thank you SO much!!

I will have to re check the stats page, but this was a giant undertaking .. I had no idea it would be this complex lol! Thank you!! I guess I should try to figure out how to make this clearer so others can do it .. maybe you can make it a Mod if you wanted?
__________________
Reply With Quote
  #39  
Old 04-16-2015, 05:12 PM
Missy Master's Avatar
Missy Master Missy Master is offline
*~Pet-Sim Com!~*
 
Join Date: Jan 2010
Posts: 448
Gender: Unknown/Other
Credits: 13,105
Missy Master is an unknown quantity at this point
Default

BTW the really wonderful news is, by reversing the order of the layers applied?

We can add toys and decorations in front of the Pet! :)


Now all I need is to figure out a way to remove them .. this is going to be great, we can now apply BG's AND decorations on 1.3.4 !! :)
__________________
Reply With Quote
  #40  
Old 09-06-2015, 07:06 PM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 312
Gender: Female
Credits: 8,830
parayna is on a distinguished road
Default

*Pops in* This would be amazing to have as a mod D: Or like added in the next Mysidia version XD Being able to layer images properly with mutations, items and backgrounds and stuff from the admin cp mostly (fingers crossed) would really help a lot of people! XD I know I'd love it OwO
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysidia Sites Directory Hall of Famer Adoptables Sites Showcase 6 08-10-2016 03:28 AM
This is sort of an hypothetical: Collecting things besides adopts and items EzzyAlpha Questions and Supports 8 11-12-2013 07:23 AM
Free linearts for your sites. :> pachoofoosh Art Gallery 4 01-08-2013 06:56 PM
Random breeding outcome/ rare breeding SilverDragonTears Questions and Supports 0 03-25-2012 02:33 AM
Adoptable Sites Directory! Hall of Famer Adoptables Sites Showcase 7 08-29-2011 04:04 AM


All times are GMT -5. The time now is 09:04 AM.

Currently Active Users: 227 (0 members and 227 guests)
Threads: 3,948, Posts: 31,438, Members: 15,534
Welcome to our newest members, w3st0on5.
BER





What's New?

What's Hot?

What's Popular?


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