Jump to content
  • Sign Up

Reincarnated.1754

Members
  • Posts

    58
  • Joined

  • Last visited

Posts posted by Reincarnated.1754

  1. I made a little application to help me when fishing. Tim's GW2 Fishing Companion

    Just un-zip into a folder then run the setup.

     

    Video:

    https://youtu.be/-D_Jw0GOHwc

    It has evolved since the video.

    Screenshots:

    TimsGW2FishingCompanionFish.png (614×320) (timsnet.co.uk)

    TimsGW2FishingCompanionBait.png (614×320) (timsnet.co.uk)

     

    It has two tabs: Fish and Bait.

    On the Fish Tab, you can chose a fish and it give details abut it.

    On the Bait Tab, you select the Bait you are looking for, then select for a choice of suppliers. It gives info on where the Supplier is, there is also a button to copy a link. Pressing the Copy Link button, copies the code to your Clipboard, you the paste the code into Chat in GW2, press enter and you will be able to click the link in Chat, which will show the location on the main Map.

     

     

    • Like 4
  2. I don't know who dose the Tiles on Wiki but I have a quick fix if they are interested.

    There is two things to change just a few lines.

    This may be temporary (HA HA) so note your code to return back to normal when fixed by ArenaNet. (As If)

     

    Could do with a code format button, so I have numbered code lines `code`

     

    First is the  unproject function.

     

    1. `code`        function unproject(coord) {
    2. `code`            if (Continent === 2) {
    3. `code`                return map.unproject(coord, map.getMaxZoom());
    4. `code`            } else {
    5. `code`                var newValueX = coord[0] - 32768; //128 tiles
    6. `code`                var newValueY = coord[1] - 16384; //64 tiles
    7. `code`                return map.unproject([newValueX, newValueY], map.getMaxZoom());
    8. `code`            }
    9. `code`        }

     

    If you made some none API icons, that is, use pre-fixed coordinates, then you need to use the original unproject function. I made a separate unprojectX(coord).

     

    Second is the origin of the maps.

    This only matters if you intend to make some new Tiles.

    I keep dreaming that ArenaNet find someone who knows how how to make the Tiles. #wher's that pipe#

    1. `code`        MapContinents = $.getJSON("https://api.guildwars2.com/v1/continents.json"

    Only gives overall size of map.

    I doubt that ArenaNet are going to move all the Tiles to a new Zero Origin. (This may have gone over some heads)

    Currently it assumed the Zero Origin = 0,0.

    They have increased the overall map size but also increased it Northwards and to the West. (Zero Origin moved East and South)

    I reckon:

    South 2304, 9 Tiles.

    East 19456, 76 Tiles.

    So.

    1. `code`            var MapOffsetSouthWestN = -19456; // 76 Tiles.
    2. `code`            var MapOffsetNorthEastN = -2304; // 9 Tiles.
    3.  
    4. `code`            // Get Map Continents-----------------------
    5. `code`            var MapContinents = $.getJSON("https://api.guildwars2.com/v1/continents.json", {
    6. `code`            })
    7. `code`                .fail(function () {
    8. `code`                    TyriaMapSizeNE = 81920;
    9. `code`                    TyriaMapSizeSW = 114688;
    10. `code`                    MistsMapSizeNE = 16384;
    11. `code`                    MistsMapSizeSW = 16384;
    12. `code`                    //=======
    13. `code`                })
    14. `code`                .done(function (jsonData) {
    15. `code`                    Continents = jsonData.continents;
    16. `code`                    TyriaMapSize = Continents[1].continent_dims;
    17. `code`                    TyriaMapSizeNE = TyriaMapSize[0];
    18. `code`                    TyriaMapSizeSW = TyriaMapSize[1];
    19.  `code`                   MistsMapSize = Continents[2].continent_dims;
    20. `code`                    MistsMapSizeNE = MistsMapSize[0];
    21. `code`                    MistsMapSizeSW = MistsMapSize[1];
    22. `code`                    //=======
    23. `code`                })
    24. `code`                .always(function () {
    25. `code`                    if (Continent === 2) {
    26. `code`                        MapMinZoom = 3;
    27. `code`                        MapMaxZoom = 6;
    28. `code`                        southWest = map.unproject([0, MistsMapSizeSW], MapMaxZoom);
    29. `code`                        northEast = map.unproject([MistsMapSizeNE, 0], MapMaxZoom);
    30. `code`                    }
    31. `code`                    else {
    32. `code`                        MapMinZoom = 3;
    33. `code`                        MapMaxZoom = 7;
    34. `code`                        southWest = map.unproject([MapOffsetSouthWestN, TyriaMapSizeSW + MapOffsetSouthWestN], MapMaxZoom);//lat: -744, lng: -152
    35. `code`                        northEast = map.unproject([TyriaMapSizeNE + MapOffsetNorthEastN, MapOffsetNorthEastN], MapMaxZoom);//lat: 18, lng: 622 
    36. `code`                    }
    37. `code`                    map.setZoom(MapMaxZoom);
    38. `code`                    map.options.maxZoom = MapMaxZoom;
    39. `code`                    map.options.minZoom = MapMinZoom;
    40. `code`                    map.setMaxBounds([southWest, northEast]);
    41. `code`                    //=======
    42. `code`                });
    43. `code`        }

     

     

     

     

     

     

    • Like 1
  3. Thank you, I didn't think to look there.🤔

    Looks like the origin has moved west also, do you think they will move the the map tiles or is it possible to use negative numbers to move tiles.

    I think I need to wait on this one.

     

    EDIT

    Done some looking.

    I think the API values are a zoom out.

  4. I got fed up waiting, not being able to use my app. on the new maps.So I have made my own tiles for the missing maps.

    It would be nice if someone from Arena Net cold take a copy (contact me) and put them on there server so, every one else could benefit from them.

    Done floor 1, Zoom levels 3 to 7 for:Thunderhead Peaks, Dragonfall, Sandswept Isles, Fahranur, the First City, Domain of Istan, Jahai Bluffs, Domain of Kourna, The Key of Ahdashim, Bjora Marches, Grothmar Valley.

    Done Zoom Level7 for:Darkrime Delves, Forging Steel.

    They work fine for me.I took a screen shot of the areas I have donehttps://img.techpowerup.org/200425/capture636.jpghttps://img.techpowerup.org/200425/capture637.jpg

×
×
  • Create New...