Question about Particle Systems

Users who are viewing this thread

Xephaeston

Sergeant Knight at Arms
Hello

I would like to add more smoke to my Napoleonic Wars. I do not know which value to edit. I already use a smoke mod for more realistic textures and durability. But I would like to have more smoke coming out of the musket. This is what is in my file:

psys_musket_smoke 78336 prtcl_dust_a 10000 25.000000 1.600000 -0.022000 10.000000 5.000000
0.000000 0.150000 0.800000 0.050000
0.000000 0.698000 1.000000 0.651000
0.000000 0.710000 1.000000 0.665000
0.000000 0.722000 1.000000 0.696000
0.030000 3.900000 0.700000 18.900000
0.005000 0.005000 0.005000 0.000000 5.600000 0.000000 1.400000
28.000000 0.000000

Thanks :smile:
 
Solution
I recommend that you download NW Module System for transparent edits of the source code instead of tampering with compiled text files. Here is the particle system in question:
Python:
("musket_smoke", psf_billboard_3d|psf_randomize_size|psf_randomize_rotation, "prtcl_dust_a", # psf_global_emit_dir psf_billboard_3d | psf_randomize_size psf_always_emit
     75, 22, 2, -0.006040, 90, 3.3,     #num_particles, life, damping, gravity_strength, turbulance_size, turbulance_strength
     (0.0, 0.45), (0.449, 0),       #alpha keys
     (0.0, 0.99), (1, 0.99),      #red keys
     (0.0, 0.99),(1, 0.99),       #green keys
     (0.0, 0.99), (1, 0.99),      #blue keys
     (-0.01, 3.45),   (0.5, 12.7),   #scale keys
     (0.05, 0.05, 0.05),           #emit...
I recommend that you download NW Module System for transparent edits of the source code instead of tampering with compiled text files. Here is the particle system in question:
Python:
("musket_smoke", psf_billboard_3d|psf_randomize_size|psf_randomize_rotation, "prtcl_dust_a", # psf_global_emit_dir psf_billboard_3d | psf_randomize_size psf_always_emit
     75, 22, 2, -0.006040, 90, 3.3,     #num_particles, life, damping, gravity_strength, turbulance_size, turbulance_strength
     (0.0, 0.45), (0.449, 0),       #alpha keys
     (0.0, 0.99), (1, 0.99),      #red keys
     (0.0, 0.99),(1, 0.99),       #green keys
     (0.0, 0.99), (1, 0.99),      #blue keys
     (-0.01, 3.45),   (0.5, 12.7),   #scale keys
     (0.05, 0.05, 0.05),           #emit box size
     (0.0, 5.6, 0.0),                 #emit velocity
     0.85,                        #emit dir randomness
     90,                       #rotation speed
     0.25,                        #rotation damping
    ),
You may increase the number of particles, life of them (so that smoke stays for longer) as well as maybe add custom particles; you may also look for other uses of the particle system in order to add new properties to weapons after firing them. You may also look for NW/ WFaS/ other musket mods' source code to see how they did the same.
 
Upvote 0
Solution
Would it be possible by just editing it in the txt file? I'm really unexperienced with python and modding in general.
Yes, of course when keeping in mind that compiling the Module System might overwrite your custom mod's contents if you do not possess its source code. 10000 25.000000 are values you need to replace, but you would have to know what values should be used to avoid problems when the game will be reading the compiled file.
 
Upvote 0
It's not really working when I add the values. I tried to exaggerate the values but the only thing that happened is that the smoke went very high.

The durability of the smoke is pretty good. Just I wish there was more smoke coming out.
 
Upvote 0
As I mentioned above, working with Module System is the best way to attain your goal. Just download the one for NW, backup your text files in case you will want to revert your changes, set up a correct export path, make desired changes and compile.
 
Upvote 0
Okay, I'll try. Thanks. :smile:
Just a few tips for you:
1. the file you will be working on is module_particle_systems.py,
2. make sure you will be using text editors like Notepad++ or Visual Studio Code,
3. the export path can be really anything but remember to close it with a slash like this: "C:/Program Files (x86)/Steam/steamapps/common/MountBlade Warband/Modules/test/",
4. back up all text files in your module directory by copying them and pasting somewhere else.
 
Upvote 0
Back
Top Bottom