LustyMap

In-game map and minimap GUI

Total Downloads: 48,884 - First Release: Sep 8, 2015 - Last Update: Dec 29, 2017

5/5, 163 likes
  1. you need to download the files on the overview page under the Map and Icon Images section. Look for http://zilfa.com/projects/LustyMap.zip
     
  2. If you read the instructions you now have to add the map to the folder, so you now need to download this map from somewhere (eg RustIO) and then place it there, with the other details required
     
  3. Thanks for your responses, but I figured it out on my own. As with other people it took a few times reading the instructions to understand :)
     
  4. Well done
     
  5. its not working on linux servers, because folder names are case sensitive in linux file system, and also in path instead of // you must use \ in linux for it to work.
     
  6. i am in love with this plugin... great work, m8
    [DOUBLEPOST=1460962271][/DOUBLEPOST]a little Q: how strong increases traffic to the server, if there is ~100 players online and all of them uses complex map mode?
     
  7. Hello!
    Excellent work with the last update.
    Thank you a lot.
     
  8. You can add, which dropped AirDrop on the map ?
     
  9. Please fix position
     

    Attached Files:

  10. you are using wrong map.jpg image.
     
  11. I fix it. 1440 x 1440 need image
     
  12. 755 files, 777 folder than works
     
  13. thanks i actually figured it out. There is several typos in the plugin as i was getting errors like this in console on Linux
    /home/rustserver/serverfiles/server/rust-server/oxide/data/LustyMap//icons/self300.png

    Notice how // should be /

    /home/rustserver/serverfiles/server/rust-server/oxide/data/LustyMap/\map32x32\map-5-26.jpeg

    Notice /\ and \ it should be / and /

    Find this code:

    Code:
              // Icons
                if (debug) { Puts("Downloading images..."); }
                string dataDirectory = "file://" + Interface.Oxide.DataDirectory + "\\LustyMap\\";            List<string> files = new List<string>()
                {
                    "self",
                    "heli",
                    "plane"
                };            foreach (string file in files)
                {
                    string path = dataDirectory + "\\icons\\";
                    string ext = ".png";                for (int i = 0; i <= 360; i = i + 10)
                    {
                        ImageAssets.getImage(file + i.ToString(), path + file + i.ToString() + ext);
                    }
                }            ImageAssets.getImage("lighthouse", dataDirectory + "\\icons\\lighthouse.png");
                ImageAssets.getImage("radtown", dataDirectory + "\\icons\\radtown.png");
                ImageAssets.getImage("cave", dataDirectory  + "\\icons\\cave.png");
                ImageAssets.getImage("warehouse", dataDirectory + "\\icons\\warehouse.png");
                ImageAssets.getImage("dish", dataDirectory + "\\icons\\dish.png");
                ImageAssets.getImage("spheretank", dataDirectory + "\\icons\\spheretank.png");
                ImageAssets.getImage("special", dataDirectory + "\\icons\\special.png");                      // Map
                ImageAssets.getImage("mapimage", dataDirectory + "map.jpg");            if (mapmode)
                {
                    for (int i = 0; i < 32; i++)
                    {
                        for (int j = 0; j < 32; j++)
                        {
                            ImageAssets.getImage("map-" + i.ToString() + "-" + j.ToString(), dataDirectory + "\\map32x32\\map-" + i.ToString() + "-" + j.ToString() + ".jpeg");
                        }
                    }
                }
    Replace with:


    Code:
                // Icons
                if (debug) { Puts("Downloading images..."); }
                string dataDirectory = "file://" + Interface.Oxide.DataDirectory + "/LustyMap/";            List<string> files = new List<string>()
                {
                    "self",
                    "heli",
                    "plane"
                };            foreach (string file in files)
                {
                    string path = dataDirectory + "/icons/";
                    string ext = ".png";                for (int i = 0; i <= 360; i = i + 10)
                    {
                        ImageAssets.getImage(file + i.ToString(), path + file + i.ToString() + ext);
                    }
                }            ImageAssets.getImage("lighthouse", dataDirectory + "/icons/lighthouse.png");
                ImageAssets.getImage("radtown", dataDirectory + "/icons/radtown.png");
                ImageAssets.getImage("cave", dataDirectory  + "/icons/cave.png");
                ImageAssets.getImage("warehouse", dataDirectory + "/icons/warehouse.png");
                ImageAssets.getImage("dish", dataDirectory + "/icons/dish.png");
                ImageAssets.getImage("spheretank", dataDirectory + "/icons/spheretank.png");
                ImageAssets.getImage("special", dataDirectory + "/icons/special.png");                     // Map
                ImageAssets.getImage("mapimage", dataDirectory + "map.jpg");            if (mapmode)
                {
                    for (int i = 0; i < 32; i++)
                    {
                        for (int j = 0; j < 32; j++)
                        {
                            ImageAssets.getImage("map-" + i.ToString() + "-" + j.ToString(), dataDirectory + "/map32x32/map-" + i.ToString() + "-" + j.ToString() + ".jpeg");
                        }
                    }
                }
     
    Last edited by a moderator: Apr 18, 2016
  14. Code:
     // Icons
                if (debug) { Puts("Downloading images..."); }
                string dataDirectory = "file://" + Interface.Oxide.DataDirectory + "/LustyMap";            List<string> files = new List<string>()
                {
                    "self",
                    "heli",
                    "plane"
                };            foreach (string file in files)
                {
                    string path = dataDirectory + "/icons/";
                    string ext = ".png";                for (int i = 0; i <= 360; i = i + 10)
                    {
                        ImageAssets.getImage(file + i.ToString(), path + file + i.ToString() + ext);
                    }
                }            ImageAssets.getImage("lighthouse", dataDirectory + "/icons/lighthouse.png");
                ImageAssets.getImage("radtown", dataDirectory + "/icons/radtown.png");
                ImageAssets.getImage("cave", dataDirectory  + "/icons/cave.png");
                ImageAssets.getImage("warehouse", dataDirectory + "/icons/warehouse.png");
                ImageAssets.getImage("dish", dataDirectory + "/icons/dish.png");
                ImageAssets.getImage("spheretank", dataDirectory + "/icons/spheretank.png");
                ImageAssets.getImage("special", dataDirectory + "/icons/special.png");                      // Map
                ImageAssets.getImage("mapimage", dataDirectory + "/map.jpg");            if (mapmode)
                {
                    for (int i = 0; i < 32; i++)
                    {
                        for (int j = 0; j < 32; j++)
                        {
                            ImageAssets.getImage("map-" + i.ToString() + "-" + j.ToString(), dataDirectory + "/map32x32/map-" + i.ToString() + "-" + j.ToString() + ".jpeg");
                        }
                    }
                }
    use it :)
     
  15. Hey Guys LinuxServer Fixed LustyMap

    ・\\ = /
    ・Firest \\ removed
    ・FolderName is [icons = Icons] or Download FolderName Changed i = I

    Code:
            private void cacheImages()
            {
                // Disable map updates while downloading images...
                run = false;            // Initialize image cache
                LustyObject = new GameObject();
                ImageAssets = LustyObject.AddComponent<ImageCache>();
                ImageAssets.imageFiles.Clear();            // Icons
                if (debug) { Puts("Downloading images..."); }
                //fix \\ = /
                string dataDirectory = "file://" + Interface.Oxide.DataDirectory + "/LustyMap/";            List<string> files = new List<string>()
                {
                    "self",
                    "heli",
                    "plane"
                };
                //fix \\ = / removed firest \\
                foreach (string file in files)
                {
                    string path = dataDirectory + "Icons/";
                    string ext = ".png";                for (int i = 0; i <= 360; i = i + 10)
                    {
                        ImageAssets.getImage(file + i.ToString(), path + file + i.ToString() + ext);
                    }
                }
                //Fix !! i = I DownLoadFordername is Icons and change[\\ = /] firest \\ removed
                ImageAssets.getImage("lighthouse", dataDirectory + "Icons/lighthouse.png");
                ImageAssets.getImage("radtown", dataDirectory + "Icons/radtown.png");
                ImageAssets.getImage("cave", dataDirectory  + "Icons/cave.png");
                ImageAssets.getImage("warehouse", dataDirectory + "Icons/warehouse.png");
                ImageAssets.getImage("dish", dataDirectory + "Icons/dish.png");
                ImageAssets.getImage("spheretank", dataDirectory + "Icons/spheretank.png");
                ImageAssets.getImage("special", dataDirectory + "Icons/special.png");                     // Map
                ImageAssets.getImage("mapimage", dataDirectory + "map.jpg");            if (mapmode)
                {
                    for (int i = 0; i < 32; i++)
                    {
                        for (int j = 0; j < 32; j++)
                        {
                            //fix \\ = / removed firest \\
                            ImageAssets.getImage("map-" + i.ToString() + "-" + j.ToString(), dataDirectory + "map32x32/map-" + i.ToString() + "-" + j.ToString() + ".jpeg");
                        }
                    }
                }            // Wait for downloads to complete...
                download();
            }
     
    Last edited by a moderator: Apr 18, 2016
  16. Hello,

    Map is incorect - monuments and players are kinda somewhere else showed on map, but originaly they are somewhere else.
    What should I do to fix it? changing resolution to 1440 x 1440 does not help and I got map from Rust.IO - it was in png so I transfered it to jpg.
     

    Attached Files:

    • map.jpg
      map.jpg
      File size:
      1.2 MB
      Views:
      39
  17. You did a wrong map! Follow the instrustions in overview.
     
  18. Hmmm somehow I managed to see just Rust.io there so I just though oh yeah just go to map and click on download image :D MY bad, thanks anyway, works now corectly and perfect!
     
  19. what size map is needed to complete part of the normally displayed?

    какой размер полной карты нужен чтобы части нормально отображались?
     
  20. 1440 на 1440, запусти браузер на компьютере где сервер работает и введи адрес http://localhost:xxxxx/map.jpg где ххххх это порт сервера, например http://localhost:28015/map.jpg ... эту карту сохрани в ...oxide\data\LustyMap , ну потом делай с ней что хочешь, хочешь режь хочешь в фотошопе дорисуй что нибудь..

    1440 on 1440, run a browser on the computer where the server is running and enter http://localhost:xxxxx/map.jpg where xxxxx is the port of the server, for example http://localhost:28015/map.jpg ... save this map in ...oxide\data\LustyMap , well then do with it what you want cut I want in photoshop fix anything..