September 18, 2018, 08:12:35 PM

Author Topic: How to: Make shards  (Read 5919 times)

Offline War

  • Full Moon
  • **
  • Posts: 339Male
  • Karma: 46
  • best be left to his own devices
    • View Profile
How to: Make shards
« on: May 06, 2015, 07:24:42 PM »
//NOTICE
THIS IS A SHARD-MAKING TOPIC OF MINE FROM THE OLD FORUM SO EXCUSE MY REALLLY NOOBY LANGUAGE <3 KTHX



Okay, just a heads up, I can't explain for shit so bear with me please xD

You want to get stuff like your meshes and code, I will give a basic template to download for use, along with the basic codes.

http://www.mediafire.com/view/qdod566v5ttaehw/BlueTail.material

http://www.mediafire.com/view/t4e3ln3fvps783c/BlueTail.particle

http://www.mediafire.com/download/rww28q8vmi802jr/BlueTailShard.mesh

Now, when making your shards, you need to choose a name firstly (duh) for this example, I have chosen my 'derp pickle' Shard.
So the Mesh Name would be PickleShard.mesh (You'll see why later)
The particle and material file MUST have the same name (you'll also see later) as well as the Texture file.

This here is what you should see in the .Material file

Code: [Select]
material Pickle
{
technique
{
pass
{
lighting off
scene_blend alpha_blend
depth_write off
texture_unit
{
texture Pickle.png
}
}
}
}


And this is what you should see in the .Particle file

Code: [Select]
particle_system Pickle
{
    material Pickle
    particle_width 8
    particle_height 8
    cull_each false
    quota 10000

    emitter Box
    {
        angle 30
        emission_rate 5.0
        time_to_live 5
        direction 0 1.2 0
        velocity_min 1
        velocity_max 2
width 10
height 10
depth 1
    }

    affector LinearForce
    {
        force_vector 0.2 0.5 0.1
        force_application add
    }
    affector Scaler
    {
        rate 2
    }
    affector ColourFader2
    {
        alpha1 +1.0

        alpha2 -1.0

        state_change 2
    }
affector ColourFader
{
red -0.1
green -0.1
blue -0.1
alpha 0.02439
}
}

Where is says 'Particle System' you MUST make sure it's the same name as the particle, material and texture file
Where it says 'Emission Rate' is how fast the particles will emit from the player (It was originally set to 5 in the download I think)
Where it says 'material' goes the name of your Material file
The particle width and height is defaulted at 8. It can be changed for a bigger particle effect.

Now here comes the fun part: Textures!


[font size="1"]they don't call it a derp pickle for nothing cough[/font][/s]

I used GIMP to make these, so bear with me

When making the texture, you MUST have transparency otherwise it will come up as white squares with your tex in the middle.
Save it as .PNG unless you change the pickle.png part of the code to something like pickle.jpg. You can have an endless variety of textures for your shards!

Make sure your mesh goes into the itemsandshards> models part of the files
Make sure the texture, material and particle files go into the particle folder.

Now the items.cfg part.


PickleShard;Pickle Shard;Main;0;0;0;Pickle;0 0.5 0;0

This is where the names come in.

The first part that says 'PickleShard' is your mesh name.

The second part that says 'Pickle Shard' is the name of the item (you can make it like Derp Picklez and it will still work as long as you still have the same texture, mesh and particle unit)

The the third part that says 'Main' is the BONE the item is rigged to. If you get this wrong it will result in a crash. The 'Main' Bone is the body, and you can have things such as 'Tail6' (tail tip) or 'Arm4.L' (left paw) There are many bones you can rig the shards to, including the Head, back legs, and even eyes!

The fourth part that says 'Pickle' is for your Texture, Particle and Material (that's why they all need the same name)

It (hopefully) should turn out like this once you're done!


Sorry 'bout the rude language o-o"

That small line of code up there goes into the Items.cfg document (This one: PickleShard;Pickle Shard;Main;0;0;0;Pickle;0 0.5 0;0 )
WARNING!: Please consult @myz or @rakshaww BEFORE you decide to put this into the Items.cfg as I am pretty sure this will cause the game to force-update, so check their permission first (I tested mine on my own game)

Sorry if this seems confusing in any way and I am completely open to any questions you may have! Also if I neglected to mention anything or I have made a mistake, please let me know!
Thanks for reading~

Offline Venadryl

  • Lead 3D Modeler
  • Game Master
  • *
  • Posts: 583Female
  • Karma: 76
  • Previously known as Venwolf
    • View Profile
    • My Instagram
Re: How to: Make shards
« Reply #1 on: May 06, 2015, 07:52:20 PM »
This is so cool! I need to try this omg! Thank you :3

Offline Tenzin8Pema2438

  • Quarter Moon
  • *
  • Posts: 33Female
  • Karma: 5
  • Harley Quinn Fangirl
    • View Profile
    • Deviantart
Re: How to: Make shards
« Reply #2 on: August 21, 2015, 03:29:42 PM »
Is it free to make your own shards? And can you keep them private so no one else gets them but people can see them?o8

Offline Venadryl

  • Lead 3D Modeler
  • Game Master
  • *
  • Posts: 583Female
  • Karma: 76
  • Previously known as Venwolf
    • View Profile
    • My Instagram
Re: How to: Make shards
« Reply #3 on: August 28, 2015, 03:13:33 AM »
Is it free to make your own shards? And can you keep them private so no one else gets them but people can see them?o8

For the first question you asked, yes. It is completely free to make shards. For the second, Yes and no. I don't think just anyone could get their own private item right on the spot and by the means that people get their own private item is unknown to me. It appears to be highly unlikely you could just get your own shard in the game, even though some have their own items.

Offline ..:~Chezzy~:..

  • Half Moon
  • **
  • Posts: 73Female
  • Karma: 2
  • Stone age
    • View Profile
    • Animations And Videos
Re: How to: Make shards
« Reply #4 on: March 06, 2017, 02:38:22 AM »
ok i know this is a old post witch im sorry :(

but could you show more about the items.cfg file....
i dont know were to put it....

ill put screen shot here....
(i made sure the texture, particle,and mesh were the same name as it said for Test, Items, and texture)
a little but more detail pllzzz (im much better with more details) after i get it down i can make a shard left and right (if i had time on my hands lol)