Author Topic: SMFPets is Finally Here (0.1 out)  (Read 103242 times)

Offline perplexed

Re: SMFPets is Finally Here
« Reply #30 on: March 01, 2007, 09:29:18 am »
I installed this today and hopefully did it right.  I uploaded a cat and copied the blank_pet.php and called it cat_pet.php

I uploaded a cat imge to the pet images folder

If I go to the hatchery I can see the cat image, I bought a cat.  When I look in the pet central at my pet there is no image - see attachment.

did I do something wrong?  should there be a pet pic there?

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

Alexander

  • Guest
Re: SMFPets is Finally Here
« Reply #31 on: March 01, 2007, 10:25:35 am »

Offline Basil Beard

Re: SMFPets is Finally Here
« Reply #32 on: March 01, 2007, 10:37:23 am »
Yeah. Thats a glitch, I guess. I had to code a C++ homework project tonight, and wasn't able to fix anything. Should have time tomorrow though =P.
Arrrrr!

Offline TechnoDragon

Re: SMFPets is Finally Here
« Reply #33 on: March 01, 2007, 11:52:33 am »
Thanks for the info BasilBeard!  I did what you suggested using the switch...and it is now working perfectly!  I also did a bit of editing so that the level up button disappears while the pet is training!  I have also begun working on a variety of different skills for pets and several pets themselves!

With your permission, my partner helping me write my avatar maker (which also combines with the shop) would like to take this to a new level...we want to code in a "combat mod" of sorts for this....
Don't tell me to get into shape...I have a shape...It is round!


Offline Basil Beard

Re: SMFPets is Finally Here
« Reply #34 on: March 01, 2007, 12:44:14 pm »
You mean like a combat system? That would be totally awesome... because it means I wouldn't have to do it. XD!
Arrrrr!

Offline TechnoDragon

Re: SMFPets is Finally Here
« Reply #35 on: March 01, 2007, 02:07:39 pm »
You mean like a combat system? That would be totally awesome... because it means I wouldn't have to do it. XD!

Yes actually that is exactly what i mean...we are putting the final touches on an rpg system using my avatar maker, and wanted to use your pet mod to create a forum battle system using the pets and the avatars people make....
Don't tell me to get into shape...I have a shape...It is round!


Offline xfollowthereaperx

Re: SMFPets is Finally Here
« Reply #36 on: March 01, 2007, 04:15:58 pm »
Thanks for the info BasilBeard!  I did what you suggested using the switch...and it is now working perfectly!  I also did a bit of editing so that the level up button disappears while the pet is training!  I have also begun working on a variety of different skills for pets and several pets themselves!

With your permission, my partner helping me write my avatar maker (which also combines with the shop) would like to take this to a new level...we want to code in a "combat mod" of sorts for this....
I love you so much  :smitten:

Offline perplexed

Re: SMFPets is Finally Here
« Reply #37 on: March 01, 2007, 10:04:54 pm »
Thanks Basil Beard. :)

Also, about the Pet Central problems, this should fix it:

In Pet Engine Find:
Code: [Select]
<img border='0' width='120' height='120' src='".$boardurl."/Sources/shop/pet_images/".$this->breed_img."' alt='".$this->breed."' />Replace with:
Code: [Select]
<center><img border='0' src='".$boardurl."$boardurl."[b]/[your forum directory[/b]]/Sources/shop/pet_images/".$this->breed_img."' alt='".$this->breed."' /></center>I'm not 100% sure it'll fix it, but it will also make the image not resize and will be centered. Also do it for both codes you find.

If my fix doesn't work try:
$boardurl."/$sourcedir/shop/pet_images replacing with $boardurl."/[your forum directory]/Sources/shop/pet_images

Edit-
Also for the rest of the image resizing:

Find in Shop Pets:
Code: [Select]
<img border='0' ' src='".$boardurl."/Sources/shop/pet_images/".$pet->breed_img."' alt='".$pet->breed."' />Replace with:
Code: [Select]
<center><img border='0' ' src='".$boardurl."/Sources/shop/pet_images/".$pet->breed_img."' alt='".$pet->breed."' /></center>


I can't get this to work,  I get parse errors:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/mysite/public_html/testforum/Sources/shop/pet_engine.php on line 76

I still have no pet pictures in pet central   :'( :'(
« Last Edit: March 01, 2007, 10:11:33 pm by perplexed »
Estne volumen in toga, an solum tibi libet me videre?

Offline tomekent

Re: SMFPets is Finally Here
« Reply #38 on: March 02, 2007, 07:05:18 am »
this is some great stuff, i'd love to see a new topic for all the skills, so we could just add them to our pets.

Offline xfollowthereaperx

Re: SMFPets is Finally Here
« Reply #39 on: March 02, 2007, 08:03:21 am »
Here are some stats that I think should be included if the combat system is going to be put in place.

Health
Happiness
Hunger
Attack
Defense
Stamina/Magic

I think Hunger and Happiness should be very basic and users shouldn't have to worry too much about these.
I think that your pets should faint instead of die so that it's easier on the user who owns them.

Hope to see these things pretty soon, and be sure to make the pets as basic as possible  O0

Offline Daniel15

Re: SMFPets is Finally Here
« Reply #40 on: March 02, 2007, 05:06:09 pm »
Nice work Basil Beard, people have been asking me about this for ages  O0

The number one rule of coding with SMF is: "If it is not a template file, DO NOT ECHO" =D.
SMFShop, you mean ;). SMF uses echo statements in the templates, but the way SMFShop works is different (yeah, I know, it's fundamentally flawed, but I wanted to have nice self-contained items :)

Quote
Also, simply to have nicer code, I would suggest
For nicer code, I'd suggest that everyone read through http://custom.simplemachines.org/mods/guidelines.php :D

Offline tomekent

Re: SMFPets is Finally Here
« Reply #41 on: March 02, 2007, 05:20:36 pm »
is there a way that you could view each others pets?

Offline TechnoDragon

Re: SMFPets is Finally Here
« Reply #42 on: March 02, 2007, 09:34:39 pm »
There is a link on every profile to view the pets that a particular member has
Don't tell me to get into shape...I have a shape...It is round!


Offline tomekent

Re: SMFPets is Finally Here
« Reply #43 on: March 02, 2007, 10:52:21 pm »
im using a different theme though so it doesnt show up

Offline TechnoDragon

Re: SMFPets is Finally Here
« Reply #44 on: March 02, 2007, 10:53:34 pm »
You'll have to make the edit to the profile.template.php to show the link...
Don't tell me to get into shape...I have a shape...It is round!