Tire Rotation

kwb737

Charter Member
[FONT=Arial, Helvetica, sans-serif]I've noticed that the B-24D "Hail Columbia" By K. Malinowski that I downloaded from Simviation Page 49, on takeoff roll the left tire rotates but the Right tire does not. Is there a way for me to correct this?
Thank you
[/FONT]
 
kwb737,

I do not think K. Malinowski has an updated model for the fix for that. It maybe could be edited with scasm, but requires some knowledge about the scasm code to do so. I haven't attempted to correct the wheel, and been using the aircraft as is.
 
Some times it seems CFS2 does not like the fs animation r_tire. the fix can be accomplished either by a direct hex edit on the mdl or by using MDLC to extract a scasm source and editing that.
What you have to do is use the l_tire animation.

I use HxD to do my hex editing, open the mdl in your hex editor, the Dict section is at offset 0x05034h or there abouts. The GUID for r_tire is [FONT=&quot]{747D97A8-8770-4FC7-B8F7-1D893A2544BB} note how the order of the first 8 bytes appears (colors may help)

in the hex editor it looks like[/FONT]
Code:
 [COLOR=lime][COLOR=magenta]A8 97 7D 74[/COLOR][COLOR=deepskyblue] 70 87[/COLOR][/COLOR] [COLOR=blue]C7 4F[/COLOR] B8 F7 1D 89 3A 25 44 BB
find that sequence of bytes and change for the l_tire GUID [FONT=&quot]{4D54624D-D897-4408-876E-1E3E38A253B0}[/FONT]
Code:
4D 62 54 4D 97 D8 08 44 87 6E 1E 3E 38 A2 53 B0
 
or do a SCASM edit, slightly different same result.
Use MDLC to extract a scasm source
at the command line with all files in the same directory
Code:
mdlc /a filename
open filename.sca in wordpad make a note of the uOffsets for r_tire and l_tire

Code:
;        uOffset
;FLOAT32   CE        4         {2A09AF32-34E5-11D3-A479-00105A24D108}  l_gear
;UINT32    [COLOR=red]D2[/COLOR]        4         {4D54624D-D897-4408-876E-1E3E38A253B0}  l_tire
;FLOAT32   D6        4         {BA9EBED0-34E5-11D3-A479-00105A24D108}  r_gear
;UINT32    [COLOR=red]DA[/COLOR]        4         {747D97A8-8770-4FC7-B8F7-1D893A2544BB}  r_tire
for this example I would do edit/replace all 0xDA for 0xD2 (Note, adding the 0x prevents corruption of other occurances of this byte)
save and rebuild with MDLC
Code:
MDLC /m filename.sca
 MDLC /l filename.bgl
 MDLC /c filename.mdk
copy filename.MD2 filename.MDL
 
See ?!?!?!?

THAT'S The Stuff, Simon !!!!!! :wavey::wiggle::jump:

Just the kind of info I've been searching for.... my tiny pea brain can't filter through the massive amounts of datum involved in SCASM coding... But THIS I can DO !

THANK YOU !!! :salute:
SC
 
Jeeze wish I could!! "Laugh" After I read all that I had this HUGE Question mark above my head.(I'm a real novice when it comes to what you were explaining) ,That's OK , no big deal. I can live with one tire not turning, in less than a minute it's retracted and tucked away out of sight.
Thanks
 
Thanx Simon,

Always learning something new from you. Attached in zip is a tutorial in Word format that Simon did about scasm editing the CFS2 C47_Dakota. I often refer to it for scasm editing and perhaps you may find it useful also for learning more about scasm.
 
;l_tire UINT32 0xCA 4 {4D54624D-D897-4408-876E-1E3E38A253B0}
;r_tire UINT32 0xC6 4 {747D97A8-8770-4FC7-B8F7-1D893A2544BB}

The hex edit did not work for me. I re-did it several times and re-checked it, but just wouldn't work for me for some reason or other. However, the scasm edit worked fine by replacing all occurances (were two) of 0xC6 (r_tire) with 0xCA (l_tire).

Thank You Simon!
:salute:
 
Almost The Same But With A Little Twist

Hi all,
Simon, I really appreciate you putting together these word documents for us newbs.

With it I was able to fix the pilot, intake cover, and exhaust nozzle appearing and disappearing on the IRIS A-7E released as freeware. These were linked to engine rpm %'s.

The one last hurtle is the front wheels not rotating. There are two wheels under the nose. As far as I can tell everything looks to be in order...I think.

Can CFS2 animate two c_tire ?

Here's some of the sca...what I hope is relevant.

Code:
;uType     uOffset   uLen      guidParam                               uName
;----------------------------------------------------------------------------------------------------
;DICT_SECTION
;FLOAT32   98        4         {07A849C0-217F-4BC7-B000-CAEE1C2B6A4F}  lever_throttle0
;FLOAT32   9C        4         {76E3ECA3-6F10-42AA-8929-1DD26FCD1926}  lever_stick_l_r
;FLOAT32   A0        4         {5DCB06D5-B974-4559-829D-1A562499CECD}  lever_stick_fore_aft
;FLOAT32   A4        4         {9E5C1C91-D1A9-477F-B78C-68AD64D4AF56}  f_canopy
;FLOAT32   A8        4         {FC649DE0-34E5-11D3-A479-00105A24D108}  c_gear
;FLOAT32   AC        4         {BA9EBED0-34E5-11D3-A479-00105A24D108}  r_gear
;FLOAT32   B0        4         {2A09AF32-34E5-11D3-A479-00105A24D108}  l_gear
;FLOAT32   B4        4         {B0A58FCC-C3E2-4798-8E32-B2A1C8C59FE8}  lever_pedals_l_r
;    rt#50#50                
;UINT32    B8        4         {57F0E99D-0523-4E9C-BCB6-12BB2FE73F06}  g_lightStates
;FLOAT32   BC        4         {FBD8EE2C-39A7-4E9C-B527-AA632FE7E50F}  engine0
;FLOAT32   C0        4         {DC7E5F6D-33A3-4183-AC11-997A0E14575A}  r_spoiler
;FLOAT32   C4        4         {779F7B58-A315-4EFE-A17C-BC4D5E5D478F}  tailhook
;FLOAT32   C8        4         {E54A2C80-935E-4C5D-8700-1E1E495E0077}  l_spoiler
;FLOAT32   CC        4         {9462BE35-883E-4E3A-A5DA-278BCD2F7526}  l_wingfold
;FLOAT32   D0        4         {10423E7D-2C14-419E-AC81-3AC6AD0EDA41}  r_wingfold
;UINT32    D4        4         {747D97A8-8770-4FC7-B8F7-1D893A2544BB}  r_tire
;UINT32    D8        4         {4D54624D-D897-4408-876E-1E3E38A253B0}  l_tire
;UINT32    DC        4         {4CF550DF-134D-4989-BACD-978E3A69D82E}  c_tire

"snipped"

From The End Of Gear Animation And Drawing Information For c_gear *1

 303 255 300    ;23113 23065 23110    PH1 PH2 PH1
                              299 255 303    ;23109 23065 23113    PH1 PH2 PH1
                              271 255 299    ;23081 23065 23109    PH1 PH2 PH1
                              269 255 271    ;23079 23065 23081    PH1 PH2 PH1
                              254 255 269    ;23064 23065 23079    PH2 PH2 PH1
                         )
                        Transform_Mat( 
                              -2367.3989257813 8901.8964843750 2478.7763671875
                              -1.0000000000 0.0000000000 0.0000000000
                              0.0000000000 0.9982830286 -0.0585840009
                              0.0000000000 -0.0585840009 -0.9982830286
                               )
                              ;uName: c_tire  uOffset: 0xDC
                              TransformCall( :L18FFF0 0 0 0 0.0000000000 0xDC 0.0000000000 0x00 0.0000000000 0x00 )
                              Jump( :L18FFF6 )
:L18FFF0
                              Jump32( :L194C7A )

"snipped"


A Little Farther Down From Gear Animation And Drawing Information For c_gear  *2

                        693 709 404    ;24027 24043 23738    PH7 PH7 PH7
                        366 655 647    ;23700 23989 23981    PH7 PH7 PH7
                        655 366 384    ;23989 23700 23718    PH7 PH7 PH7
                   )
                  ;uName: c_tire  uOffset: 0xDC
                  TransformCall( :L198692 0 0 0 0.0000000000 0xDC 0.0000000000 0x00 0.0000000000 0x00 )
                  Jump( :L198698 )
:L198692
                  Jump32( :L19869A )
:L198698
                  Return

:L19869A

That's all the c_tire in the file.
If you have any suggestions, I am all ears. :ernae: And one good eye...
Dave
 
Dave,
I seem to remember that unlike Fs9, CFS2 has only one wheel rotation. I think you have to change it to a single wheel in the ac.cfg contact points and possibly(?) in the mdl. If that is needed in the mdl, I'll let the expert give you the definitive!

Cheers

Shessi
 
Can CFS2 animate two c_tire ?
I seem to remember that unlike Fs9, CFS2 has only one wheel rotation. I think you have to change it to a single wheel in the ac.cfg contact points and possibly(?) in the mdl. If that is needed in the mdl,
Some times it seems CFS2 does not like the fs animation r_tire.
Note I said "sometimes it seems"
In hindsight I would say check the aircraft.cfg before messing with the model.
CFS2 supports tricycles only, I found this out making drivable cars and trucks.
Rig your contact points for tricycle gear, All the gear animations should then behave, r_tire included. Regardless of how many wheels are in the model.
The only gear animations I know CFS2 does not support are
aux_gear extension and retraction
rudder_water_deploy both found in the FS2K2 C208 Caravan Amphibian
 
Your problem might be that the c_tire definition is the last line of the GUIDParam section (or is it just an artifact of your snip?).

I have noticed in the past that the if the last line of that section is an animation the animation quite often doesn't work - I have often seen it when one of the main landing gear wheels will rotate but the one on the other side doesn't, or when one set of cowl flaps on a 2 engine plane are animated but the other set is frozen.

Sometimes it can be solved by adding a dummy line to the end of the GUIDParam section. In this case I would use something like
;UINT32 E0 4 {00000000-0000-0000-0000-0000000000000} dummy0

Hope this helps.

Gavin
 
Would it be possible, ...for the benifit of all us programing "thumb merchants"...

...for one of you higher-order air-crew to post a corrected .mdl file...?

Maybe as a zipfile with a ".pdf" added to the extension to make appear as a PDF file...?

ie.

B24Dt.mdl.zip.pdf


Thanks in advance.
Blue Devil
 
gavinc hit the nail right on the head.
Sure enough r_tire is the last entry in the DICT_SECTION. reorganising it thus
Code:
;DICT_SECTION
;FLOAT32   AE        4         {2A09AF32-34E5-11D3-A479-00105A24D108}  l_gear
;FLOAT32   AA        4         {BA9EBED0-34E5-11D3-A479-00105A24D108}  r_gear
;FLOAT32   B6        4         {FC649DE0-34E5-11D3-A479-00105A24D108}  c_gear
;FLOAT32   BA        4         {DC7E5F6D-33A3-4183-AC11-997A0E14575A}  r_spoiler
;FLOAT32   BE        4         {E54A2C80-935E-4C5D-8700-1E1E495E0077}  l_spoiler
;UINT32    A4        4         {FBD8EE2C-39A7-4E9C-B527-AA632FE7E50F}  engine0
;UINT32    A0        4         {D50CA991-BE29-49DC-811C-9BAD544D9AD9}  engine1
;UINT32    9C        4         {B50DD089-FD07-45D7-A84F-6BC19F2F5D83}  engine2
;UINT32    98        4         {53CAB4CC-FE7A-40B3-9EB2-C5805BC949B7}  engine3
;FLOAT32   B2        4         {9E5C1C91-D1A9-477F-B78C-68AD64D4AF56}  f_canopy
;UINT32    C2        4         {4CF550DF-134D-4989-BACD-978E3A69D82E}  c_tire
;UINT32    CA        4         {4D54624D-D897-4408-876E-1E3E38A253B0}  l_tire
;UINT32    C6        4         {747D97A8-8770-4FC7-B8F7-1D893A2544BB}  r_tire
;UINT16    A8        2         {0EECADB4-1724-41C6-B977-D87A4C9544E8}  crash_check
Fixed the wheel.
The attached file is clearly not a PDF please don't try opening it as such. It needs to be tested to see what effect moving crash_check has.
 
Your problem might be that the c_tire definition is the last line of the GUIDParam section (or is it just an artifact of your snip?).

I have noticed in the past that the if the last line of that section is an animation the animation quite often doesn't work - I have often seen it when one of the main landing gear wheels will rotate but the one on the other side doesn't, or when one set of cowl flaps on a 2 engine plane are animated but the other set is frozen.

Sometimes it can be solved by adding a dummy line to the end of the GUIDParam section. In this case I would use something like
;UINT32 E0 4 {00000000-0000-0000-0000-0000000000000} dummy0

Hope this helps.

Gavin

Gavin is correct, IIRC this is a 'glitch' with mdlc, a long ago and forgotten known one. The dummy line or even duplicating the last line works fine.

Jamie
 
Just a note, the r_tire anim doesn't work from source (GMAX/FSDS) it's easily remedied by swapping in the l_tire before compiling.

We oughtta take advantage of the Wiki part of this site and bank all the knowledge, Caleb Flerk stuff especially, in case his site vanishes.

Jamie
 
gavinc hit the nail right on the head.
Sure enough r_tire is the last entry in the DICT_SECTION. reorganising it thus
Code:
;DICT_SECTION
;FLOAT32   AE        4         {2A09AF32-34E5-11D3-A479-00105A24D108}  l_gear
;FLOAT32   AA        4         {BA9EBED0-34E5-11D3-A479-00105A24D108}  r_gear
;FLOAT32   B6        4         {FC649DE0-34E5-11D3-A479-00105A24D108}  c_gear
;FLOAT32   BA        4         {DC7E5F6D-33A3-4183-AC11-997A0E14575A}  r_spoiler
;FLOAT32   BE        4         {E54A2C80-935E-4C5D-8700-1E1E495E0077}  l_spoiler
;UINT32    A4        4         {FBD8EE2C-39A7-4E9C-B527-AA632FE7E50F}  engine0
;UINT32    A0        4         {D50CA991-BE29-49DC-811C-9BAD544D9AD9}  engine1
;UINT32    9C        4         {B50DD089-FD07-45D7-A84F-6BC19F2F5D83}  engine2
;UINT32    98        4         {53CAB4CC-FE7A-40B3-9EB2-C5805BC949B7}  engine3
;FLOAT32   B2        4         {9E5C1C91-D1A9-477F-B78C-68AD64D4AF56}  f_canopy
;UINT32    C2        4         {4CF550DF-134D-4989-BACD-978E3A69D82E}  c_tire
;UINT32    CA        4         {4D54624D-D897-4408-876E-1E3E38A253B0}  l_tire
;UINT32    C6        4         {747D97A8-8770-4FC7-B8F7-1D893A2544BB}  r_tire
;UINT16    A8        2         {0EECADB4-1724-41C6-B977-D87A4C9544E8}  crash_check
Fixed the wheel.
The attached file is clearly not a PDF please don't try opening it as such. It needs to be tested to see what effect moving crash_check has.

The .mdl works great.

took the ".pdf" off the extension, ...and then unzipped it.


Through out the .cdp file to prevent the initial CTD, ...but after that...

...Right main roll.

Thanks buckets, S.


P.S. any chance, ...while you're in there... tinkerin'...?

...can ya get the nose gear to steer with the rudder...

...or to caster if that is the case? (I'll check which)

(I know, ...I greedy, ...but it's hard to find a good A&P for these old birds... :salute: )
 
Back
Top