Jump to content
Giovanni E

Experimenting with custom smoke effects

8 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

So a while ago while screwing around with modtools i stumbled upon something that seems to control how smoke effects (or spawners) behave. Editing these parameters made me discover these things:

M_maxlifetime: controls how long the trail of smoke will be.

M_maxspawnangle: controls the grouping of the individual smoke puffs

M_maxstartspeed: i believe this controls the amount of smoke puffs spawned.

there are min and max values allowing for variation in the effect. i used the factory smoke large effect to test this.

At this point im stuck, i can edit the smoke effects without problem, however they just wont save, everytime the game is restarted they reset back to their default settings.

I tried to look into making a mod that saves them, but i lack the knowledge on how to do so. so i hope someone can help me figure this out or wants to pick this up.

Attached screenshots is were the prop effect parameters are located (default settings), and how the effect can look when you edit these.

image.png.63284a46c921bc22a9bed454fc266e56.pngimage.png.c9aaede4f1dfc375a9654c234786668b.png

  • Like 2

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

That's so cool! yeah, it makes sense that alterations to the particle effect wouldn't save with the asset.

I've been curious about the smoke and steam particle effects for a while, they are almost (along with grass sprites) the only thing left in the game that still has that partial cartoony, obvious Unity stock look to it. Could really do with an overhaul.

The tricky part would be getting custom sprites to work - then we could have particle effects on par with SimCity 2013, those looked gorgeous.

Very nice find!

  • Like 1

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    On 2/13/2018 at 2:20 AM, Badi_Dea said:

    That's so cool! yeah, it makes sense that alterations to the particle effect wouldn't save with the asset.

    I've been curious about the smoke and steam particle effects for a while, they are almost (along with grass sprites) the only thing left in the game that still has that partial cartoony, obvious Unity stock look to it. Could really do with an overhaul.

    The tricky part would be getting custom sprites to work - then we could have particle effects on par with SimCity 2013, those looked gorgeous.

    Very nice find!

    Thanks ! yea im not entirely sure how they work, tough ive seen and am practically able to replace the diffuse texture of the particles. (havent tried it yet) so thats deffinitly the next step.

    For now i want to get them saveable and in the best case use them with acc3sviolation's vehicleffects mod so we can have decent length smoke plumes on buildings and large ships.

    I will definitely be looking into giving them entirely different particles. Practically you'd only need a diffuse and an alpha texture, and a way to save them. (probably a mod that adds new particles) the tricky part in making them would be getting them look good as the particle is just based off a single puff of smoke. 

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Afaik, the editor just saves references to the effect in the asset (the string "Factory Smoke" in this case) instead of saving the entire thing which is why editing doesn't work. You'd have to somehow get a modified copy of the effect in the game and add that to the ship instead. Not sure what the best way to do that is though, maybe this code is useful to someone, it's how I made the diesel exhaust smoke using Factory Smoke Small as a template in Vehicle Effects. I'm interested to see if anyone has some good ideas on getting custom (particle) effects in the game in a way that's easy to edit.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    On 2/22/2018 at 10:08 AM, Acc3ssViolation said:

    Afaik, the editor just saves references to the effect in the asset (the string "Factory Smoke" in this case) instead of saving the entire thing which is why editing doesn't work. You'd have to somehow get a modified copy of the effect in the game and add that to the ship instead. Not sure what the best way to do that is though, maybe this code is useful to someone, it's how I made the diesel exhaust smoke using Factory Smoke Small as a template in Vehicle Effects. I'm interested to see if anyone has some good ideas on getting custom (particle) effects in the game in a way that's easy to edit.

    thats very intresting, would it perhaps be possible to add custom user made smoke effect to vehicle effects much like how a user can add custom sounds ? that was my original goal, so i could give ocean liners and large cargo steamers a much more realistic length smoke plume !

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Adding basic support for custom particle effects the same way I did for sounds should be fairly easy, allowing you to just toss another xml file in there with a bunch of settings. I'm a bit on the fence about adding yet another xml file but whatever, it's the easiest option at this point.

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    I change the smoke parameters and the smoke does not change and the mod gives the show watched field error. Help me.

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account


    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections