Author Topic: SMFPets Version 0.2  (Read 161861 times)

Offline Basil Beard

Re: SMFPets Version 0.2
« Reply #45 on: May 14, 2007, 11:29:57 pm »
Are you using the latest version? Becuase your problem has to do with apparent quote marks in the pet description--an issue I thought i fixed. <_<
Arrrrr!

Offline akee

Re: SMFPets Version 0.2
« Reply #46 on: May 15, 2007, 11:52:37 pm »
yes, im using the current version..

Offline Celdric

Re: SMFPets Version 0.2
« Reply #47 on: May 16, 2007, 06:08:26 pm »
Hi.  :)  I just wanted to install pet 0.2. I'm using Shop 3 and test was successfull. But when I clicked install I got the error below. I'm using the default template and have a couple more mods installed, smf gallery for example. So I don't know what could be wrong.


Code: [Select]
Fatal error: packageinstall() [function.require]: Failed opening required '/home/++++++/public_html/forums/Packages/temp/./installScript.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/++++++/public_html/forums/Sources/Packages.php on line 552

Offline David

Re: SMFPets Version 0.2
« Reply #48 on: May 16, 2007, 06:22:08 pm »
In order to work on a package the package installer needs to make a temp directory within the Packages directory...it looks to me like it tried to do so but couldn't...you might try creating the temp directory via ftp and with it in place trying again to install the mod.

 I would also suggest that you go to:

 ACP>Packages>Options>Installation Options

...and fill in your ftp data then use Cleanup Permissions on that page and make all files writable...you would also do well to check via your ftp client that the CHMOD permissions really have changed to either 775 or 777...this should be done prior to installing any mod...after installation you can use the same system to lower the permissions on your files if you so wish.

Offline Celdric

Re: SMFPets Version 0.2
« Reply #49 on: May 16, 2007, 06:44:53 pm »
Thanks for the quick response. Well, I created a folder temp and tried again. This time it worked. But it seems that the first attempt worked also even when I got the fatal error. Because now I have all code parts installed twice. That's silly.  :-\

Offline David

Re: SMFPets Version 0.2
« Reply #50 on: May 16, 2007, 06:47:26 pm »
Just remember that SMF does advise you to back up your files and database prior to installing any mod...now you know why...most of us learn the hard way from time to time so you're in good company.

Offline Celdric

Re: SMFPets Version 0.2
« Reply #51 on: May 16, 2007, 10:30:13 pm »
Well, I use to make daily backups. As you mentioned, I learned it the hard way.  ;D


I removed the double code parts manually. However, then I had to notice that some files weren't installed, but still in the temp folder. I must say, I never had such a crazy package installation. Seems things are working now. I have just to find out how to use this mod. Got anyone else the idea, that the mod could be perfect to create "penthouse pets"? lol

Offline David

Re: SMFPets Version 0.2
« Reply #52 on: May 16, 2007, 10:56:24 pm »
 It's fun being a forum admin isn't it? Actually, and to be fair to Basil B, the mod isn't to blame for the problems you had. Your forum had file permissions issues by the looks of it and that threw the  package installer off.

 "Penthouse Pets" Tsk!  :angel:

Offline Celdric

Re: SMFPets Version 0.2
« Reply #53 on: May 16, 2007, 11:25:56 pm »
I don't blame anyone.  :) The mod is a great job. I'm sure that my members will love it.  Not sure although if the file permissions are the problem because other packages got installed without problems.

Hey, works nice with the ph-pets. Just purchased a test fluffy-bunny called Lucille. She is wearing a read bikini. lol

Serious, I'm wondering, if all breeds are in a unlimited number available? Or can I limit the amount like a can do it with other stock items?

Offline David

Re: SMFPets Version 0.2
« Reply #54 on: May 16, 2007, 11:55:05 pm »
 The breeds are in unlimited supply as you don't go through the same system as with other items and thus don't add x number of each to the shop...the cost of each pet is, probably, your best limiter on their numbers. If you want more control than that you'd best put it to Basil B as a feature request.

 I'd take a bet with you that there would have been problems with future installs of other mods given the setup of your forum...the missing temp directory issue is a well known problem.

 Um "read bikini"...with my bad eyesight and without my glasses I'd have to get awfully close to read anything...

Offline Celdric

Re: SMFPets Version 0.2
« Reply #55 on: May 17, 2007, 12:14:12 am »
 ;D I know what you mean, I'm wearing glasses too.

Thanks for the info. Okay, perhaps I should post it as feature request.

Offline Celdric

Re: SMFPets Version 0.2
« Reply #56 on: May 19, 2007, 11:49:29 pm »
Well, in general found out how things work. But I have 2 problems I can't solve. First, I'm using 2 of the starter pets. Bunny and Lion. They both have more than one skills as far as I can see.

$this->skills_cnt = 4;

And the required functions are also there. Nonetheless in the scroll down menu only 1 skill is showing. 


My second problem, I'm using SMF + Joomla bridge. When I trained a pet or tried to use a skill and then click the return link, I land on the link

forums/index.php?action=shop;do=pets

but the correct link would be

index.php?option=com_smf&Itemid=56&action=shop;do=pets

I'm no php programmer. So I would be happy about a hint how I can fix the links problem. Perhaps I have to edit some code?


Offline David

Re: SMFPets Version 0.2
« Reply #57 on: May 20, 2007, 12:13:39 am »
Seeing as this is only v0.2 of beta software I trust you're using it on a test site not a live one...thus you might try first removing the Joomla bridge and seeing if it works properly without that in place. I suspect that both your problems are related to the Joomla addition so you may well find that without it all is well.

 If it does work without Joomla bridging in place then we'd best hope that Basil B may have some thoughts about it and/or may consider adding support for Joomla bridging in a later version.

 If it still doesn't work properly with the Joomla bridge out of the way perhaps you'd try it on an unmodified and fresh test forum on a fresh database and thus see if there's some server issue playing with it...supposing it works in that setting then slowly add in the mods etc you wish to use and see if it keeps working...you should thus be able to pinpoint any problem add on.

 It's all part of beta testing...

Offline Celdric

Re: SMFPets Version 0.2
« Reply #58 on: May 20, 2007, 12:44:16 am »
Thanks for your response. I don't think that the bridge causes the skills problem.

TechnoDragon reported the same problem. I think it's on page 5.

Code: [Select]
For some reason the pet mod will not read anything but the first skill...I have them set properly ....
http://www.daniel15.com/forum/index.php/topic,642.45.html

Seems he could solve the problem. Though I have no idea how.

[EDIT] Well, I could solve the skill issue. But I would still be happy about some help in the backlink matter. :)
« Last Edit: May 20, 2007, 01:55:58 am by Celdric »

Offline David

Re: SMFPets Version 0.2
« Reply #59 on: May 20, 2007, 01:56:16 am »
 Ah...that was with v0.1. I had thought all those problems were fixed in v0.2. You should use the pets files that are with v2.0...I mention this in case you are using the old ones. I put v0.2 on a fresh test site so there was no question of any left over issues from v0.1 Did your installation have v0.1 on it at some stage?