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 06-03-2013, 05:18 AM
River cat River cat is offline
Member
 
Join Date: May 2013
Location: Russia, Siberia (Omsk sity)
Posts: 18
Gender: Female
Credits: 3,344
River cat is on a distinguished road
Default Breeding pets from Shop

Hello to you all again.

I got a some sort of problem, and I would like to find some sort of solution for it.

I tested breeding system of my site, and it works totally fine, exept one thing. All pets from adoptshop couldn't be breed. I checked prefix_owned_adoptables in my database, and when normal adoptables gets 0 in lastbreed box, adoptables from shop gets NULL. Of course I can edit this box, and then this adoptable could be breed, but I really don't want to do that every time by hands. Is there any way to make adoptables from the shop gets 0 instead NULL after purchase?

Thank you, Best Regards, River.
Reply With Quote
  #2  
Old 06-10-2013, 06:59 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: 338,314
Hall of Famer is on a distinguished road
Default

Did you figure out the solution already? I saw you send me two profile comments but deleted them afterwards.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 06-14-2013, 12:48 AM
River cat River cat is offline
Member
 
Join Date: May 2013
Location: Russia, Siberia (Omsk sity)
Posts: 18
Gender: Female
Credits: 3,344
River cat is on a distinguished road
Default

Hello, nope, I didn't find any solution for right now. I will be very glad if you will help me.
Also, sorry, I asked you a few things, but I already found a way to solve it, so I deleted my comments ^^"
Reply With Quote
  #4  
Old 06-14-2013, 05:21 AM
Ruinily Ruinily is offline
Member
 
Join Date: Mar 2011
Location: England
Posts: 185
Gender: Female
Credits: 22,839
Ruinily is on a distinguished road
Default

I've just checked and I'm the same, their saying null instead of 0. :/ Promocode pets are alright though lol.
__________________

Chocolate butterfly cat pudding. o.o


And since even the programming on this forum doesnt like me anymore heres my sites address. XD
http://felkyocreatures.com/index.php
Reply With Quote
  #5  
Old 06-16-2013, 11:43 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: 338,314
Hall of Famer is on a distinguished road
Default

Oh yeah, the field NULL is the problem. Change it to 0 will resolve the problem, but a better solution is to change the database column into type int rather than varchar.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #6  
Old 06-16-2013, 10:21 PM
Ruinily Ruinily is offline
Member
 
Join Date: Mar 2011
Location: England
Posts: 185
Gender: Female
Credits: 22,839
Ruinily is on a distinguished road
Default

'13 lastbred int(11) Yes NULL'

Um, thats what my database says in that column, its already int? Is there any chance I could just set the default to 0 so it'd always start off with 0, or would that mean it'd stay 0 -.-' And is there anyway to change all the values of a column since theres 20 pages of creatures on my site? -.-'
__________________

Chocolate butterfly cat pudding. o.o


And since even the programming on this forum doesnt like me anymore heres my sites address. XD
http://felkyocreatures.com/index.php
Reply With Quote
  #7  
Old 06-16-2013, 11:46 PM
River cat River cat is offline
Member
 
Join Date: May 2013
Location: Russia, Siberia (Omsk sity)
Posts: 18
Gender: Female
Credits: 3,344
River cat is on a distinguished road
Default

Thank you, Hall of Famer, my problem is resolved now.
I changed lastbred coloumn, default from NULL to no, and I removed the checked box form NULL.
Ruinily, I resolved this, and it lets all adoptable to breed, I just can't describe properly what I did, because I'm not sure how to tranclate.
Reply With Quote
  #8  
Old 06-17-2013, 02:10 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: 338,314
Hall of Famer is on a distinguished road
Default

Well actually this is a minor glitch with the database tables, not the script itself. As I said before, you need to make sure the column lastbred is int type, not varchar. Int type cannot be NULL, its default value is usually 0.

And glad it fixes your problem River Cat.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #9  
Old 06-17-2013, 04:59 AM
River cat River cat is offline
Member
 
Join Date: May 2013
Location: Russia, Siberia (Omsk sity)
Posts: 18
Gender: Female
Credits: 3,344
River cat is on a distinguished road
Default

Hall of Famer, lastbred coloumn was int type, so problem was not here, I think. ^^"
Reply With Quote
  #10  
Old 06-17-2013, 12:20 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: 338,314
Hall of Famer is on a distinguished road
Default

I see, this is kinda strange. I thought int columns cannot have NULL value, looks like I was mistaken. Guess it is necessary to set the default to be 0 upon script installation to fix the problem for good, thanks for telling me this.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
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
Shop Tables SilverDragonTears Questions and Supports 1 02-02-2013 03:26 PM
Random breeding outcome/ rare breeding SilverDragonTears Questions and Supports 0 03-25-2012 02:33 AM
System Shop sensacion Questions and Supports 0 05-08-2011 06:40 PM
Shop and... 12345 Questions and Supports 1 03-05-2009 07:59 AM
Shop? trollis76 Questions and Supports 6 02-20-2009 12:46 AM


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

Currently Active Users: 9697 (0 members and 9697 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