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 05-17-2009, 07:24 AM
RipJawWolfFang RipJawWolfFang is offline
Member
 
Join Date: Apr 2009
Posts: 42
Credits: 9,588
RipJawWolfFang
Default Alternate adopt

Okay i now have 2 pets that SHOULD have 50% chance of lookng diferent...
instaid some people cant seem to get the real one... the aulternates are showing up everywhere though
Reply With Quote
  #2  
Old 05-17-2009, 10:57 AM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 18,037
Seapyramid
Default RE: Alternate adopt

That's what happens with a 50/50 chance. Change the rate to 1/7 or so and people will get the alt a lot less.
Reply With Quote
  #3  
Old 05-17-2009, 12:46 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 13,524
BMR777 is on a distinguished road
Default RE: Alternate adopt

Yeah, and the randomization isn't perfect. It uses PHP's rand() function which is based on the system clock, so with a low chance such as 1 in 2 this can be affected by the server's clock or time of day.

Brandon
Reply With Quote
  #4  
Old 05-18-2009, 12:42 AM
RipJawWolfFang RipJawWolfFang is offline
Member
 
Join Date: Apr 2009
Posts: 42
Credits: 9,588
RipJawWolfFang
Default RE: Alternate adopt

I see...
so the reason one is comeing up more then the other is merely coincidental?
Reply With Quote
  #5  
Old 05-18-2009, 12:52 AM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 18,037
Seapyramid
Default RE: Alternate adopt

Yes.. basically. I have done one 50/50 and I got one of each on 2 adopts without having to change the DB... a member got 5 of the alts before getting the regular & another member tried for 9 days before she got the alt.
Reply With Quote
  #6  
Old 02-01-2010, 03:39 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 64,286
Missy Master is an unknown quantity at this point
Default RE: Alternate adopt

would there be a way to insert a code to make there be more than two alternates allowed? I am starting a site where I'd like to have maybe ten or so random images be possible to be picked for pets!

thanks!
Reply With Quote
  #7  
Old 02-01-2010, 05:31 PM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 64,286
Missy Master is an unknown quantity at this point
Default RE: Alternate adopt

ahh never mind, lol, I see on the FAQ where I ought to have looked first, there is no way right now.




Quote:
Originally Posted by Annatar
would there be a way to insert a code to make there be more than two alternates allowed? I am starting a site where I'd like to have maybe ten or so random images be possible to be picked for pets!

thanks!
Reply With Quote
  #8  
Old 02-01-2010, 11:28 PM
Quillink Quillink is offline
Member
 
Join Date: Dec 2008
Posts: 93
Credits: 13,370
Quillink
Default RE: Alternate adopt

Just while this topic's back on page one, I heard that mt_rand() is "truely" random, whereas rand() is not.

This is coming from someone who deals a lot with random chances on his php site, so I thought I'd put it out there. It certainly seams to be working with my finch pets!
Reply With Quote
  #9  
Old 02-02-2010, 02:49 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 18,037
Seapyramid
Default RE: Alternate adopt

It is closer, but still not a "true" random. The closest thing to a true random available right now is a commercial script that runs about $800.00 That basically takes wind variance calulations into effect to create the random and it is said to still only be about 95% true.

Sea
Reply With Quote
  #10  
Old 02-03-2010, 12:20 PM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 26,973
Arianna will become famous soon enough
Default RE: Alternate adopt

Urgh, that's sorta annoying. :P Perhaps mt_rand() could be used more in the script, even if it isn't perfect..?
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
Alternate Images for Genders Con Suggestions and Feature Requests 26 12-08-2014 08:23 PM
Genders/More Alternate Images Clessidra Suggestions and Feature Requests 3 02-27-2014 11:42 AM
Multi Alternate Images Taintedkitten Questions and Supports 3 01-10-2013 08:44 PM
alternate outcomes Nemesis Questions and Supports 3 07-03-2012 02:36 PM
Alternate images, how do they work? Shikari Questions and Supports 4 08-06-2011 09:17 PM


All times are GMT -5. The time now is 08:52 PM.

Currently Active Users: 765 (0 members and 765 guests)
Threads: 4,081, Posts: 32,031, 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