Exemple #1
0
    bool SaveAsNewFolder(string NewFolderName, string FileBeginName = "")
    {
        string SystemPath = MapLuaParser.Current.FolderParentPath + NewFolderName;

        if (!System.IO.Directory.Exists(SystemPath))
        {
            System.IO.Directory.CreateDirectory(SystemPath);
        }
        else if (System.IO.Directory.GetFiles(SystemPath + "/").Length <= 0)
        {
        }
        else
        {
            GenericPopup.ShowPopup(GenericPopup.PopupTypes.Error, "Error", "Trying to save map, but folder " + NewFolderName + " is not empty!\nSave as can be only used for empty folders.", "OK", null);

            return(false);
        }

        string OldFolderName = MapLuaParser.Current.FolderName;

        MapLuaParser.Current.FolderName = NewFolderName;


        string OldScript      = MapLuaParser.Current.ScenarioLuaFile.Data.script.Replace("/maps/", MapLuaParser.Current.FolderParentPath);
        string OldOptionsFile = OldScript.Replace("_script.lua", "_options.lua");

        if (string.IsNullOrEmpty(FileBeginName))
        {
            FileBeginName = MapLuaParser.Current.ScenarioFileName.Replace("_scenario", "");
        }
        else
        {
            MapLuaParser.Current.ScenarioFileName = FileBeginName + "_scenario";
        }

        MapLuaParser.Current.ScenarioLuaFile.Data.map     = "/maps/" + MapLuaParser.Current.FolderName + "/" + FileBeginName + ".scmap";
        MapLuaParser.Current.ScenarioLuaFile.Data.save    = "/maps/" + MapLuaParser.Current.FolderName + "/" + FileBeginName + "_save.lua";
        MapLuaParser.Current.ScenarioLuaFile.Data.script  = "/maps/" + MapLuaParser.Current.FolderName + "/" + FileBeginName + "_script.lua";
        MapLuaParser.Current.ScenarioLuaFile.Data.preview = "";

        LoadRecentMaps.MoveLastMaps(MapLuaParser.Current.ScenarioFileName, MapLuaParser.Current.FolderName, MapLuaParser.Current.FolderParentPath);

        string EnvPath = MapLuaParser.Current.FolderParentPath + OldFolderName + "/env";

        if (System.IO.Directory.Exists(EnvPath))
        {
            DirectoryCopy(EnvPath, MapLuaParser.Current.FolderParentPath + NewFolderName + "/env", true);
        }

        MapLuaParser.Current.SaveMap(false);

        string LoadScript = System.IO.File.ReadAllText(OldScript);

        //Replace old folder name to new one
        LoadScript = LoadScript.Replace(OldFolderName + "/", NewFolderName + "/");
        System.IO.File.WriteAllText(MapLuaParser.Current.ScenarioLuaFile.Data.script.Replace("/maps/", MapLuaParser.Current.FolderParentPath), LoadScript);

        //System.IO.File.Copy(OldScript, MapLuaParser.Current.ScenarioLuaFile.Data.script.Replace("/maps/", MapLuaParser.Current.FolderParentPath));

        if (System.IO.File.Exists(OldOptionsFile))
        {         // Found options, copy it
            System.IO.File.Copy(OldOptionsFile, MapLuaParser.Current.ScenarioLuaFile.Data.script.Replace("/maps/", MapLuaParser.Current.FolderParentPath).Replace("_script.lua", "_options.lua"));
        }

        EditingMenu.MapInfoMenu.UpdateFields();
        WindowStateSever.WindowStateSaver.ChangeWindowName(NewFolderName);

        return(true);
    }
Exemple #2
0
    IEnumerator LoadingFile()
    {
        while (SavingMapProcess)
            yield return null;

        Undo.Current.Clear();

        bool AllFilesExists = true;
        string Error = "";
        if (!System.IO.Directory.Exists(FolderParentPath))
        {
            Error = "Map folder does not exist:\n" + FolderParentPath;
            Debug.LogWarning(Error);
            AllFilesExists = false;
        }

        if (AllFilesExists && !System.IO.File.Exists(LoadedMapFolderPath + ScenarioFileName + ".lua"))
        {
            AllFilesExists = SearchForScenario();

            if (!AllFilesExists)
            {
                Error = "Scenario.lua does not exist:\n" + LoadedMapFolderPath + ScenarioFileName + ".lua";
                Debug.LogWarning(Error);
            }
        }

        if (AllFilesExists)
        {
            string ScenarioText = System.IO.File.ReadAllText(LoadedMapFolderPath + ScenarioFileName + ".lua");

            if (!ScenarioText.StartsWith("version = 3") && ScenarioText.StartsWith("version ="))
            {
                AllFilesExists = SearchForScenario();

                if (!AllFilesExists)
                {
                    Error = "Wrong scenario file version. Should be 3, is " + ScenarioText.Remove(11).Replace("version =", "");
                    Debug.LogWarning(Error);
                }
            }

            if (AllFilesExists && !ScenarioText.StartsWith("version = 3"))
            {
                AllFilesExists = SearchForScenario();

                if (!AllFilesExists)
                {
                    Error = "Selected file is not a proper scenario.lua file. ";
                    Debug.LogWarning(Error);
                }
            }
        }

        if (AllFilesExists && !System.IO.File.Exists(EnvPaths.GamedataPath + "/env.scd"))
        {
            Error = "No source files in gamedata folder: " + EnvPaths.GamedataPath;
            Debug.LogWarning(Error);
            AllFilesExists = false;
        }

        if (AllFilesExists)
        {
            // Begin load
            LoadRecentMaps.MoveLastMaps(ScenarioFileName, FolderName, FolderParentPath);
            LoadingMapProcess = true;
            InfoPopup.Show(true, "Loading map...\n( " + ScenarioFileName + ".lua" + " )");
            EditMenu.gameObject.SetActive(true);
            Background.SetActive(false);
            yield return null;

            ScenarioLuaFile = new ScenarioLua();
            SaveLuaFile = new SaveLua();
            TablesLuaFile = new TablesLua();
            AsyncOperation ResUn = Resources.UnloadUnusedAssets();
            while (!ResUn.isDone)
            {
                yield return null;
            }

            // Scenario LUA
            if (ScenarioLuaFile.Load(FolderName, ScenarioFileName, FolderParentPath))
            {
                //Map Loaded
                MapCenterPoint = Vector3.zero;
                MapCenterPoint.x = (GetMapSizeX() / 20f);
                MapCenterPoint.z = -1 * (GetMapSizeY() / 20f);
            }

            CameraControler.Current.MapSize = Mathf.Max(ScenarioLuaFile.Data.Size[0], ScenarioLuaFile.Data.Size[1]);
            CameraControler.Current.RestartCam();

            InfoPopup.Show(true, "Loading map...\n(" + ScenarioLuaFile.Data.map + ")");
            yield return null;

            // SCMAP
            LoadScmapFile = HeightmapControler.StartCoroutine(ScmapEditor.Current.LoadScmapFile());
            System.GC.Collect();

            yield return LoadScmapFile;

            if(ScmapEditor.Current.map.VersionMinor == 0)
            {
                Error = "scmap file not loaded!\n" + MapLuaParser.Current.ScenarioLuaFile.Data.map;

                InfoPopup.Show(false);
                LoadingMapProcess = false;
                ResetUI();
                ReturnLoadingWithError(Error);

                yield return null;
                StopCoroutine(LoadingFileCoroutine);
            }

            CameraControler.Current.RestartCam();

            if (HeightmapControler.map.VersionMinor >= 60)
                EditMenu.MapInfoMenu.SaveAsFa.isOn = true;
            else
                EditMenu.MapInfoMenu.SaveAsSc.isOn = true;

            InfoPopup.Show(true, "Loading map...\n(" + ScenarioLuaFile.Data.save + ")");
            yield return null;

            if (loadSave)
            {
                // Save LUA
                SaveLuaFile.Load();
                SetSaveLua();
                System.GC.Collect();
                //LoadSaveLua();
                yield return null;

                Coroutine UnitsLoader = StartCoroutine(SaveLuaFile.LoadUnits());
                yield return UnitsLoader;
            }

            // Load Props
            if (LoadProps)
            {
                PropsMenu.gameObject.SetActive(true);

                PropsMenu.AllowBrushUpdate = false;
                PropsMenu.StartCoroutine(PropsMenu.LoadProps());
                while (PropsMenu.LoadingProps)
                {
                    InfoPopup.Show(true, "Loading map...\n( Loading props " + PropsMenu.LoadedCount + "/" + ScmapEditor.Current.map.Props.Count + ")");
                    yield return null;
                }
                System.GC.Collect();
                PropsMenu.gameObject.SetActive(false);
            }

            if (LoadDecals)
            {
                DecalsMenu.gameObject.SetActive(true);

                //DecalsMenu.AllowBrushUpdate = false;
                DecalsMenu.StartCoroutine(DecalsMenu.LoadDecals());
                while (DecalsInfo.LoadingDecals)
                {
                    InfoPopup.Show(true, "Loading map...\n( Loading decals " + DecalsMenu.LoadedCount + "/" + ScmapEditor.Current.map.Decals.Count + ")");
                    yield return null;
                }
                System.GC.Collect();
                DecalsMenu.gameObject.SetActive(false);
            }

            if (TablesLuaFile.Load(FolderName, ScenarioFileName, FolderParentPath))
            {
                //Map Loaded
            }

            int ParsedVersionValue = AppMenu.GetVersionControll(FolderName);

            if(ParsedVersionValue > 0)
            {
                ScenarioLuaFile.Data.map_version = ParsedVersionValue;
            }

            InfoPopup.Show(false);
            WindowStateSever.WindowStateSaver.ChangeWindowName(FolderName);
            LoadingMapProcess = false;

            RenderMarkersConnections.Current.UpdateConnections();

            EditMenu.Categorys[0].GetComponent<MapInfo>().UpdateFields();

            MapLuaParser.Current.UpdateArea();

            GenericInfoPopup.ShowInfo("Map successfully loaded!\n" + FolderName + "/" + ScenarioFileName + ".lua");
        }
        else
        {
            ResetUI();
            ReturnLoadingWithError(Error);

        }
    }
Exemple #3
0
    IEnumerator LoadingFile()
    {
        while (SavingMapProcess)
        {
            yield return(null);
        }

        Undo.Current.Clear();

        bool   AllFilesExists = true;
        string Error          = "";

        if (!System.IO.Directory.Exists(FolderParentPath))
        {
            Error = "Map folder does not exist:\n" + FolderParentPath;
            Debug.LogWarning(Error);
            AllFilesExists = false;
        }

        if (AllFilesExists && !System.IO.File.Exists(LoadedMapFolderPath + ScenarioFileName + ".lua"))
        {
            AllFilesExists = SearchForScenario();

            if (!AllFilesExists)
            {
                Error = "Scenario.lua does not exist:\n" + LoadedMapFolderPath + ScenarioFileName + ".lua";
                Debug.LogWarning(Error);
            }
        }

        if (AllFilesExists)
        {
            string ScenarioText = System.IO.File.ReadAllText(LoadedMapFolderPath + ScenarioFileName + ".lua");

            if (!ScenarioText.StartsWith("version = 3") && ScenarioText.StartsWith("version ="))
            {
                AllFilesExists = SearchForScenario();

                if (!AllFilesExists)
                {
                    Error = "Wrong scenario file version. Should be 3, is " + ScenarioText.Remove(11).Replace("version =", "");
                    Debug.LogWarning(Error);
                }
            }


            if (AllFilesExists && !ScenarioText.StartsWith("version = 3"))
            {
                AllFilesExists = SearchForScenario();

                if (!AllFilesExists)
                {
                    Error = "Selected file is not a proper scenario.lua file. ";
                    Debug.LogWarning(Error);
                }
            }
        }

        if (AllFilesExists && !System.IO.File.Exists(EnvPaths.GamedataPath + "/env.scd"))
        {
            Error = "No source files in gamedata folder: " + EnvPaths.GamedataPath;
            Debug.LogWarning(Error);
            AllFilesExists = false;
        }

        if (AllFilesExists)
        {
            // Begin load
            LoadRecentMaps.MoveLastMaps(ScenarioFileName, FolderName, FolderParentPath);
            LoadingMapProcess = true;
            InfoPopup.Show(true, "Loading map...\n( " + ScenarioFileName + ".lua" + " )");
            EditMenu.gameObject.SetActive(true);
            Background.SetActive(false);
            yield return(null);

            ScenarioLuaFile = new ScenarioLua();
            SaveLuaFile     = new SaveLua();
            TablesLuaFile   = new TablesLua();
            AsyncOperation ResUn = Resources.UnloadUnusedAssets();
            while (!ResUn.isDone)
            {
                yield return(null);
            }

            // Scenario LUA
            if (ScenarioLuaFile.Load(FolderName, ScenarioFileName, FolderParentPath))
            {
                //Map Loaded
            }


            CameraControler.Current.MapSize = Mathf.Max(ScenarioLuaFile.Data.Size[0], ScenarioLuaFile.Data.Size[1]);
            CameraControler.Current.RestartCam();


            InfoPopup.Show(true, "Loading map...\n(" + ScenarioLuaFile.Data.map + ")");
            yield return(null);

            // SCMAP
            LoadScmapFile = HeightmapControler.StartCoroutine(ScmapEditor.Current.LoadScmapFile());
            yield return(LoadScmapFile);

            CameraControler.Current.RestartCam();

            EditMenu.MapInfoMenu.SaveAsFa.isOn = HeightmapControler.map.VersionMinor >= 60;
            EditMenu.MapInfoMenu.SaveAsSc.isOn = !EditMenu.MapInfoMenu.SaveAsFa.isOn;

            InfoPopup.Show(true, "Loading map...\n(" + ScenarioLuaFile.Data.save + ")");
            yield return(null);

            if (loadSave)
            {
                // Save LUA
                SaveLuaFile.Load();
                SetSaveLua();
                //LoadSaveLua();
                yield return(null);

                Coroutine UnitsLoader = StartCoroutine(SaveLuaFile.LoadUnits());
                yield return(UnitsLoader);
            }

            //GetGamedataFile.LoadUnit("XEL0209").CreateUnitObject(MapLuaParser.Current.MapCenterPoint, Quaternion.identity);

            //GetGamedataFile.LoadUnit("UEB0201").CreateUnitObject(MapLuaParser.Current.MapCenterPoint + Vector3.forward * 0.7f, Quaternion.identity);

            //GetGamedataFile.LoadUnit("UEL0001").CreateUnitObject(MapLuaParser.Current.MapCenterPoint + Vector3.left * 0.3f, Quaternion.identity);

            /*
             * //4k Sparkys with GPU instancing
             * for (int x = 0; x < 63; x++)
             * {
             *      for(int y = 0; y < 63; y++)
             *      {
             *              Vector3 Pos = MapLuaParser.Current.MapCenterPoint + new Vector3(x * -0.1f, 0, y * -0.1f);
             *              GetGamedataFile.LoadUnit("XEL0209").CreateUnitObject(Pos, Quaternion.identity);
             *      }
             * }
             */

            // Load Props
            if (LoadProps)
            {
                PropsMenu.gameObject.SetActive(true);

                PropsMenu.AllowBrushUpdate = false;
                PropsMenu.StartCoroutine(PropsMenu.LoadProps());
                while (PropsMenu.LoadingProps)
                {
                    InfoPopup.Show(true, "Loading map...\n( Loading props " + PropsMenu.LoadedCount + "/" + ScmapEditor.Current.map.Props.Count + ")");
                    yield return(null);
                }

                PropsMenu.gameObject.SetActive(false);
            }

            if (LoadDecals)
            {
                DecalsMenu.gameObject.SetActive(true);

                //DecalsMenu.AllowBrushUpdate = false;
                DecalsMenu.StartCoroutine(DecalsMenu.LoadDecals());
                while (DecalsInfo.LoadingDecals)
                {
                    InfoPopup.Show(true, "Loading map...\n( Loading decals " + DecalsMenu.LoadedCount + "/" + ScmapEditor.Current.map.Decals.Count + ")");
                    yield return(null);
                }

                DecalsMenu.gameObject.SetActive(false);
            }

            if (TablesLuaFile.Load(FolderName, ScenarioFileName, FolderParentPath))
            {
                //Map Loaded
            }

            InfoPopup.Show(false);
            WindowStateSever.WindowStateSaver.ChangeWindowName(FolderName);
            LoadingMapProcess = false;


            RenderMarkersConnections.Current.UpdateConnections();

            EditMenu.Categorys[0].GetComponent <MapInfo>().UpdateFields();

            MapLuaParser.Current.UpdateArea();

            GenericInfoPopup.ShowInfo("Map successfully loaded!\n" + FolderName + "/" + ScenarioFileName + ".lua");
        }
        else
        {
            ResetUI();
            ReturnLoadingWithError(Error);
        }
    }
    bool SaveAsNewFolder(string NewFolderName, string FileBeginName = "")
    {
        string SystemPath = MapLuaParser.Current.FolderParentPath + NewFolderName;

        if (!System.IO.Directory.Exists(SystemPath))
        {
            System.IO.Directory.CreateDirectory(SystemPath);
        }
        else if (System.IO.Directory.GetFiles(SystemPath + "/").Length <= 0)
        {
        }
        else
        {
            GenericPopup.ShowPopup(GenericPopup.PopupTypes.Error, "Error", "Trying to save map, but folder " + NewFolderName + " is not empty!\nSave as can be only used for empty folders.", "OK", null);

            return(false);
        }

        string OldFolderName  = MapLuaParser.Current.FolderName;
        string OldScript      = MapLuaParser.Current.ScenarioLuaFile.Data.script.Replace("/maps/", MapLuaParser.Current.FolderParentPath);
        string OldOptionsFile = OldScript.Replace("_script.lua", "_options.lua");

        MapLuaParser.Current.FolderName = NewFolderName;


        if (string.IsNullOrEmpty(FileBeginName))
        {
            FileBeginName = MapLuaParser.Current.ScenarioFileName.Replace("_scenario", "");
        }
        else
        {
            MapLuaParser.Current.ScenarioFileName = FileBeginName + "_scenario";
        }

        MapLuaParser.Current.ScenarioLuaFile.Data.map     = "/maps/" + MapLuaParser.Current.FolderName + "/" + FileBeginName + ".scmap";
        MapLuaParser.Current.ScenarioLuaFile.Data.save    = "/maps/" + MapLuaParser.Current.FolderName + "/" + FileBeginName + "_save.lua";
        MapLuaParser.Current.ScenarioLuaFile.Data.script  = "/maps/" + MapLuaParser.Current.FolderName + "/" + FileBeginName + "_script.lua";
        MapLuaParser.Current.ScenarioLuaFile.Data.preview = "";

        LoadRecentMaps.MoveLastMaps(MapLuaParser.Current.ScenarioFileName, MapLuaParser.Current.FolderName, MapLuaParser.Current.FolderParentPath);

        MapLuaParser.Current.SaveMap(false);

        string[] LoadScript = System.IO.File.ReadAllLines(OldScript);
        //Replace old folder name to new one

        string searchFolderString = "/maps/" + OldFolderName;

        for (int l = 0; l < LoadScript.Length; l++)
        {
            if (LoadScript[l].StartsWith("local Tables = import"))
            {
                LoadScript[l] = "local Tables = import('/maps/" + MapLuaParser.Current.FolderName + "/" + FileBeginName + "_tables.lua')";
            }
            else if (LoadScript[l].Contains(searchFolderString))
            {
                LoadScript[l] = LoadScript[l].Replace(searchFolderString, "/maps/" + MapLuaParser.Current.FolderName);
            }
        }

        System.IO.File.WriteAllLines(MapLuaParser.Current.ScenarioLuaFile.Data.script.Replace("/maps/", MapLuaParser.Current.FolderParentPath), LoadScript);

        if (System.IO.File.Exists(OldOptionsFile))
        {         // Found options, copy it
            System.IO.File.Copy(OldOptionsFile, MapLuaParser.Current.ScenarioLuaFile.Data.script.Replace("/maps/", MapLuaParser.Current.FolderParentPath).Replace("_script.lua", "_options.lua"));
        }



        //string EnvPath = MapLuaParser.Current.FolderParentPath + OldFolderName + "/env";

        /*if (System.IO.Directory.Exists(EnvPath))
         * {
         *      DirectoryCopy(EnvPath, MapLuaParser.Current.FolderParentPath + NewFolderName + "/env", true);
         * }*/

        string OldDirectoryPath = MapLuaParser.Current.FolderParentPath + OldFolderName;
        string NewDirectoryPath = MapLuaParser.Current.FolderParentPath + NewFolderName;

        string[] allSubDirectories = System.IO.Directory.GetDirectories(OldDirectoryPath);
        for (int i = 0; i < allSubDirectories.Length; i++)
        {
            string newPath = allSubDirectories[i].Replace(OldDirectoryPath, SystemPath);
            DirectoryCopy(allSubDirectories[i], newPath, true);
        }

        string[] allSubFiles = System.IO.Directory.GetFiles(OldDirectoryPath);
        for (int i = 0; i < allSubFiles.Length; i++)
        {
            string fileName = System.IO.Path.GetFileName(allSubFiles[i]);

            if (fileName == FileBeginName + ".scmap" ||
                fileName == FileBeginName + "_scenario.lua" ||
                fileName == FileBeginName + "_save.lua" ||
                fileName == FileBeginName + "_script.lua" ||
                fileName == FileBeginName + "_tables.lua" ||
                fileName == FileBeginName + "_options.lua"
                )
            {
                continue;
            }
            else
            {
                string newFilePath = SystemPath + "/" + Path.GetFileNameWithoutExtension(allSubFiles[i]).Replace(OldFolderName, NewFolderName) + Path.GetExtension(allSubFiles[i]);
                if (!File.Exists(newFilePath))
                {
                    File.Copy(allSubFiles[i], newFilePath);
                }
            }
        }


        EditingMenu.MapInfoMenu.UpdateFields();
        WindowStateSever.WindowStateSaver.ChangeWindowName(NewFolderName);

        return(true);
    }
Exemple #5
0
    bool SaveAsNewFolder(string NewFolderName, string FileBeginName = "")
    {
        string SystemPath = MapLuaParser.Current.FolderParentPath + NewFolderName;

        if (!System.IO.Directory.Exists(SystemPath))
        {
            System.IO.Directory.CreateDirectory(SystemPath);
        }
        else if (System.IO.Directory.GetFiles(SystemPath + "/").Length <= 0)
        {
        }
        else
        {
            GenericPopup.ShowPopup(GenericPopup.PopupTypes.Error, "Error", "Next map version folder already exist.\nRemove it or load never version.", "OK", null);

            return(false);
        }

        string OldFolderName = MapLuaParser.Current.FolderName;

        MapLuaParser.Current.FolderName = NewFolderName;


        string OldScript      = MapLuaParser.Current.ScenarioLuaFile.Data.script.Replace("/maps/", MapLuaParser.Current.FolderParentPath);
        string OldOptionsFile = OldScript.Replace("_script.lua", "_options.lua");

        if (string.IsNullOrEmpty(FileBeginName))
        {
            FileBeginName = MapLuaParser.Current.ScenarioFileName.Replace("_scenario", "");
        }
        else
        {
            MapLuaParser.Current.ScenarioFileName = FileBeginName + "_scenario";
        }

        MapLuaParser.Current.ScenarioLuaFile.Data.map     = "/maps/" + MapLuaParser.Current.FolderName + "/" + FileBeginName + ".scmap";
        MapLuaParser.Current.ScenarioLuaFile.Data.save    = "/maps/" + MapLuaParser.Current.FolderName + "/" + FileBeginName + "_save.lua";
        MapLuaParser.Current.ScenarioLuaFile.Data.script  = "/maps/" + MapLuaParser.Current.FolderName + "/" + FileBeginName + "_script.lua";
        MapLuaParser.Current.ScenarioLuaFile.Data.preview = "";

        LoadRecentMaps.MoveLastMaps(MapLuaParser.Current.ScenarioFileName, MapLuaParser.Current.FolderName, MapLuaParser.Current.FolderParentPath);


        MapLuaParser.Current.SaveMap(false);

        string LoadScript = System.IO.File.ReadAllText(OldScript);

        //Replace old folder name to new one
        LoadScript = LoadScript.Replace(OldFolderName + "/", NewFolderName + "/");
        System.IO.File.WriteAllText(MapLuaParser.Current.ScenarioLuaFile.Data.script.Replace("/maps/", MapLuaParser.Current.FolderParentPath), LoadScript);

        //System.IO.File.Copy(OldScript, MapLuaParser.Current.ScenarioLuaFile.Data.script.Replace("/maps/", MapLuaParser.Current.FolderParentPath));

        if (System.IO.File.Exists(OldOptionsFile))
        {         // Found options, copy it
            System.IO.File.Copy(OldOptionsFile, MapLuaParser.Current.ScenarioLuaFile.Data.script.Replace("/maps/", MapLuaParser.Current.FolderParentPath).Replace("_script.lua", "_options.lua"));
        }

        EditingMenu.MapInfoMenu.UpdateFields();
        return(true);
    }