Feral Heart

Help & Guidance => Game Help => Topic started by: Enoki on August 17, 2016, 10:24:27 pm

Title: Resizing Particles?
Post by: Enoki on August 17, 2016, 10:24:27 pm
So, does anyone know how to tamper with the particle files to change their size? I'd like to make the campfire object into more of a bonfire size, but no matter what I do with the particle file it just causes the game to crash. Anyone know what to change to resize the particle? Much thanks in advance.
Title: Re: Resizing Particles?
Post by: magicfairy on August 17, 2016, 10:32:07 pm
Try importing it into the OGRE Particle Editor, you can edit the width and length of the particle's image there. There's a download on this video.

How to make an Impressive Title Shard (https://youtu.be/YHkpslVy45Y)

If ya need more than just that I can give you pictures.
Title: Re: Resizing Particles?
Post by: Enoki on August 18, 2016, 05:27:27 am
Oh! I did not know I needed an outside source to resize particles. :o Thank ye very much, deary! I'll be working on that t'morrow and I'll let ye know how it goes.
Title: Re: Resizing Particles?
Post by: magicfairy on August 18, 2016, 01:17:22 pm
Oh! I did not know I needed an outside source to resize particles. :o Thank ye very much, deary! I'll be working on that t'morrow and I'll let ye know how it goes.

Hehe, welcome! I'll try to figure out a way to change the size without using the Particle Editor, but working with the program makes it so much easier. When you edit the fire particle in the program you might wanna check if it got rid of the particle_system on the first line of the particle code in the files because FH won't like that. Also remember to change the material in your particle file back to the original if you edit the PE_materials file to import the fire texture in there. x3

Okay so I just edited a particle's width and height in the actual files, went in game, and put it into effects maker. It seemed to have worked.

Original
(http://i76.photobucket.com/albums/j3/FoxyFNAF/particle_original_zpskridyths.png)

Modified
(http://i76.photobucket.com/albums/j3/FoxyFNAF/particle_resized_zpsbumokmgq.png)

I edited the fire particle's files and everything went fine.
How did you edit your files?
Title: Re: Resizing Particles?
Post by: Enoki on August 18, 2016, 08:04:16 pm
I edited the fire particle's files and everything went fine.
How did you edit your files?

How odd! Well, here is the coding and how I edited it. I'm not too keen on working with coding, so I may 'ave totally messed it up when I tried to edit it.

Code: [Select]
particle_system Fire/Campfire
{
       material      Flare/Fire
       particle_width     50 <-- originally 20
       particle_height    50 <-- originally 20
       cull_each          false
       quota              50
       billboard_type     point


       // Area emitter
       emitter Point
       {
      angle                     20
           emission_rate             15
           time_to_live_min              1
           time_to_live_max              1
           direction                 0 1 0
           velocity_min              16
           velocity_max              24
   }   

   
// Area emitter
    emitter Box
    {
        angle           20
        emission_rate   25
        //time_to_live    1
           time_to_live_min              1
           time_to_live_max              1
        direction       0 1 0
        colour_range_start  1 1 0.4
        colour_range_end    1 0.2 0
           velocity_min              16
           velocity_max              24
        width           6
        height          6
        depth           1
    }


   affector Scaler
      {
      rate    -16
      }

}



particle_system Fire/Smoke
{
       material      SmokeMaterial
       particle_width     20
       particle_height    20
       cull_each          false
       quota              40
       billboard_type     point


// Area emitter
    emitter Box
       {
      angle                     28
           emission_rate             4
           time_to_live_min              6
           time_to_live_max              8
           direction                 0 1 0
           velocity_min              20
           velocity_max              24
        width           8
        height          8
        depth           4
   }   



   affector Scaler
      {
      rate    12
      }
    affector ColourFader
    {
        red -0.25
        green -0.25
        blue -0.25
  alpha -0.25
    }

}

And that's all I messed with the first time around, but it didn't work. I started changing other things to see if I was missing a key bit of coding, but nothing worked. Could it be that I tried making a whole different particle? I saved it as fireL.particle instead of just saving over the original because I wanted to keep that one f'er the normal campfire object.
Title: Re: Resizing Particles?
Post by: magicfairy on August 18, 2016, 08:32:09 pm
I edited the fire particle's files and everything went fine.
How did you edit your files?

How odd! Well, here is the coding and how I edited it. I'm not too keen on working with coding, so I may 'ave totally messed it up when I tried to edit it.

Code: [Select]
particle_system Fire/Campfire
{
       material      Flare/Fire
       particle_width     50 <-- originally 20
       particle_height    50 <-- originally 20
       cull_each          false
       quota              50
       billboard_type     point


       // Area emitter
       emitter Point
       {
      angle                     20
           emission_rate             15
           time_to_live_min              1
           time_to_live_max              1
           direction                 0 1 0
           velocity_min              16
           velocity_max              24
   }   

   
// Area emitter
    emitter Box
    {
        angle           20
        emission_rate   25
        //time_to_live    1
           time_to_live_min              1
           time_to_live_max              1
        direction       0 1 0
        colour_range_start  1 1 0.4
        colour_range_end    1 0.2 0
           velocity_min              16
           velocity_max              24
        width           6
        height          6
        depth           1
    }


   affector Scaler
      {
      rate    -16
      }

}



particle_system Fire/Smoke
{
       material      SmokeMaterial
       particle_width     20
       particle_height    20
       cull_each          false
       quota              40
       billboard_type     point


// Area emitter
    emitter Box
       {
      angle                     28
           emission_rate             4
           time_to_live_min              6
           time_to_live_max              8
           direction                 0 1 0
           velocity_min              20
           velocity_max              24
        width           8
        height          8
        depth           4
   }   



   affector Scaler
      {
      rate    12
      }
    affector ColourFader
    {
        red -0.25
        green -0.25
        blue -0.25
  alpha -0.25
    }

}

And that's all I messed with the first time around, but it didn't work. I started changing other things to see if I was missing a key bit of coding, but nothing worked. Could it be that I tried making a whole different particle? I saved it as fireL.particle instead of just saving over the original because I wanted to keep that one f'er the normal campfire object.

When did the game crash?
Did you still enter Fire/Campfire into the game as a particle template?
If you didn't change the particle template name (What comes right after particle_system on line 1) and put that changed one into the game it won't work, as two files are sharing the same name.
Title: Re: Resizing Particles?
Post by: Enoki on August 18, 2016, 08:42:16 pm
When did the game crash?
Did you still enter Fire/Campfire into the game as a particle template?
If you didn't change the particle template name (What comes right after particle_system on line 1) and put that changed one into the game it won't work, as two files are sharing the same name.
It crashes upon opening the game after I 'ave made the new particle file.

But OH! I never renamed the actual particle templates. After I changed the names on them, the game is now running again! Many thanks f'er that.

And it works! Hallelujah! :D Thank ye very much Green. I guess all I needed to do was rename the templates, lol! The simple things that I overlook can be made into a book.
Title: Re: Resizing Particles?
Post by: magicfairy on August 18, 2016, 09:15:20 pm
When did the game crash?
Did you still enter Fire/Campfire into the game as a particle template?
If you didn't change the particle template name (What comes right after particle_system on line 1) and put that changed one into the game it won't work, as two files are sharing the same name.
It crashes upon opening the game after I 'ave made the new particle file.

But OH! I never renamed the actual particle templates. After I changed the names on them, the game is now running again! Many thanks f'er that.

And it works! Hallelujah! :D Thank ye very much Green. I guess all I needed to do was rename the templates, lol! The simple things that I overlook can be made into a book.

Haha! You're welcome! xD
Title: Re: Resizing Particles?
Post by: Warriorstrike on August 19, 2016, 12:40:51 am
I shall lock up your thread since it appears to have worked. Good luck with the bonfire!