How to show flying leaves (windy weather)

● ARCHIVED · READ-ONLY
Started by Kes 14 posts View original ↗
  1. I want to have leaves flying about on a dark, windy mountain, and had thought that I could use Moghunter's weather effects for that.  However, it appears that it is not compatible with Shaz's multi fog script which I am using and wish to keep.

    The effect given by Moghunter's script only uses a graphic of a single leaf, but it comes flying in at different speeds, angles and sizes.  Here is a screen shot of what it looks like - though it is quite difficult to capture this adequately in a static image.

    FlyingLeaves_zps90a4db9f.png

    Does anyone know of an alternative method for achieving something like this?

    Thanks.
  2. Give me a link to his script and I'll see if it's a simple change to make them compatible.


    Why do you say they're not compatible? What happens that causes you to think that? Have you tried to just change their order to see if it makes a difference?


    I don't think you could do it without a script (unless you wanted to use multiple pictures, but I think that'd cause lag).
  3. Here is the link to his demo which contains the script.  It doesn't seem to be available just on its own.

    With his script, when I enter a map with your fog I get the error message

    Script 'Moghunter weath effects' line 788: NoMethodError occurred

    undefined method 'empty?' for nil:NilClass

    At the moment his script is under yours.

    EDIT

    Same error when his script is above yours.
  4. Hi, ksjp17 :) Just wondering if BustedEd's evented falling leaves would work for you?
  5. @Alkorri

    Thanks for the suggestion, but I don't think his solution would work for me.  His leaves fall down straight, which doesn't convey the idea of wind, and each leaf is a graphic event in itself, so although it works on his small map, on a large map it's not possible without causing monumental amounts of lag.
  6. You didn't give me a link ;)


    If you disable my script (select all & Control+Q) and leave his enabled and then play, does it still give the error?


    What's on line 788?


    Actually, can you just copy that one script and paste it here, or in a PM to me? I found his demo, but it's taking forever to download, and I don't want to stay up waiting for it.
  7. Oops, here is the link

    http://www.atelier-rgss.com/RGSS/System/ACE_SYS08.html

    I can't answer your question at the moment, because when I go into the game, although it allows me in the choice menu on the title screen to continue, no save files are showing up.  I've checked, they are in the AppData folder, so they exist, they are just not showing, so I shall have to try and find out why.  Until then, I can only test by starting a new game with the player on those maps.  

    With your script disabled and Moghunters enabled, I can go on to the map with your fog, but obviously no fog effect.

    With both scripts enabled I can go on to the map with the leaves, but not the map with the fog.
  8. Yeah, I need you to copy that script and give it to me. I finally got the demo downloaded, and line 788 in that script is a blank line. So you've made changes to it, and the demo script isn't much good to help figure it out, as I can't tell which line has the error.


    Hold on ... I don't think it's got anything to do with a script incompatibility. You said you go to load a save file ... are these several save files that are on the maps with and without fog, and it's the maps with fog that have the problem? Any chance those save files were created BEFORE you added the weather effects script, or the games were started before the script was added?


    The only reference to .empty? in that script is to do with some variables set up in Game_System's initialize method. Which means if you're loading save files created before you added the script, they are going to crash. The fog script does nothing with Game_System.


    Try starting a NEW game with the starting point situated on each of those maps in turn, and see if the problem still happens.

    undefined method ... for nil:NilClass
    THIS error is ALWAYS a big clue that you might be playing an old save, and new scripts have been added. That error would DEFINITELY happen with the weather effects script, when you try to resume a game that was in progress and had been saved prior to adding the script.
  9. Argh!!!!!

    That was it.  When I load a new game on that map I have no problem.

    I am so sorry that I've put you to all this trouble for nothing.  (Crawls away into a corner, cringing with embarrassment).  I just didn't think of this because Moghunter's script has always been there, but I had disabled it until now because I wasn't sure that I was going to use it.

    Thank you for your help, and once more, my apologies.
  10. Dekita, your second link gave me this message? "Whoops! Whatever you are looking for cannot be found"

    Following this topic now because I might use this in a future project :)
  11. Strange... I just copy/pasted the link... Anyway, fixed now :)
  12. @Dekita

    Thanks for the links, but unfortunately, if I remember correctly, you don't ever allow your scripts to be used for commercial games, and I am hoping that this third game will also be commercial.  So I've not looked into any of yours when script hunting.
  13. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.


    at OP request