Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-21-2014, 05:57 PM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 28,065
kristhasirah
Default Bug in the adopt shops

I just found a bug... i think... dont know if im the only one with this problem, but every pet i adopt from the shop uses the alternate image.

the pets from 1 to 17 where adopted in the shop, all of them are missing the null in the imageurl and say yes in the usesalternate. after i removed the adopt from the shop the pets from 18 to 22 have the null in the imageurl and some say no and yes in the usealternate...

and again im not a coder so i cant find how to fix it, and i really hope some one can help me, because most of my adopts use the alternate image and most of them are going to the adoptshop.

Im using the latest version of the script.
Attached Images
File Type: jpg myshop.jpg (19.3 KB, 10 views)
__________________
Reply With Quote
  #2  
Old 08-22-2014, 11:46 AM
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: 327,788
Hall of Famer is on a distinguished road
Default

umm this is interesting, I wasnt able to reproduce the problem when I was betatesting Mys v1.3.4. Anyone else have this issue too? Lemme know and I will investigate further.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 08-22-2014, 12:53 PM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 28,065
kristhasirah
Default

i would be happy if you could help me HoF because I already re-uploaded all the pages, that use the adoptshop, thinking that maybe i made a wrong edit, but the problem is still there. and is only in the adoptshop, in the adopt, page and even using the breeding the alts work fine, the only edit i made was adding a image to the market, and changing the order of the shops so now the adoptshop is first and then the itemshop but the problem was there before i made the edits. the only edits i made after installing the script was adding the gender mod, but i did a restore of the files thinking that maybe was the gender mod, but no, so i added again the gender mod. I also added a new function to the items. those are the only edits i have in the site.


EDIT:
just to be sure, I made a complete re-install of the script and database, the problem is still there. every adopt adopted from the shop will be an alt.
__________________

Last edited by kristhasirah; 08-23-2014 at 12:27 PM.
Reply With Quote
  #4  
Old 08-24-2014, 03:52 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: 327,788
Hall of Famer is on a distinguished road
Default

I see, I will tell Anna to try to reproduce this issue on her site and see if she can do it. In this way I will be sure this is affecting more than one site and is likely to be a glitch to be fixed.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 09-25-2014, 01:20 PM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 28,065
kristhasirah
Default

the problem with the shop always selling alts continue, and now i found another "glitch" with the Alts1 item functions... is transforming every adopt in to his alt image... the problem is: that it also changes those that dont have the alternate images enabled, and end up with some "x" instead of the image of the adopts.
__________________
Reply With Quote
  #6  
Old 04-22-2015, 09:35 AM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 28,065
kristhasirah
Default

Found the problem for the missing null in the data base,
in class_stockadopt in the $mysidia->db->insert the imageurl had only "" instead of NULL

and for the always geting an alt image in the adoptshop, i had to replace
PHP Code:
protected function getaltstatus($level) {
      
// This method determines if we will use alternate images...
      
$altstatus "no";
      
$run "no";
       
      
// Let's see if the level we are on is the level that requires alternates
      
if($this->alternates == "enabled" and $level == $this->altoutlevel$run "yes";
      if(
$run == "yes") {
         
$randnum rand(1$row->altchance);
         if(
$randnum == 1$altstatus "yes"// If we pull a 1 as the random number, we use the alternate images :)
      
}
      return 
$altstatus;
  } 
for:
PHP Code:
protected function getaltstatus($level) {
      
// This method determines if we will use alternate images...
      
$altstatus "no";
      
$run "no";
       
      if(
$this->alternates == "enabled" and $this->altoutlevel == 0){
            
$rand mt_rand(1$this->altchance);
            if(
$rand == 1) return "yes";            
        }
      return 
"no";
  } 
which is only a copy paste of the code found in the class/class_adoptable.php

but is working and now i have random normal and alt adopts in the adoptsshop.

posting this in case someone else has the same problem as me

note: probably i had that problem because im using a lower number in the alt area (2)... but still i dont think is supposed to give me 20 alts of 20 adopted pets in the shop ._O
__________________
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
Shops voni Questions and Supports 3 04-22-2015 02:01 PM
Help !! Shops not appearing é.è kitty08 Feedback and Suggestions 3 12-31-2014 11:15 AM
Help with shops. Nieth Questions and Supports 5 11-26-2013 05:15 AM
Forum Shops? AlexC Feedback and Suggestions 6 05-09-2012 03:28 PM
Again Shops RoconzaArt Questions and Supports 10 01-17-2011 04:32 PM


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

Currently Active Users: 681 (0 members and 681 guests)
Threads: 4,080, Posts: 32,024, 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