Jump to content
Sign in to follow this  
Papacoach

V5.4 and FT eham incompatibility

Recommended Posts

On 6/9/2023 at 11:05 PM, PinkPony said:

I managed to fix it.

Solution:  

1. Locate the eham_grd.lua file in \FlyTampa\Amsterdam\scripts and rename to .off (or delete it).
2. Replace with my eham_grd.lua file, available here https://www.dropbox.com/sh/vkiu3r1hc4horyb/AACef_0mhafuy17u-k2XjBgca?dl=0
3. Enjoy. Long live P3D!

Evidently there has been a change in how P3D v5.4 processes .lua scripts. In the case of Flytampa Amsterdam V2 .lua scripts are used to load the various (seasonal) ground textures which was no longer occuring with the original .lua script. 

P.S. I will reach out to FlyTampa to share my findings. If someone could be so kind to share my solution here on the main FlyTampa thread
https://www.flytampa.org/forum/viewtopic.php?t=36743

The link isn't working anymore.  Where can I get a new link or download the file in question?

Share this post


Link to post
3 hours ago, Benjamin Bavel said:

The link isn't working anymore.

Just tested the Dropbox link myself and all was fine, downloaded np, maybe it's a location based transient issue ?

But in anycase the file name is eham_grd.lua and it's contents are in the spoiler below.

Just copy the spoiler contents to a text file and name that text file as eham_grd.lua (being sure you've got show file extensions enabled in Windows Explorer).

Spoiler

!lua
local month = varget("E:ZULU MONTH OF YEAR", "Number")
local StringOld = varget("T:DiffuseTexture", "String")
local StringNew

    if month == 1 then
        StringNew=string.sub(StringOld,1,7) .. "_hw.dds"
    elseif month == 2 then
        StringNew=string.sub(StringOld,1,7) .. "_wi.dds"
    elseif month <= 9 then
        StringNew=string.sub(StringOld,1,7) .. ".dds"
    else
        StringNew=string.sub(StringOld,1,7) .. "_wi.DDS"
    end

    varset("T:DiffuseTexture","String",StringNew)

 

  • Upvote 1

Ryzen 5800X clocked to 4.7 Ghz (SMT off), 32 GB ram, Samsung 1 x 1 TB NVMe 970, 2 x 1 TB SSD 850 Pro raided, Asus Tuf 3080Ti

P3D 4.5.14, Orbx Global, Vector and more, lotsa planes too.

Catch my vids on Oz Sim Pilot, catch my screen pics @ Screenshots and Prepar3D

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...