Random Tree Rotation for Natural Disasters
Hey all,
many of you may have noticed that ever since the release of Natural Disasters (C:SL version 1.6) Boformer’s Random Tree Rotation mod no longer worked properly: trees disappeared when viewed from certain angles, and textures were flickering wildly. And as we all know, when trees disappear and textures flicker, you’re gonna have a bad time!
So I decided to take a peek in the mod’s source code, and it turned out that the fix was a very simple one: one of the methods called by the mod was renamed by CO, which lead to the erratic behavior described above. After fixing the method call, the mod seems to be working as new again.
Full credit for the mod obviously goes to Boformer: all I did was renaming one method, a ‘feat’ a Chimp with a laptop and Visual Studio probably could have pulled off just as well ?
So if rotating trees is your thing, sub now and enjoy!!!
NOTE 1: I initially fixed the code solely for my own amusement, but since this is such a popular (and for many players vital) mod, I felt I had to share the fun with you guys. I haven’t tested the mod on anything but my own computer with my own mod collection, so I cannot guarantee the fix will work for everyone. This means that usage is at your own risk.
NOTE 2: this mod is as-is. Feel free to try it out, but I am not offering support except for the most critical of errors. Nor am I going to add or change any functionality – after all, this is and will always remain Boformer’s work.
NOTE 3: probably needless to say, but if you’re going to use this mod, un-sub from the original version, or in the very least disable it in-game (if you haven’t done so already).