objects using the wind variable...

#1
Hi all,

I'm in the progress of switching to all FS2004 SDK Tools. I've got a serious problem now:
As I'm disappointed of the looks of the default windsock, I thought I make one myself. I've got 4 non-animated models of it done in gmax and exported them. (I heard, that animated parts won't work with wind..) So what's next? Back in the FS2002 days, that was easy: tweak the asm-sources, recompile and use 'em.
Now, I managed to make the tweaks with that BGLC_9.exe provided by Rhumbaflappy, and the result is a bgl file.
But how can I use that bgl file to add it to a object library using LibCreator??
(I'm using SceneGenX for placing the lib-objects...)

That's my first question...more to come :duck: ...when this wind var reading fails again...

Regards
Jeff
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#2
Hi Jeff,

Two options here I think.

1. It seems you already found the asm files and tweaked them again etc. The BGL that you made with BGLC_9 is actually a MDL file (you need to rename it or compile with the option -mdl). From there on you can use it like any other MDL you made with GMax.

2. You could also use MDLTweaker to add the rotation with the wind (or other conditions) to your MDL file. Then you don't have to tweak the source manual (but you are probably a bit more limited to what I put in MDLTweaker ;)).
 
#3
Thanks Arno,

Ahhh, so it's a mdl in the end...hmm, why did MS drop the bgl?! Well anyway, I put 2 objects into the fs world which both read the C74 variable as stated in your tutorial. They both are visible on the screen, but when I change the wind direction, nothing happens! If I startup FS and set the wind via the create flight menu, and then run FS, it works! But then again, if I change the dir via the weather menu....... :banghead: (hey cool set of emoticons you have, for every occasion, there's a suitable)

Jeff
 
#4
Jeffrey Stähli said:
Thanks Arno,

Ahhh, so it's a mdl in the end...hmm, why did MS drop the bgl?! Well anyway, I put 2 objects into the fs world which both read the C74 variable as stated in your tutorial. They both are visible on the screen, but when I change the wind direction, nothing happens!
Jeff
It's a weird FS quirk that a wind change won't instantly affect the C74 variable for some reason. So, your windsocks are working fine.

Did you make seperate windsocks for various windspeeds also? I did this, and it seems to work fine, but I find that I get a crash when I fly to my airport from another airport (at about 10NM), but I don't get any crash when I take start at my project airport. Through trial-and-error, I figured out it was my windsock objects, so I was wondering if you had any problems. I think my problem is related to the fact that I hand-edited my .asm files, so I may have messed up there somewhere. I was testing for two conditions - and maybe this was the problem. Anyway, I'm pretty new at editing .asm, so I figured I got in a little over my head.

- Martin
 
#5
Hi Martin,

Well, for some reason, it suddenly works now...the rotation that is. How did you implemented the velocity checks within the asm files?
I mean where exactly do I have to check the vars with IFIN1?

Crashes?? Not tested yet, but I will report if it should once happen.
New to asm editing? yeah, me too, me too...the new RIFF format of the asm's looks really odd to me...

Jeff
 
Top