HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Making threads to link to banned members content grants an automatic ban
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 Tired of small pets?

View previous topic View next topic Go down 
AuthorMessage
Komaeda Nagito
Very Helpful
Very Helpful
avatar

Server : IE
Male Posts : 1320
Join date : 2011-12-25
Age : 25
Location : KY

PostSubject: Tired of small pets?   Tue Oct 09, 2012 3:45 pm

When a Pet is tamed they become very small as a matter of fact they go back to the Meshs's original size.

I noticed a lot people get pissy and overall rude when there "Hard earned" pet goes small.

So I am taking free fast requests to Scale your Preys Size by however much you want. You need to remember if it isnt a Prey originally in IT You have to send it to me in order to Scale it for you. Tell me what prey it is and now many times you want me to scale it. Leave a comment here and You should get a Reply within a hour if I'm awake.
Back to top Go down
Bagels



Female Posts : 31
Join date : 2012-11-21
Location : IN YO PANTS 8D

PostSubject: Re: Tired of small pets?   Sat Dec 29, 2012 1:16 am

Can u scale all the animals? Sorry if I sound greedy.
Back to top Go down
http://TheCrystalElement.proboards.com
Komaeda Nagito
Very Helpful
Very Helpful
avatar

Server : IE
Male Posts : 1320
Join date : 2011-12-25
Age : 25
Location : KY

PostSubject: Re: Tired of small pets?   Sat Dec 29, 2012 1:26 am

wow totally forgot about this thread. I will do a max of 3 and I need you to send em to me.
Back to top Go down
lazyzim

™
avatar

Server : Dragon's Den
Male Posts : 740
Join date : 2011-11-27

PostSubject: Re: Tired of small pets?   Sat Dec 29, 2012 5:32 am

Yes great idea Nowe,
I rescaled all the critters in Dragon's Den so that there would be no tiny pets for the players.
I suggest however for critters like T-Rex and Bronto and Dragons it's best not to alllow the pets to
be full size unless you are prepared for the lag issues and the fact they get in the way all the time.
~Lazyzim~
Back to top Go down
Komaeda Nagito
Very Helpful
Very Helpful
avatar

Server : IE
Male Posts : 1320
Join date : 2011-12-25
Age : 25
Location : KY

PostSubject: Re: Tired of small pets?   Sat Dec 29, 2012 2:21 pm

lazyzim wrote:
Yes great idea Nowe,
I rescaled all the critters in Dragon's Den so that there would be no tiny pets for the players.
I suggest however for critters like T-Rex and Bronto and Dragons it's best not to alllow the pets to
be full size unless you are prepared for the lag issues and the fact they get in the way all the time.
~Lazyzim~


Yeaah learned that the hard way on a private server. Went into default and nothing but dragon butts in my face
Back to top Go down
lazyzim

™
avatar

Server : Dragon's Den
Male Posts : 740
Join date : 2011-11-27

PostSubject: Re: Tired of small pets?   Sat Dec 29, 2012 2:38 pm

Nowe wrote:
lazyzim wrote:
Yes great idea Nowe,
I rescaled all the critters in Dragon's Den so that there would be no tiny pets for the players.
I suggest however for critters like T-Rex and Bronto and Dragons it's best not to alllow the pets to
be full size unless you are prepared for the lag issues and the fact they get in the way all the time.
~Lazyzim~


Yeaah learned that the hard way on a private server. Went into default and nothing but dragon butts in my face

Yep nothing worse then a bad case of Dragon Butt.
I made the mistake of allowing Zombie Wyverns to be tameable it is the pet of choice on DD.
Now they are lag-monsters when they all show up in Default.
You failed to mention you also need the skeleton if you are resizing non-standard critters as well as the mesh.
~Lazyzim~
Back to top Go down
Serenity



Game username : Serenity
Server : Impressive Leone
Female Posts : 124
Join date : 2011-11-14

PostSubject: Re: Tired of small pets?   Sun Dec 30, 2012 1:32 am

I edited some code to make it so that pets no longer resize once tamed.

There are two ways to do it, one is a configurable version, one just makes it so they don't resize ever.

Configurable:
In GameConfig.h add:

Code:
// SET TO 1 IF WE WANT PETS TO RESIZE, 0 IF KEEP THEIR OWN SIZE
#define RESIZE_PETS 0

You don't need the comment of course, and you can put it on whatever line, doesn't matter.

In MagixCritterManager.h on line 1019:

Old version of the code:
Code:
   void setIsPet(MagixCritter *critter)
   {
      if(!critter)return;
      critter->setIsPet(true);
      if(critter->getObjectNode()->getScale().y>1.5)
      {
         critter->getObjectNode()->setScale(1.5,1.5,1.5);
         critter->resetSize();
      }
      critterCount--;
   }

With changes:
Code:
   void setIsPet(MagixCritter *critter)
   {
      if(!critter)return;
      critter->setIsPet(true);
      if(RESIZE_PETS && critter->getObjectNode()->getScale().y>1.5)
      {
         critter->getObjectNode()->setScale(1.5,1.5,1.5);
         critter->resetSize();
      }
      critterCount--;
   }

The other way you can do it, is just by removing:
Code:
if(critter->getObjectNode()->getScale().y>1.5)
      {
         critter->getObjectNode()->setScale(1.5,1.5,1.5);
         critter->resetSize();
      }

If you do it this way, pets will never resize. If you do it the configurable way, by changing the 0 to 1, pets will resize again.
NOTE: This creates something weird with pet shrinking. Because of scaling works in cd1.dat, some bigger pets(Monster Ray for instance) once shrunk will appear tiny.

Edit: And what Lazyzim said. There will be a lot of huge pets running around. And also, PM me if you want the fix to the shrinking issue once I figure it out.
Back to top Go down
RedEye
Retired
avatar

Game username : -redeye-
Server : KITO
Male Posts : 2575
Join date : 2011-07-24
Age : 30

PostSubject: Re: Tired of small pets?   Sun Dec 30, 2012 9:50 am

Nice to see the community starting to provide code fixes Very Happy

________________________________
Retired
Back to top Go down
Serenity



Game username : Serenity
Server : Impressive Leone
Female Posts : 124
Join date : 2011-11-14

PostSubject: Re: Tired of small pets?   Sun Dec 30, 2012 3:01 pm

Aye, I plan to work on the code quite a bit in the future, so I should be posting a good number.
Back to top Go down
RainbowDash

avatar

Game username : Rainbowdash or akarivskage
Server : Bloodline
Female Posts : 144
Join date : 2012-08-20

PostSubject: Re: Tired of small pets?   Sat Feb 09, 2013 5:40 pm

Serenity wrote:
I edited some code to make it so that pets no longer resize once tamed.

There are two ways to do it, one is a configurable version, one just makes it so they don't resize ever.

Configurable:
In GameConfig.h add:

Code:
// SET TO 1 IF WE WANT PETS TO RESIZE, 0 IF KEEP THEIR OWN SIZE
#define RESIZE_PETS 0
.

Where do i find GameConfig.h?

EDIT Nvm i figured it out :3
Back to top Go down
Clove



Posts : 135
Join date : 2012-11-03

PostSubject: Re: Tired of small pets?   Thu Mar 14, 2013 7:50 am

Old thread, sorry but I have to ask.

Serenity wrote:
I edited some code to make it so that pets no longer resize once tamed.

There are two ways to do it, one is a configurable version, one just makes it so they don't resize ever.

Configurable:
In GameConfig.h add:

Code:
// SET TO 1 IF WE WANT PETS TO RESIZE, 0 IF KEEP THEIR OWN SIZE
#define RESIZE_PETS 0

You don't need the comment of course, and you can put it on whatever line, doesn't matter.


I added that part to mine and so it looks like this:

Code:

#define SERVER_PORT 40000
#define MAIN_SERVER_PORT 40010

// Uncomment next lines and change them
#define MAIN_SERVER_IP "127.0.0.1" // enter your server address
#define SERVER_PASSWORD "********** c;" // enter a key

// SET TO 1 IF WE WANT PETS TO RESIZE, 0 IF KEEP THEIR OWN SIZE
#define RESIZE_PETS 0

#endif


It doesn't seem to be working.


EDIT:

Tried your other method and it worked. When you shrink it and make it grow again though it goes back to the size it was previously until you switch dims or something.
Back to top Go down
 
Tired of small pets?
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: START HERE :: KITO's IT Source Code :: Bugs & Patches-
Jump to: