Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Atomic Blaze on March 16, 2014, 06:12:55 PM

Title: Party Llamas
Post by: Atomic Blaze on March 16, 2014, 06:12:55 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3833)

Party Llamas is a port of the Magic Llamas mod for 1.1.x

It's like a lottery, except it's a llama. It dances around the screen waiting for some (un)lucky chump to catch it and when they do their karma goes up or down.

Admin configurable options include:
   Enable/Disable
   Pages llamas should not appear on
   Chances of a llama appearing
   What the good and bad llamas are called
   How many points they give/take
   The message received when you catch one.

There are no theme edits so it should be compatible with all theme variants. (I say should because if I said all I'd be held responsible for making it work with all themes)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>


Donate to the Free the Llamas fund (not necessary, but for those able and willing it does show great support)
(https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif) (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=BFK7FSXP7HWL8&lc=US&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted)
Title: Re: Party Llamas
Post by: DEEPSNUYB on March 16, 2014, 08:19:28 PM
How about telling us WTF this mod does.
Title: Re: Party Llamas
Post by: TonyMendoza on April 06, 2014, 10:24:52 PM
Heads up: It doesn't copy Party_Llama2.gif into custom themes image directories.
Not necessarily a bug that I desperately need to fix but thought I'd share this little info.
Title: Re: Party Llamas
Post by: TonyMendoza on April 06, 2014, 10:26:17 PM
Quote from: DEEPSNUYB on March 16, 2014, 08:19:28 PM
How about telling us WTF this mod does.

I don't think it matters what it does. It's a llama.  ;)

But it is supposed to increase/decrease karma when you click the moving llama.
Title: Re: Party Llamas
Post by: TheListener on April 06, 2014, 10:48:46 PM
Quote from: DEEPSNUYB on March 16, 2014, 08:19:28 PM
How about telling us WTF this mod does.

Quote from: Atomic Blaze on March 16, 2014, 06:12:55 PM

It dances around the screen waiting for some (un)lucky chump to catch it and when they do their karma goes up or down.

Some people need to learn how to read. Somehow I doubt trolls can.
Title: Re: Party Llamas
Post by: Atomic Blaze on April 07, 2014, 09:09:33 AM
Quote from: TonyMendoza on April 06, 2014, 10:24:52 PM
Heads up: It doesn't copy Party_Llama2.gif into custom themes image directories.
Not necessarily a bug that I desperately need to fix but thought I'd share this little info.
On the install page it should have asked if you wanted to copy changes to all your themes, if you did and it still didn't copy then you have a chmod error.
Title: Re: Party Llamas
Post by: The Wizard on April 16, 2014, 10:51:34 AM
Hello:

Being a mod developer myself I love to hear feedback so here are some suggestions -

1. When I installed the mod I was not taken to the Llama control area in the admin section. Because of this I had to search around the admin control center until I found the Llama control - Configuration => Modification Settings => Llama Mod

2. I expected the llama to appear right away after I installed the mod. This was not the case. I was wondering if the mod was broke, but it was installed correctly. The reason I did not see a llama was because the "Enable Party Llama" setting was not checked. This option needs to set to on.

3. Missing Llama - because I installed a fresh smf 2.0.7 the karma system was turned off. You need to note this in big letters that the Karma system must be turned on.  Configuration => Core features => karma
I think you should write some code to check if the karma is turned on, and if not turn it on.
(it took me awhile to figure this out)

4. "Chances for a llama (out of 100): 15" - the default number needs to be set to 90 otherwise the admin will not see the llama right away and again will worry if the mod works or not.

5. "Llama Speed: (0-???): 50" - the default number needs to be 90 otherwise the llama is way to fast to catch - using your default setting the llama zips around the screen and is dam hard to catch it's like chasing a Ferrari with a bicycle!

6. This is just a suggestion - add a feature where you can upload another image to replace the llama image with your own. Change is the spice of life you know. Also admins will want to customize the image to their site. You are welcome to check out my code and use what you need. I know you can just change the image and keep the llama name, but this way is easier, and as a developer you know how lazy people are.

I loved this mod years ago and used in on my old Yabbs. It's great to see this mod back - Well Done!

Title: Re: Party Llamas
Post by: jack_1985 on June 24, 2014, 06:38:50 AM
Very nice mod! You don't often see quality funny stuff like this to spice up a forum. :)

One question: any pinpoints on how I can disable a bad llama from appearing? It discourages my members a bit to try to catch them.

Thanks for the support.
Title: Re: Party Llamas
Post by: Atomic Blaze on June 24, 2014, 09:01:55 AM
Quote from: jack_1985 on June 24, 2014, 06:38:50 AM
Very nice mod! You don't often see quality funny stuff like this to spice up a forum. :)

One question: any pinpoints on how I can disable a bad llama from appearing? It discourages my members a bit to try to catch them.

Thanks for the support.

I never thought of trying to disable either, I always considered it a lottery, until I can get that added setting the points given for a bad llama to 0 will prevent bad karma from being added.

I'm updating it to 2.0.8 and testing a few new improvements.
Title: Re: Party Llamas
Post by: BigMike on October 27, 2014, 07:38:10 PM
OHHHHHHHHHHHHHHHHHHH MAN

Atomic Blaze. You sent me the files a long time ago and I never knew the mod was officially released!! I just installed your version on my semi-large forum ( posts) and it's working GREAT.

Donation has been sent! Thank you so Llama much!!

Regards,
BigMike
Title: Re: Party Llamas
Post by: BigMike on October 28, 2014, 11:24:02 AM
Ok,

Got a day under the belt with the Party Llamas and have errors on both my test and live forums. For example,

8: Undefined index: badpoints
File: /.../Sources/Load.php
Line: 1202


8: Undefined index: goodllamas
File: /.../Sources/Load.php
Line: 1203


These lines are as follows:

1200 'llamamod' => array(
1201 'goodpoints' => $profile['goodpoints'],
1202 'badpoints' => $profile['badpoints'],
1203 'goodllamas' => $profile['goodllamas'],
1204 'badllamas' => $profile['badllamas'],
1205 ),


I've double checked the install on both test and live forums and everything seems to be working as expected, just receiving these errors on ever page load.

I'll report back if I can figure it out.

Thanks
BigMike
Title: Re: Party Llamas
Post by: FireDitto on October 30, 2014, 09:33:56 PM
Yay llamas! :D
Title: Re: Party Llamas
Post by: Atomic Blaze on February 23, 2015, 09:35:10 AM
In checking out the new 2.1 beta I have found that there is no karma system with which to build Llamas around, I have a few ideas right now, but I can't be too sure of anything until a final version of 2.1 is released. Llamas is fully compatible with 2.0.9 and the mod page now reflects this.
Title: Re: Party Llamas
Post by: BigMike on February 23, 2015, 03:47:58 PM
Thank you for the update AB. Party Llamas has been cruising along nicely on our 1-million-plus community without any hiccups :)

BigMike
Title: Re: Party Llamas
Post by: Atomic Blaze on February 24, 2015, 12:42:45 PM
Any feature requests for the 2.1 versions currently accepted, I need ideas for how to implement a karma based mod with no karma system :P
Title: Re: Party Llamas
Post by: BigMike on February 24, 2015, 02:56:05 PM
What if it wasn't karma at all but rather just your own int's in the db? Would probably be some missing restrictions and session handling as a result..
Title: Re: Party Llamas
Post by: Atomic Blaze on February 24, 2015, 04:19:33 PM
I was actually thinking a admin edit profile field that shows llamas caught and possible integration with other mods (currency/points and the like)
Title: Re: Party Llamas
Post by: Atomic Blaze on May 05, 2015, 12:24:10 PM
Update 5/5/2015 to 1.0.4

New in 1.0.4:
   Added small text under "Enable" in settings that karma must be enabled
   Added configuration explanation to README
   changelog
Title: Re: Party Llamas
Post by: watchhorse on May 06, 2015, 10:24:06 AM
Quote from: BigMike on October 28, 2014, 11:24:02 AM
Ok,

Got a day under the belt with the Party Llamas and have errors on both my test and live forums. For example,

8: Undefined index: badpoints
File: /.../Sources/Load.php
Line: 1202


8: Undefined index: goodllamas
File: /.../Sources/Load.php
Line: 1203


These lines are as follows:

1200 'llamamod' => array(
1201 'goodpoints' => $profile['goodpoints'],
1202 'badpoints' => $profile['badpoints'],
1203 'goodllamas' => $profile['goodllamas'],
1204 'badllamas' => $profile['badllamas'],
1205 ),


I've double checked the install on both test and live forums and everything seems to be working as expected, just receiving these errors on ever page load.

I'll report back if I can figure it out.

Thanks
BigMike

What was the solution because i have the same errors. ???
Title: Re: Party Llamas
Post by: Atomic Blaze on May 06, 2015, 04:24:18 PM
Quote from: watchhorse on May 06, 2015, 10:24:06 AM
What was the solution because i have the same errors. ???

Are you using the latest version? Second, what other mods do you have installed?
Title: Re: Party Llamas
Post by: watchhorse on May 07, 2015, 03:21:20 AM
Quote from: Atomic Blaze on May 06, 2015, 04:24:18 PM
Quote from: watchhorse on May 06, 2015, 10:24:06 AM
What was the solution because i have the same errors. ???

Are you using the latest version? Second, what other mods do you have installed?

Yes and 1001 mods   :laugh:

Can it be a problem with the "Ultimate Profile-mod"?
The error is:

http://www.***/forum/index.php?pretty;action=profile&amp;u=8432
8: Undefined index: badllamas
Bestand: /home/***/domains/***/public_html/forum/Sources/Load.php
Regel: 1280

The lines are 1277-1278-1279-1280


1276:      'llamamod' => array(
1277: 'goodpoints' => $profile['goodpoints'],
1278:      'badpoints' => $profile['badpoints'],
1279: 'goodllamas' => $profile['goodllamas'],
1280:        'badllamas' => $profile['badllamas'],
1281: ),
Title: Re: Party Llamas
Post by: Atomic Blaze on May 07, 2015, 09:33:05 AM
It is a problem with the profile, there are fields in there that I haven't implemented yet, I'm working on a patch now.
Title: Re: Party Llamas
Post by: Atomic Blaze on May 07, 2015, 12:29:22 PM
New in 1.1.0:
   Fixed bug that threw error on profile view
   Fixed non-working disabled pages and added more defaults
   Added option to disable bad llamas by setting max points to 0
   Some other optimization things

That should fix those pesky profile view errors
Title: Re: Party Llamas
Post by: Akomine on May 10, 2015, 02:49:47 PM
Hi Atomic Blaze, I just tried (10th May 2015) to install this mod on our 2.0.9 forum using the latest version, however it came up with failed tests:

(http://i.imgur.com/Bs9GWEc.png)

Any ideas?
Title: Re: Party Llamas
Post by: Atomic Blaze on May 10, 2015, 05:57:25 PM
That looks like conflicts with another mod, the search looks for the comment and last line, I'll update it monday.
Title: Re: Party Llamas
Post by: Akomine on May 11, 2015, 03:10:21 PM
Quote from: Atomic Blaze on May 10, 2015, 05:57:25 PM
That looks like conflicts with another mod, the search looks for the comment and last line, I'll update it monday.

Thanks so much!
Title: Re: Party Llamas
Post by: Akomine on July 26, 2015, 05:33:55 PM
Quote from: Atomic Blaze on May 10, 2015, 05:57:25 PM
That looks like conflicts with another mod, the search looks for the comment and last line, I'll update it monday.

Did this fix ever get implemented?
Title: Re: Party Llamas
Post by: Atomic Blaze on July 26, 2015, 08:00:25 PM
Yes, it was actually updated the day I posted because I had some time I didn't think I would have.
Title: Re: Party Llamas
Post by: Senkusha on December 21, 2023, 10:51:58 AM
Would it be possible to make this compatible with 2.1?  I know there's no Karma, but there is the ST Shop mod, that this could be repackaged as a MOD for.