PDA

View Full Version : vB3 Pets


AutomatikStudio
01-29-2004, 10:00 PM
vB3 Pets Beta v0.2

THIS HACK IS NOW IN THE FULL RELEASES SECTION IN THIS (https://vborg.vbsupport.ru/showthread.php?t=61008) THREAD.

apokphp
01-30-2004, 02:18 AM
screen shots?

zajako
01-30-2004, 02:22 AM
yeah some screen shots would be nice

AutomatikStudio
01-30-2004, 02:57 AM
Thumbnails attached. The first one is of the postbit and the second is what get's added to the "profile" section of the User CP.

Cyricx
01-30-2004, 05:21 AM
Excellent!!

I was waiting for this :D

Thanks!

Cyricx

memobug
01-30-2004, 05:42 AM
This looks pretty cute, but I think I'd want to have some (four?) images of each pet in various states of health (from bright-eyed and bushy-tailed to pushing up daisies).

That would be rather cool indeed.

Regards,

Matt

AutomatikStudio
01-30-2004, 05:44 AM
This looks pretty cute, but I think I'd want to have some (four?) images of each pet in various states of health (from bright-eyed and bushy-tailed to pushing up daisies).

That would be rather cool indeed.

Regards,

MattI plan on developing this MUCH futher. Including states of health. I think I'll actually go ahead and list some planned things for the future in the first post. Yipee.

Cyricx
01-30-2004, 06:32 AM
Question :)

What about someone like me who has other animals that I want to add?

I'm trying to figure it out, but for the life of me, I can't seem to. It could be the 2 hours of sleep in 72 hours, or it's just not there.

Cyricx

PixelFx
01-30-2004, 07:09 AM
cool :P

memobug
01-30-2004, 08:46 AM
Some Ideas for you

1. Click on someone else's pet to give it some TLC or energy when it gets low. Kind of like pet sitting. If no one likes you, they could let your pet croak while you were on vacation. Your pet could get sick and people could virtually pet it to nurture it back to health.

2. When you are online your pet could be animated, and when you're logged off it could be asleep. Pet animations could be done in FLASH.

3. Pet development kit (PDK) could be provided to let webmasters create forum-specific pets and behaviors.

4. If you misbehave on the forum, your pet could be incarcerated or sent to animal control.

5. Your pet could get loose sometime and visit someone else who doesn't have a pet. It might come back, or it might not, depending on how they treat it.

6. Your pet could be petnapped by someone if they give it more attention than you do

7. Your pet could do stupid pet tricks

8. Your pet could be malicious and bite people who try to pet it

9. Your pet could be a chamaeleon, and its color would always match the table cell background color, so people would have a hard time seeing it.

10. Your pets, like huge sig files, could really irritate people and stop them from visiting your forum, so you might have a user switch to turn off pet display in case someone is allergic to vbpets.

NTLDR
01-30-2004, 11:18 AM
+For some reason when you make your selections for type, gender, and name they weren't getting inserted into the database so I had to use $_POST to make it work. That obviously needs fixing. Any help there would be good.

I wouldn't really say that needs fixing, however if your reffering to say $_POST['gender'] working and $gender not working then you need to run the variables through the globalize() function, take alook at it in functions.php and how vB's file use it. I assume thats the issue, but I haven't looked at your code yet ;)

I also asume if this is just a straight forward port you have the origional authors permission?

AutomatikStudio
01-30-2004, 01:17 PM
Question :)
What about someone like me who has other animals that I want to add?
I'm trying to figure it out, but for the life of me, I can't seem to. It could be the 2 hours of sleep in 72 hours, or it's just not there.
CyricxIt's not really as easy as just "adding" one...you have to make multiple changes. You also would have to have a male and female version of your new pets, otherwise you'll have a broken image in your postbit. If you're still interested, let me know and I'll type it all out. In future versions I'll include a guide to adding new pets...possibly even a way to add them through the Admin CP

I wouldn't really say that needs fixing, however if your reffering to say $_POST['gender'] working and $gender not working then you need to run the variables through the globalize() function, take alook at it in functions.php and how vB's file use it. I assume thats the issue, but I haven't looked at your code yet ;)
Yes that is indeed what I'm refering too...I'll take a look in functions.php. Thanks!

I also asume if this is just a straight forward port you have the origional authors permission?
Yep. I actually just got done talking to Ember (original Pet hack creator).

AutomatikStudio
01-30-2004, 01:46 PM
I wouldn't really say that needs fixing, however if your reffering to say $_POST['gender'] working and $gender not working then you need to run the variables through the globalize() function, take alook at it in functions.php and how vB's file use it. I assume thats the issue, but I haven't looked at your code yet ;)Good googly moogly...I just read almost all 3600 lines of functions.php and still can't figure out exactly where to put what. Any ideas?

NTLDR
01-30-2004, 01:50 PM
Instead of:

//##### Begin vB3 Pets #####
$pettype = $_POST['pettype'];
$petgender = $_POST['petgender'];
$petname = $_POST['petname'];
//##### End vB3 Pets #####

Use:


//##### Begin vB3 Pets #####
globalize($_POST, array(
'pettype' => INT,
'petgender' => INT,
'petname' => STR_NOHTML
));
//##### End vB3 Pets #####

AutomatikStudio
01-30-2004, 01:51 PM
So I don't need to worry about functions.php now?

NTLDR
01-30-2004, 02:04 PM
The globalize function is in functions.php which will be required already, so its just that block you need.

C.Birch
01-30-2004, 02:08 PM
installed and working but would love to see the other things that are planned, any idea when that might be btw?

AutomatikStudio
01-30-2004, 02:11 PM
installed and working but would love to see the other things that are planned, any idea when that might be btw?Depends on how much other people wanna help out ;) . But the first order of business is to get this out of Beta, which I hope will be later today. And then after that I'll begin work on some new features.

C.Birch
01-30-2004, 02:13 PM
lol i would say i would help but.......... im over worked has it is with a number of things plus a full time job lol.

one prob i found you got a missing img for when someone has no pet, also it might be better if it all the pet info dont show in a user's postbit who dont have a pet.

AutomatikStudio
01-30-2004, 02:16 PM
Instead of:

//##### Begin vB3 Pets #####
$pettype = $_POST['pettype'];
$petgender = $_POST['petgender'];
$petname = $_POST['petname'];
//##### End vB3 Pets #####

Use:


//##### Begin vB3 Pets #####
globalize($_POST, array(
'pettype' => INT,
'petgender' = > INT,
'petname' => STR_NOHTML
));
//##### End vB3 Pets #####
I get a parse error on 'petgender' => INT...it says expecting `')''....

NTLDR
01-30-2004, 02:20 PM
A space managed to slip in, change = > to => on that line.

Cassidy
01-30-2004, 02:22 PM
Ooh i cant wait to see this finished ^_^ To have them battling would be the best (Goldfish wars XDXD)

Some RPG forums *like mine* would love to be able to have them evolve *super goldfish XD* I'd love to see store intregation and battling the most ^_^ Must keep updated on this hack!

AutomatikStudio
01-30-2004, 02:27 PM
one prob i found you got a missing img for when someone has no pet, also it might be better if it all the pet info dont show in a user's postbit who dont have a pet.ZIP file updated. To fix the broken image problem, upload the ".gif" file in the "pets" folder...I'll work on not showing the pet table at all if they haven't selected one.

alexparksonline
01-30-2004, 02:35 PM
Very good hack thanxs very much I will install later :D

NyCwill
01-30-2004, 04:52 PM
wow this hack is neat, but I want to wait till later to install it.......:) good job

Cyricx
01-30-2004, 05:06 PM
I'll like that. :)

Because I host multiple communities under one community from different games. So, I want to offer a wide array of choices.

Cyricx

C.Birch
01-30-2004, 08:44 PM
updated to beta 0.2 working fine :)

AutomatikStudio
01-30-2004, 08:47 PM
updated to beta 0.2 working fine :)Great! I'm REALLY close to being able to make this release Gold...just that one last thing listed in the first post that I'm waiting on.

C.Birch
01-30-2004, 08:59 PM
thats good news hopefully you be able to get the other plans added has fast has your getting things done so far. great job so far :)

Link14716
01-30-2004, 09:57 PM
Why not use profile fields for this? It'd probably cut down on the file edits a lot. ;)

TheSonic
01-30-2004, 10:36 PM
Installed !

Great hack, if you add the battle-feature, this would become one of my favorites :D

*clicking install*

TheComputerGuy
01-31-2004, 11:35 AM
Installed Successfully on www.RuNaked.com/forums if you need a live demo.

gmarik
01-31-2004, 03:00 PM
It's like a Tamagochi?

TheComputerGuy
01-31-2004, 03:17 PM
It's like a Tamagochi?
yep! It sure is like tomagotchi