Author Topic: SMFPets Version 0.2  (Read 159925 times)

Offline Slots

Re: SMFPets Version 0.2
« Reply #225 on: September 22, 2008, 03:06:25 pm »
Hey all.
It think this mod is rather neat, and wouldn't mind it on my forum. The only thing is that when I try to install it, it comes with one error.
Code: [Select]
18.  Execute Modification  ./Sources/Load.php  Test failed
Would this be a conflict with one of my other mods? Or is there something I have to prepare before installing this mod?

Offline Slots

Re: SMFPets Version 0.2
« Reply #226 on: September 25, 2008, 02:53:04 pm »
bump

Offline Ace1564

Re: SMFPets Version 0.2
« Reply #227 on: September 25, 2008, 07:26:43 pm »
Hey all.
It think this mod is rather neat, and wouldn't mind it on my forum. The only thing is that when I try to install it, it comes with one error.
Code: [Select]
18.  Execute Modification  ./Sources/Load.php  Test failed
Would this be a conflict with one of my other mods? Or is there something I have to prepare before installing this mod?


what mods you installed?

Offline JKarlaveagen

Re: SMFPets Version 0.2
« Reply #228 on: September 26, 2008, 02:35:44 am »
....erm...why not just slip in a manual edit in load.php?

Offline Slots

Re: SMFPets Version 0.2
« Reply #229 on: September 29, 2008, 09:18:26 pm »
....erm...why not just slip in a manual edit in load.php?

Ok, how would I do that?

Hey all.
It think this mod is rather neat, and wouldn't mind it on my forum. The only thing is that when I try to install it, it comes with one error.
Code: [Select]
18.  Execute Modification  ./Sources/Load.php  Test failed
Would this be a conflict with one of my other mods? Or is there something I have to prepare before installing this mod?

Quite a few... That's why I thought there may be a conflict.

what mods you installed?

Offline dshsshdsagsdsa

Re: SMFPets Version 0.2
« Reply #230 on: November 01, 2008, 08:48:43 am »
Load failed for me too....

Offline zakwan

Re: SMFPets Version 0.2
« Reply #231 on: November 27, 2008, 10:21:45 pm »
I got error on installing!

1.     Execute Code     installScript.php     
2.    Extract Tree    ./Sources/shop/pets_breeds    
3.    Extract Tree    ./Sources/shop/pet_images    
4.    Extract Tree    ./Sources/shop/starter_pets    
5.    Extract File    ./Sources/shop/Shop-Pets.php    
6.    Extract File    ./Sources/shop/pet_engine.php    
7.    Extract File    ./Sources/shop/items/Cage.php    
8.    Extract File    ./Sources/shop/items/Food.php    
9.    Extract File    ./Themes/default/default/images/icons/pets.gif    
10.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
11.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
12.    Execute Modification    ./Themes/default/languages/ManagePermissions.english.php    Test successful
13.    Execute Modification    ./Themes/default/languages/Shop.english.php    Test successful
14.    Execute Modification    ./Themes/default/Shop.template.php    Test successful
15.    Execute Modification    ./Sources/shop/Shop.php    Test successful
16.    Execute Modification    ./Sources/shop/Shop-Subs.php    Test successful
17.    Execute Modification    ./Sources/Profile.php    Test failed
18.    Execute Modification    ./Sources/Load.php    Test successful
19.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
20.    Execute Modification    ./Themes/default/Display.template.php    Test successful

Installed

1.     phpBB3_Login_Fix     1.0     [ Uninstall ]
2.    TinyPortal    1.063    [ Uninstall ]
3.    Advanced AJAX Shoutbox    1.21    [ Uninstall ]
4.    SMFChess    1.1    [ Uninstall ]
5.    Ultimate Profile    0.8.5    [ Uninstall ]
6.    MoodManager Light    3.0    [ Uninstall ]
7.    SMFShop    3.0    [ Uninstall ]
8.    Shop Item: Profile Image    0.1    [ Uninstall ]
9.    Shop Item: Change Display Name CSS    1.0    [ Uninstall ]
« Last Edit: November 27, 2008, 10:24:09 pm by zakwan »

Offline Aruta

Re: SMFPets Version 0.2
« Reply #232 on: November 27, 2008, 10:39:07 pm »

mmh. Perhaps its a conflict with "Shop Item: Profile Image" mod.

Not a big problem anyway. Pets will probably still work, but they wont show up in the user profiles.

You can offcourse manually edit your profile.php after you install the pet mod. You have to add:

Code: [Select]
//Begin Shop-Pets Mod
//Show the pets owned by the member
function showPets($memID)
{
global $txt, $user_info, $scripturl, $modSettings, $db_prefix;
global $context, $user_profile, $ID_MEMBER, $sourcedir;

loadLanguage('Shop');

$result = db_query("
SELECT *
FROM {$db_prefix}shop_pets
WHERE ownerid = $memID", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result)) {
require($sourcedir . '/shop/pet_engine.php');
require($sourcedir . '/shop/pets_breeds/' . $row['breed'] . '.php');
eval('$temp = new pet_' . $row['breed'] . ';');
$temp->load_values($row['pet_id']);
$context['pets'][$row['pet_id']] = $temp;
}
}

//Loads the pets up!
function load_pets() {
global $sourcedir;

require($sourcedir . '/shop/pet_engine.php');
if ($handle = opendir($sourcedir . "/shop/pets_breeds/")) {
while (false !== ($file = readdir($handle))) {
if (substr($file, -4) == '.php')
{
// Get the name (file name without .php extension)
$name = basename($file, '.php');
require($sourcedir . '/shop/pets_breeds/' . $file);
}
}
}
}

Somewhere before a line that at least looks like this:

Code: [Select]
foreach ($context['posts'] as $counter => $dummy)
$context['posts'][$counter]['can_delete'] &= $context['posts'][$counter]['delete_possible'];
}


Offline zakwan

Re: SMFPets Version 0.2
« Reply #233 on: November 27, 2008, 11:46:41 pm »
Thanks for the fast support..
Solved my problem..

Offline chris345

Re: SMFPets Version 0.2
« Reply #234 on: November 29, 2008, 09:05:03 am »
anyway to make this work with smf 2.0 beta 4...?

Offline sakpank

Re: SMFPets Version 0.2
« Reply #235 on: December 23, 2008, 03:49:39 am »
anyone have idea to show pet image in poster profile instead viewpet button?

I try to use "SMFShop Inventory Post Modification" as a guide but no luck. this is harder then my php skill. XD

Offline kuwakchai

Re: SMFPets Version 0.2
« Reply #236 on: December 30, 2008, 02:49:15 pm »
thanks for the nice mod!

i got a question. i would like to increase pet's happiness instead of increase karma when using the skill. i try edit the pet template but no luck. hope anyone kind enough to show me how to do it. :)

Offline perplexed

Re: SMFPets Version 0.2
« Reply #237 on: January 20, 2009, 02:58:45 am »
I don't know if anyone has seen this but it's quite a phenomenon

http://dragcave.net

Basically it involves stealing dragon eggs, clicking on them a lot until they hatch - or die if you don't click enough.  And then when they grow up you can breed them and create more eggs.

People go a bit crazy over this lol

Anyway, it would be good if the Pets mod could offer something similar to this hatching/maturing/breeding idea between members' pets.

I can't code anything so I will leave it up to the experts but I think it would be pretty cool if it could be achieved - not just dragons but any kind of pet.


Estne volumen in toga, an solum tibi libet me videre?

Offline Imagine

Re: SMFPets Version 0.2
« Reply #238 on: February 26, 2009, 10:54:03 am »
Anyone willing to try and convert this to work with SMF 2.0 RC1?

I've tried, but I don't quite understand the new database structure yet.

Offline marcus

Re: SMFPets Version 0.2
« Reply #239 on: March 03, 2009, 10:53:13 am »
Hello, I like so much download the SMFPets, but the site be off line or just I can't enter in the site. I like do you upload in another site.

Thank's