dlbryant wrote:
In the current.wtp file, the night wind direction and speed is [DAILY WIND FULL NIGHT] , but it was referenced in daily.wtp as [DAILY WIND DIRECTION NIGHT] , as a result, it was ignoring the nightly wind direction and just used the day wind direction for the night.
Well, you're partially right, the [DAILY WIND FULL NIGHT] is used in places where all the wind information should be displayed, since that's what that code is for. In the same way should the [DAILY WIND DIRECTION NIGHT] be used for displaying the wind direction on the given night. And knowing a little of
Mike's previous work, the codes are implemented equally correct, and the bug is in the data TWC broadcasts. And on a side note, if the code wasn't implemented at all, it would just be printed right in the skin itself.
A complete [though I just found out, it's not entirely up-to-date] list of codes can be found in the WW manual.
dlbryant wrote:
The problem I had in correcting it was that NOBODY had the right code for the night wind direction in their daily.wtp files, so I couldn't study their daily.wtp file for answers. I just literally made a lucky blind guess out of the dark and it worked. However, while I got the text wind directions right, I couldn't get the arrow graphic to corresspond. Barba took care of the arrows.
The problem was that there was no problem, just faulty data. And since it's next to impossible to get TWC to fix it, there had to be made a workaround, which you did quite good - especially if you don't know the languages used!!!
Though the fix is kinda trivial, I think the bug is one of those you hardly ever catch, so that's quite nicely found!
And I just realized that my code probably wouldn't handle calm winds, so this should do the trick a bit better ;)
Code:
if([DAILY WIND PLAIN NIGHT]!=0) {
var oest = '[DAILY WIND NO GUST NIGHT]';
var wind = oest.substr(0, oest.indexOf(' '));
} else {
var wind = "Calm";
}
Hope I could help to clarify a bit, and that I made any sence in the first place... If there's anything else, just ask away, and I'll look in to it... I haven't messed with the marmol skin yet, but read pretty much every single line of
Mike's and
EdP's skins, and ofcourse my own, a couple of hundred times, so I know a little of the inner workings...
Well, gotta catch a couple of hours of sleep now... See ya