ectizen
Posts: 139
Joined: 2/24/2001 From: melbourne, australia Status: offline
|
quote:
Originally posted by RockinHarry:
Lately I found out, how to set wind direction in SPWAW. I wanted to know how to setup smoke screens properly. Example: The allied rhine crossings at Wesel in 1945.
The byte can be found (and edited) in Freds SPWAW Editor (Tools/Hex Editor). It´s section 37, Row6, Byte7. Values are 1-6 I think,.. with value=1 wind coming from SO (<\). Other values going counter clockwise. Example value2= <- etc.
Naughty me! I've been keeping my secrets to myself! :D
The wind directions are the same as other SP:WaW directions:
0 = East
1 = South East
2 = South West
3 = West
4 = North West
5 = North East
This is the direction to wind blows to, not from.
In the raw data, the wind direction appears in S37, at byte offset 103. In Fred's editor, as you mentioned, it's in S37, row 6, byte 7.
A slight variation on these is also used for road and rail connections (it's used as a bit number, like in the first 4 bytes of S8: 1=E, 2=SE, 4=SW, 8=W, 16=NW, 32=NE - you add these together to get the value used by SP:WaW to draw the roads)
As far as I can tell, whenever SP:WaW needs a single hex direction, it uses 0,1,2,3,4,5. If it needs several hex directions at the same time, it uses 1,2,4,8,16,32 added together as required.
_____________________________
|