Author Topic: SMFPets Version 0.2  (Read 102616 times)

Offline Basil Beard

SMFPets Version 0.2
« on: April 30, 2007, 07:30:43 am »
This is the thread for asking me questions and/or discussing my pet mod for SMFShop.

The pet mod is currently in BETA so please only use it at your own risk.

The current release of the pet mod is version 0.2. Anyone will 0.1 or 0.0 must uninstall and then reinstall to get this update. Sorry.
If you do uninstall, BACK UP YOUR PET DATA FIRST. Because it will be zapped if you do not.

If you asked a question on the old thread and it was never addressed, please ask again here because I probably didn't see it.

You can download version 0.2 here:

http://dev.dansoftaustralia.net/frs/shownotes.php?release_id=13
Arrrrr!

Offline preddy25

Re: SMFPets Version 0.2
« Reply #1 on: April 30, 2007, 11:40:08 am »
woopee!
installation is a smooth , i backup all the pets images n pet files b4 the migration . and replace them back into the relevant folders , everything seems to be okay  except the old issue of pets pics not appearing in pets central , i previously solved that with some hacks on this board on 0.1.

which file should i look at ?

Offline Basil Beard

Re: SMFPets Version 0.2
« Reply #2 on: April 30, 2007, 11:59:07 am »
Extremely bizzare. That issue should've been fixed.  :-\
Arrrrr!

Offline preddy25

Re: SMFPets Version 0.2
« Reply #3 on: April 30, 2007, 12:15:15 pm »
hmmm looks like my booboo...your code is correct, think i mixed up with the old .1 files into the new ones...
its just a problem where $boardurl is not declare in the function..i check your packages files and its correct!

hehee..thanks !

oh ya one more thing , you dont intend to include the kill pets function into later releases? i gotta put them back again now..

Offline Basil Beard

Re: SMFPets Version 0.2
« Reply #4 on: April 30, 2007, 01:10:10 pm »
A kill function might be added later. More likely it would simply be done via an item.  :)
Arrrrr!

Offline preddy25

Re: SMFPets Version 0.2
« Reply #5 on: April 30, 2007, 01:21:47 pm »
oh that would be cool..item ...Pet Poison...20k...lol

0.2 changes
Icon links to pets by posts. *Images have been fixed. *Pet leader board now exists. *Pet food has been given an update. *Other minor stuff, I think.

basil , wad do u mean by links pets by post?

and i m a little lost on this when u creating pet food item
"phrase to output upon use: (use xNAMEx for pet name, xHUNGERx for hunger level and xHAPPYx for happiness level"
what should i enter in the blank?

« Last Edit: April 30, 2007, 01:44:27 pm by preddy25 »

Honcho

  • Guest
Re: SMFPets Version 0.2
« Reply #6 on: April 30, 2007, 06:54:49 pm »


Although this isn't probably a shop problem it seems to be occuring anytime I install a mod which uses the display template, but it occured while installing SMF Pets so I was wondering if any of you boffins could point me in the right direction



any ideas?



Offline Basil Beard

Re: SMFPets Version 0.2
« Reply #7 on: April 30, 2007, 10:31:09 pm »
So many stuff effect display.template that they are bound to cross eachother. Just look inside the install script and find what changes are made to the display script and go from there.

If you notice, preddy, there is now a little blue paw icon by your posts that links to your pets. =)

Foodwise, say you put

xNAMEx first uses the bagel as a frisbee and then eats it. Its happiness is now xHAPPYx and its hunger is now xHUNGERx

And your pet was name "Bob" and had happiness and hunger 10. You would get

Bob first uses the bagel as a frisbee and then eats it. Its happiness is now 10 and its hunger is now 10
Arrrrr!

Honcho

  • Guest
Re: SMFPets Version 0.2
« Reply #8 on: April 30, 2007, 11:06:37 pm »
I get this error now when I click on my Shop link:

Fatal error: Cannot redeclare check_pets() (previously declared in /homepages/20/d132504958/htdocs/kosforum/Sources/shop/Shop-Subs.php:127) in /homepages/20/d132504958/htdocs/kosforum/Sources/shop/Shop-Subs.php on line 173

Offline Basil Beard

Re: SMFPets Version 0.2
« Reply #9 on: April 30, 2007, 11:47:44 pm »
Look in Shop-Subs. Maybe I accidentally added check_pets() function twice.  :(
Arrrrr!

Honcho

  • Guest
Re: SMFPets Version 0.2
« Reply #10 on: April 30, 2007, 11:54:33 pm »
Look in Shop-Subs. Maybe I accidentally added check_pets() function twice.  :(

I sussed that out thank Basil.  Was that you or just a leftover from my previous installation of 0.0 and 0.1?

Offline Basil Beard

Re: SMFPets Version 0.2
« Reply #11 on: May 01, 2007, 12:03:23 am »
It very well could've been. Which would've meant an error with the uninstall rather that an error with the package itself.  :buck2:
Arrrrr!

Offline preddy25

Re: SMFPets Version 0.2
« Reply #12 on: May 01, 2007, 01:14:56 am »
the uninstalls from the previous 0.0 n 0.1 were pretty sloppy..due to the hack i put in too much hacks from this forums myself..hheheh ;D...even though some mods and files were "successfully" removed , they were still there n traces of it in the files..

so anyone upgrading to 0.2 , its better to manually do a clean up of the files just to avoid alot of confusion i had earlier...but the pet breeds files and pets database should be backup before anything happens

Offline Basil Beard

Re: SMFPets Version 0.2
« Reply #13 on: May 01, 2007, 02:59:42 am »
Well I mean, the uninstall should work because it simply reverses everything the install did. But if you changed anything around by yourself, then yeah, the uninstall wouldn't work. (Note that the uninstall should just remove the pet-engine.php and Shop-pets.php files and replace them, so you do not need to worry about changes made there)
Arrrrr!

Honcho

  • Guest
Re: SMFPets Version 0.2
« Reply #14 on: May 01, 2007, 05:43:49 am »
Well everything's working great now, thanks guys!