Jump to content

Recommended Posts

Posted

So far I tested it only with replays from 4YA training server but whenever I try to watch a replay it hangs because of a LUA error and never continues.
action can be nil and type is a table. So it fails on this line:

    local t = wptByType[type .. ':' .. action]

My temporary solution is to edit MissionEditor/modules/me_route.lua and replace the code from waypointActionToType function with this.

function waypointActionToType(type, action, groupType)
    if not wptByType then
        wptByType = createWaypointsIndex(actions)
    end
    if action == nil then
        action = ""
    end
    type = ""
    local t = wptByType[type .. ':' .. action]
    if not t then
        if groupType == 'plane' or groupType == 'helicopter' or groupType == 'ship' then
            t = actions.turningPoint
        else
            if 'On Road' == action then
                t = actions.onRoad
            else
                t = actions.offRoad
            end
        end
    end
    return t
end

dcs.log

  • 3 weeks later...
  • Recently Browsing   0 members

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