This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] Glow Effects and Particles on weapons  (Read 2271 times)

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
[QUESTION] Glow Effects and Particles on weapons
« on: May 19, 2012, 04:38:14 pm »
Hello all,

I've been working recently on trying to remove glows and particles on weapons without removing the particle texture altogether (which would basically remove it from any other model using it as well). This, however, is met with several issues regarding finding the source.

I've come as far as identifying the source in the model itself; the effects created by the dbc are merely regular effects "similar to enchanting" and lead me to believe that they are not the initial source. This is further strengthened by the fact that the effects are mostly irrelevant to the textures - you can have any texture on a weapon you want, but the particle remains.

Looking further into the material, the weapon consists out of the
- initial model file (like .m2)
- a .skin (I assume it fixates and defines how a texture is run on a model, but I can not edit it for some reason)
- the .textures as .blps
-> the looks
-> blps of the effects

My previous search ended rather... exhausting.
- the particle editor on here (the one working for 3.x and using command lines) is not working for me at all.
- the blender Plugin for m2i (export/import) is not loading up in Blender 2.6 (I loaded an old version and tried adding it. Not even installing it worked)
- Milkshape 3d does not have a working m2 importer
- MDLvis is too old and can't load the m2s up
- 3ds Max on a legal way either costs way too much or has a weird policy for students, same for Maya
- MyWarcratModelEditor is not working with m2
- The PyModelEditor on here isn't working for me either, may it be that I do it wrong or not.

So I ask, is there any other possibilty ? Or am I doing it completely wrong ?
My goal: I try to remove glowing particles (like from ItemObjectcomponentsweaponsword_1h_sunwell_d_02.m2) from a model (this case m2) without having to remove the texture altogether, having it be missing on several other files as well.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Glow Effects and Particles on weapons
« Reply #1 on: May 19, 2012, 04:51:05 pm »
http://wowdev.wiki/index.php?title=M2/WotLK
-> Header
-> nRibbonEmitters = ofsRibbonEmitters = nParticleEmitters = ofsParticleEmitters = 0.

Use any hex editor or write a small application to do so:

Code: [Select]
#include <cstdio>
int main(int, char** argv)
{
  FILE* f (fopen (argv[1], "rw"));
  const int null (0);
  fseek (f, 0x120, SEEK_SET);
  fwrite (&null, 4, 1, f);
  fwrite (&null, 4, 1, f);
  fwrite (&null, 4, 1, f);
  fwrite (&null, 4, 1, f);
  fclose (f);
  return 0;
}
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] Glow Effects and Particles on weapons
« Reply #2 on: May 19, 2012, 06:47:14 pm »
After some trying around and checking, I was able to get it working like a charm by Hex. Probs for the result - thanks for the additional education and the page!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [QUESTION] Glow Effects and Particles on weapons
« Reply #3 on: May 19, 2012, 07:57:27 pm »
Would be nice if you could write a tutorial for this. Thanks :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Glow Effects and Particles on weapons
« Reply #4 on: May 19, 2012, 07:59:10 pm »
Quote from: "Steff"
Would be nice if you could write a tutorial for this. Thanks :)
Uhm.. I just did? There really isn't anything more to write?
To remove "stuff", remove "stuff". Shall I create a topic for every "stuff" you can modify?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [QUESTION] Glow Effects and Particles on weapons
« Reply #5 on: May 19, 2012, 08:02:43 pm »
Yes thats the plan. If someone have time and write some lines. The next one can do it easyser. Or get it to work even  if he is not so skilled.

And sometimes jsut some points and works what is importand are enough.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Glow Effects and Particles on weapons
« Reply #6 on: May 19, 2012, 08:08:35 pm »
Okay, so here is your tutorial:

Removing Particle Emitters From a Model


To remove particle emitters from a model, you have to remove particle emitters from the model. This is done by setting the number of particle emitters to zero. To do so, use any hex editor you can find and set the number of particle emitters to zero.

What To Do?


Change the number of particle emitters to zero. Do so by opening the file in a hex editor and set the number at the offset for the number of particle emitters to zero. You may also set the offset to zero.

You can find the offset in the wiki.

Tool For The Lazy


Code: [Select]
#include <cstdio>
int main(int, char** argv)
{
  FILE* f (fopen (argv[1], "rw"));
  const int null (0);
  fseek (f, 0x128, SEEK_SET);
  fwrite (&null, 4, 1, f);
  fwrite (&null, 4, 1, f);
  fclose (f);
  return 0;
}
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Glow Effects and Particles on weapons
« Reply #7 on: May 19, 2012, 08:09:12 pm »
I have another one.

Removing Ribbon Emitters From a Model


To remove ribbon emitters from a model, you have to remove ribbon emitters from the model. This is done by setting the number of ribbon emitters to zero. To do so, use any hex editor you can find and set the number of ribbon emitters to zero.

What To Do?


Change the number of ribbon emitters to zero. Do so by opening the file in a hex editor and set the number at the offset for the number of ribbon emitters to zero. You may also set the offset to zero.

You can find the offset in the wiki.

Tool For The Lazy


Code: [Select]
#include <cstdio>
int main(int, char** argv)
{
  FILE* f (fopen (argv[1], "rw"));
  const int null (0);
  fseek (f, 0x120, SEEK_SET);
  fwrite (&null, 4, 1, f);
  fwrite (&null, 4, 1, f);
  fclose (f);
  return 0;
}
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Glow Effects and Particles on weapons
« Reply #8 on: May 19, 2012, 08:10:32 pm »
I have another one.

Removing Lights From a Model


To remove lights from a model, you have to remove lights from the model. This is done by setting the number of lights to zero. To do so, use any hex editor you can find and set the number of lights to zero.

What To Do?


Change the number of lights to zero. Do so by opening the file in a hex editor and set the number at the offset for the number of lights to zero. You may also set the offset to zero.

You can find the offset in the wiki.

Tool For The Lazy


Code: [Select]
#include <cstdio>
int main(int, char** argv)
{
  FILE* f (fopen (argv[1], "rw"));
  const int null (0);
  fseek (f, 0x108, SEEK_SET);
  fwrite (&null, 4, 1, f);
  fwrite (&null, 4, 1, f);
  fclose (f);
  return 0;
}
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Glow Effects and Particles on weapons
« Reply #9 on: May 19, 2012, 08:11:08 pm »
I have another one.

Removing Events From a Model


To remove events from a model, you have to remove events from the model. This is done by setting the number of events to zero. To do so, use any hex editor you can find and set the number of events to zero.

What To Do?


Change the number of events to zero. Do so by opening the file in a hex editor and set the number at the offset for the number of events to zero. You may also set the offset to zero.

You can find the offset in the wiki.

Tool For The Lazy


Code: [Select]
#include <cstdio>
int main(int, char** argv)
{
  FILE* f (fopen (argv[1], "rw"));
  const int null (0);
  fseek (f, 0x100, SEEK_SET);
  fwrite (&null, 4, 1, f);
  fwrite (&null, 4, 1, f);
  fclose (f);
  return 0;
}
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [QUESTION] Glow Effects and Particles on weapons
« Reply #10 on: May 19, 2012, 11:47:24 pm »
Thanks ;)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954