• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

SCAMS Transform Call with Float

Jaxon

virtually there
I had the idea to fix all my external loadouts to the same setpoint - for example all bombs would be interchngeable use the same mount in the DP file and appear at the same place.
in the sim. If I am right, the stock bombs virtual center is just atop of them, where they are hung up.

DB bombs are also set up like this - they are interchangeable to the stock ones.
Many other objects use other points, for example the center of the visual model or the bottom.

SCASM (http://www.scasm.de/doc/sca_cmd2.htm) offers a command, where I can adjust that:

Move the object around, turn it and even spin it:

TransformCall( :Label delta_x delta_z delta_y
x_deg xvar
y_deg yvar
z_deg zvar )

But unfortunately the delta_# adjustment only allows integer figures, what is not sufficient in this case. I need float for my purpose.

any help out here?
 
Jaxon,

Perhaps try this one: http://www.scasm.de/doc/sca_cmd4.htm#trfm

The Transform_Mat will accept decimal (float) values. However I am fairly positive that the Transform_Mat will not work with the older FSDS 1.## models, in which case you're stuck with TransformCall. TransformCall to my knowledge will work with all FSDS versions and Transform_Mat will work with FSDS versions 2 and up.

Also I have noticed that it appears that the aircraft DP hardpoint mount locations is used by the model to determine if a payload should break away with a specific aircraft part (left bomb with left wing, etc). This won't matter for fine adjustments to the scasm location, and not matter at all of course for aircraft that have no breaking parts.

A scenario would be if a wing bomb is set in the DP at mount.#=0,0,0 and the wing bomb location is set to the wing via the bgl (using the scasm TransformCall or Trandsform_Mat). The wing bomb will not break away with the wing because the DP says it is attached to the fuselage, so you may have a wing break away from combat damage and a bomb still there without the wing.
 
Last edited:
Hi Jaxon and Oglivie,

If I read your post correctly Jaxon, you are looking to relieve the grief of repetitive .dp adjustments. That's a good idea.

I remember a similar thread some time back where the authors (?) stated that if the headers were the same in the .bgls it would help dramatically.
They were referring to Header (), Lat and Long in the *.sca file after converting from bgl.

This is the header from Dbolts weapons.

Code:
Header( 1 N90:00:00 S89:00:00.0179 E179:59:59.9996 W178:59:59.9996 )

After this is done, drag the *.sca onto scasm.exe and it should spit out a new .bgl.

I've never tried matching all the headers myself, though I'm thinking of giving it a try later. :encouragement:

Dave
 
Yes the stock bombs are center is just atop while the mouting pylon is centered at the bottom. Screens from Model Converter X below. This is done so the weapon and pylon can use the same mount numbers.

Weap.jpg
 
Interesting thing about the breakaway parts.
Actually, I just want to set all bombs and such to the same setpoint (top surface visual model), so that they can all use the same location of a certain mount.

Some items are indeed set to 0,0,0 when designed for a specific model. Brunos Maryland crew is such an example. I will keep an eye on this topic when puzzling on.

For now, I will try the Transform_Mat at my bombs - thx for the tip!

Allen, where can I get this tool?
 
Transform_Mat worked :)

Before, the british bomb on the right appeared right in the middle of the wing. Now it`s fixed to use the same mount as most of the other bombs.

Transform_Mat.jpg

Actually just this command was already hidden in that ´British bombs model file - it needed only a proper set up !

alot of work to do now :)
 
Back
Top