Some Clarifications?
|
|
Farallon Greyskin
Cranky Seal
Join date: 22 Jan 2006
Posts: 491
|
12-11-2007 11:06
Hopefully it's not against the rules to post a tiny fragment of the LL open source to the forums just for fun..  Here is the hippo code! // Constants const char* CN_WAITING = "  waiting)"; const char* CN_NOBODY = "  nobody)"; const char* CN_NONE = "  none)"; const char* CN_HIPPOS = "  hippos)"; const F32 HIPPO_PROBABILITY = 0.01f; ... BOOL LLCacheName::getName(const LLUUID& id, char* first, char* last) { if(id.isNull()) { // The function signature needs to change to pass in the // length of first and last. strcpy(first, CN_NOBODY); /*Flawfinder: ignore*/ last[0] = '\0'; return FALSE; } LLCacheNameEntry* entry = get_ptr_in_map(impl.mCache, id ); if (entry) { // The function signature needs to change to pass in the // length of first and last. strcpy(first, entry->mFirstName); /*Flawfinder: ignore*/ strcpy(last, entry->mLastName); /*Flawfinder: ignore*/ return TRUE; } else { //The function signature needs to change to pass in the //length of first and last. strcpy(first,(ll_frand() < HIPPO_PROBABILITY) ? CN_HIPPOS : CN_WAITING); strcpy(last, ""  ; /*Flawfinder: ignore*/ if (!impl.isRequestPending(id)) { impl.mAskNameQueue.insert(id); } return FALSE; } } So... If the name is currently not cached, there is a one in 100 chance of getting "  hippos)" instead of "  waiting)" for any single name lookup anywhere. There is bit of hippo code in a file called llHippo.* but it doens't seem to be used anywhere currently.
|
|
Okiphia Rayna
DemonEye Benefactor
Join date: 22 Sep 2007
Posts: 2,103
|
12-11-2007 11:08
From: Farallon Greyskin Hopefully it's not against the rules to post a tiny fragment of the LL open source to the forums just for fun..  Here is the hippo code! // Constants const char* CN_WAITING = "  waiting)"; const char* CN_NOBODY = "  nobody)"; const char* CN_NONE = "  none)"; const char* CN_HIPPOS = "  hippos)"; const F32 HIPPO_PROBABILITY = 0.01f; ... BOOL LLCacheName::getName(const LLUUID& id, char* first, char* last) { if(id.isNull()) { // The function signature needs to change to pass in the // length of first and last. strcpy(first, CN_NOBODY); /*Flawfinder: ignore*/ last[0] = '\0'; return FALSE; } LLCacheNameEntry* entry = get_ptr_in_map(impl.mCache, id ); if (entry) { // The function signature needs to change to pass in the // length of first and last. strcpy(first, entry->mFirstName); /*Flawfinder: ignore*/ strcpy(last, entry->mLastName); /*Flawfinder: ignore*/ return TRUE; } else { //The function signature needs to change to pass in the //length of first and last. strcpy(first,(ll_frand() < HIPPO_PROBABILITY) ? CN_HIPPOS : CN_WAITING); strcpy(last, ""  ; /*Flawfinder: ignore*/ if (!impl.isRequestPending(id)) { impl.mAskNameQueue.insert(id); } return FALSE; } } So... If the name is currently not cached, there is a one in 100 chance of getting "  hippos)" instead of "  waiting)" for any single name lookup anywhere. There is bit of hippo code in a file called llHippo.* but it doens't seem to be used anywhere currently. THats interesting ^_^ Wait a second.. is that LSL? =P
_____________________
Owner of DemonEye Designs Custom Building and Landscaping Owner and Blogger, Okiphia's Life http://okiphiablog.blogspot.com/ 
|
|
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
|
12-11-2007 11:08
From: Okiphia Rayna I don't plan on doing it by any means, but I'd like to know why you think it's despicable?
Someone did a test once a little while back where they had non-paying camp chairs out which drew in bots, essentially making the bots not gain money. SO they were taking money away from the people who use campbots for personal gain, which in my opinion is despicable. This is what I meant.. the traffic bit would actually just be a side effect that many would consider useful.
I don't mean having actual people sit in the non-paying, maybe even put up warnings (As mentioned in that long ago thread =P)
So how's it despicable to prevent campbots from getting money? I'm truly wondering.. and I haven't really put all that much thought into it.. but will. (I mean the situation..not doing it.. I hate camping in general) And how do you ensure only bots use the camp chairs? If there's a chance of cheating actual residents out of their promised funds for what they do, it's despicable.
|
|
Farallon Greyskin
Cranky Seal
Join date: 22 Jan 2006
Posts: 491
|
12-11-2007 11:10
From: Okiphia Rayna THats interesting ^_^
Wait a second.. is that LSL? =P No, C++ but the forum software removed the tabbing 
|
|
Sonia Nagy
Registered User
Join date: 25 Mar 2007
Posts: 364
|
12-11-2007 11:10
From: someone const char* CN_WAITING = "  waiting)"; const char* CN_NOBODY = "  nobody)"; const char* CN_NONE = "  none)"; const char* CN_HIPPOS = "  hippos)"; const F32 HIPPO_PROBABILITY = 0.01f; I've seen "waiting", "nobody", and "hippos" many times. Not sure if I've seen "none".
|
|
Okiphia Rayna
DemonEye Benefactor
Join date: 22 Sep 2007
Posts: 2,103
|
12-11-2007 11:11
From: Darien Caldwell And how do you ensure only bots use the camp chairs? If there's a chance of cheating actual residents out of their promised funds for what they do, it's despicable. Signs that say 'IF YOU CAN READ THIS< DONT USE THESE. THEY DON"T PAY. YOUVE BEEN WARNED' in every common language used in SL
_____________________
Owner of DemonEye Designs Custom Building and Landscaping Owner and Blogger, Okiphia's Life http://okiphiablog.blogspot.com/ 
|
|
Farallon Greyskin
Cranky Seal
Join date: 22 Jan 2006
Posts: 491
|
12-11-2007 11:11
From: Okiphia Rayna THats interesting ^_^
Wait a second.. is that LSL? =P Heh.. C++, the forum software removed all the tabs
|
|
Kitty Barnett
Registered User
Join date: 10 May 2006
Posts: 5,586
|
12-11-2007 11:12
From: Sonia Nagy Not sure if I've seen "none". It's the "  none)" you see when something isn't set to a group.
|
|
Okiphia Rayna
DemonEye Benefactor
Join date: 22 Sep 2007
Posts: 2,103
|
12-11-2007 11:13
From: Farallon Greyskin Heh.. C++, the forum software removed all the tabs I think I might be able ti handle C++ then =P I've been meaning to learn.... lol you've inspired me XD
_____________________
Owner of DemonEye Designs Custom Building and Landscaping Owner and Blogger, Okiphia's Life http://okiphiablog.blogspot.com/ 
|
|
Sally Silvera
live music maniac
Join date: 17 Feb 2007
Posts: 2,325
|
12-11-2007 11:13
I've seen hippos on my friendslist a couple of times, thought it was kinda cute  Oh and I've spotted one Linden person a few times now, at music venues. As for the richest person in SL...... the one with the fewest, crashes, attachtment failures, inventory losses, faling to rez textures etc...... and the most real friends 
|
|
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
|
12-11-2007 11:19
From: Okiphia Rayna Signs that say
'IF YOU CAN READ THIS< DONT USE THESE. THEY DON"T PAY. YOUVE BEEN WARNED'
in every common language used in SL Well in that case, I guess it's okay ;P
|
|
Okiphia Rayna
DemonEye Benefactor
Join date: 22 Sep 2007
Posts: 2,103
|
12-11-2007 11:22
From: Darien Caldwell Well in that case, I guess it's okay ;P =P
_____________________
Owner of DemonEye Designs Custom Building and Landscaping Owner and Blogger, Okiphia's Life http://okiphiablog.blogspot.com/ 
|
|
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
|
12-11-2007 11:38
From: Sally Silvera I've seen hippos on my friendslist a couple of times, thought it was kinda cute  Oh and I've spotted one Linden person a few times now, at music venues. For more hippos, go to a sim with a name that begins with a vowel (a, e, i, o or u) and press ctrl-alt-shift-h. If it doesn't do anything, try it again a couple times.. I've also spotted a few Lindens in-world lately. Saw one last night in my home sim but she seemed really busy and didn't reply.  Also ran into Teeple last week who, of course, will always take a minute to at least say howdy. 
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!! - Go here: http://jira.secondlife.com/browse/SVC-1224- If you see "if you were logged in.." on the left, click it and log in - Click the "Vote for it" link on the left
|