Jump to content

Recommended Posts

Posted

As a starter project for AI ship I settled on Polnocny LST . A Polish design for modest sized amphib vessel,

I got the model, from SketchFab, converted it to edm then edm2 using ModelViewer2 (EDM tools).

Created polnocny.lua and entry.lua for Encyclopedia. 

BUT!!! In game the model is kilometers long!!! 

Is the size set in EDM model or in the LUA?

Following file structure

mod location C:\Users\USER\Saved Games\DCS.openbeta\Mods\tech\Polnocny  

C:\Users\USER\Saved Games\DCS.openbeta\Mods\tech\Polnocny\Shapes\polnocny.edm

C:\Users\USER\Saved Games\DCS.openbeta\Mods\tech\Polnocny\Textures\polnocny.zip  DDS files

C:\Users\USER\Saved Games\DCS.openbeta\Mods\tech\Polnocny\Textures\description.lua  texture assignment

In polnocny.lua  which located in C:\Users\USER\Saved Games\DCS.openbeta\Mods\tech\Polnocny

Lines 9 -35

GT.visual = {}
GT.visual.shape = "polnocny"
GT.visual.shape_dstr = "polnocny"

GT.life = 800
GT.mass = 8.34e+005                     -- Displacement 834 tons. Thus 834,000 kg
GT.max_velocity = 8.2
GT.race_velocity = 9
GT.economy_velocity = 7
GT.economy_distance = 8.5192e+006
GT.race_distance = 2.9632e+006
GT.shipLength = 73                              -- Length 73 meters
GT.Width = 9.6                                      -- Beam(Width) 9.6 meters      
GT.Height = 22.7
GT.Length = 7.3
GT.DeckLevel = 2.3
GT.X_nose = 61
GT.X_tail = -52
GT.Tail_Width = 15
GT.Gamma_max = 0.35
GT.Om = 0.05
GT.speedup = 0.365728
GT.R_min = 247
GT.distFindObstacles = 300

GT.airWeaponDist = 7000
GT.airFindDist = 4000

 

Real life stats on vessel

Displacement: 834 tons

Length: 73 meters

Beam:  9.6 meters

Draft: 2.3 meters

Why is vessel so giant in DCS? Is it eh EDM geometry or LUA

Why is not centered on its axis and on its bounding volume?

 

Thank you

polnocny_SIZE.jpg

Polnocny.zip polnocny.lua

Posted

In Naval architecture Displacelemt is calcuted as 

Displacement (D) = l × b × d × c

length 'l' X beam 'b' X draft 'd' X block coefficent 'c'

I am not certain what block coefficient refers to, and it is not referenced in LUA. 

To achieve 834 tons displacement block coefficient has to be .5175

834 tons = 73 meters X 9.6 meters X 2.3 meters X .5175

834 = 73 * 9.6 * 2.3 * .5175

Where would each of those  numbers go in the LUA file. LUA does  not have displacement parameter , it has mass. Which may be assumed to be the same thing for DCS.

Posted

OK HullFOrm Block coefficent is ratio of underwater volume of vessel hull to overall volume box of the hull. Importance is to the hull not to the overall volume box of the vessel. 

How deep does DCS goes into hydrodynamics?

If ED understands aerodynamics , hydrodynamics are just everything multiplied by 1000 and no compressibility (at seal level on standard day). ED could make high speed missile catamaran boat sims. 

Posted

size is the model not in lua

The only way to make sense out of change is to plunge into it, move with it, and join the dance.

"Me, the 13th Duke of Wybourne, here on the ED forums at 3 'o' clock in the morning, with my reputation. Are they mad.."

https://ko-fi.com/joey45

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...