SotAMapper - shows items of interest and tracks player location on map

Discussion in 'Player Created Resources' started by coder1024, Sep 3, 2016.

Thread Status:
Not open for further replies.
  1. mdsota152

    mdsota152 Avatar

    Messages:
    763
    Likes Received:
    2,047
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Virginia
    Hate to break the news to you... but I found another rotation... Novia_R7_Swamp01_Road (South Longfall Road) does not work with either of the rotations you have.

    If I use MapCoordSys,XZ_NorthWest (or nothing) I enter from the east side on the map but from the west in game and N/S are flipped.

    If I use the other, MapCoordSys,ZX_NorthEast then I enter from the S on the Map but from the west in the game.

    So if you take the MapCoordSys,ZX_NorthEast and rotate clockwise, it will be right.
     
    FrostII, Bom, Time Lord and 1 other person like this.
  2. Womby

    Womby Avatar

    Messages:
    3,301
    Likes Received:
    12,206
    Trophy Points:
    153
    Location:
    South Australia
    Thank you @coder1024 ! SotAMapper is really useful for finding resources in uniquely named scenes. However, there is a particular use case that perhaps you have not considered. Several members of the SotA community would like to run quests, and these are usually held in POTs. (That is because POT decorations can be used, the whole scene is available to be modified, it doesn't impact on people who want to avoid player quests, etc.) Unfortunately, every POT with the same biome has the same name. For example my island POT is called POT_island_metropolis_01_template. So is every other POT that uses the same biome, so it would be impossible for me to create and distribute a quest-specific map file. Would it be possible to recognise data files that use the full name as reported by /loc? Eg: Isle of Ghosts (POT_island_metropolis_01_template). This could be implemented so that it is backwards compatible with the current naming convention.

    Also, I'd like to suggest adding a colour option for displayed text. For example, for the current line:
    Well, 242.239, 89.40163, -198.2776
    you could support an optional extra field:
    Well, 242.239, 89.40163, -198.2776,0x0000FF
    to display the tag in blue. This would allow us to add colour coding to the maps.

    Finally, I'd like to add my support for the addition of a zoom function to your awesome program. This is what my island POT looks like on my monitor, displaying full screen (2560 x 1440):

    [​IMG]
     
    cartodude, coder1024, FrostII and 2 others like this.
  3. Womby

    Womby Avatar

    Messages:
    3,301
    Likes Received:
    12,206
    Trophy Points:
    153
    Location:
    South Australia
    While I'm on a roll ( :) ), you could add optional layers. For example, the program could scan the data file for tags that have colour specifications, and then when a button is clicked pop up a checkbox menu with an entry for each different colour. Tick the checkbox to add items of the corresponding colour to the map display. If you wanted to be really fancy you could let users assign names to colours. Something like:

    Houses: 0x0000FF
    Shops: 0x00FF00
    POI: 0xFFFF00


    and then, entries in the data file could be something like:

    Well, 242.239, 89.40163, -198.2776,POI

    Then, on request the program could pop up a layer selection checkbox menu with the following entries:

    [ ] Houses
    [ ] Shops
    [ ] POI
     
    Archer, cartodude, coder1024 and 4 others like this.
  4. coder1024

    coder1024 Avatar

    Messages:
    501
    Likes Received:
    537
    Trophy Points:
    75
    Gender:
    Male
    Just sent you a PM with a test version that has that added.
     
    FrostII, cartodude and Time Lord like this.
  5. mdsota152

    mdsota152 Avatar

    Messages:
    763
    Likes Received:
    2,047
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Virginia
    ... just so everyone else knows... tested and it works. Thanks.
     
    FrostII, Time Lord, Bom and 1 other person like this.
  6. coder1024

    coder1024 Avatar

    Messages:
    501
    Likes Received:
    537
    Trophy Points:
    75
    Gender:
    Male
    Thanks for testing. I'll add that into a new version and while I"m at it will add a fourth coord sys as well so we're covered for all possibilities.
     
    FrostII, Time Lord, Bom and 1 other person like this.
  7. coder1024

    coder1024 Avatar

    Messages:
    501
    Likes Received:
    537
    Trophy Points:
    75
    Gender:
    Male
    I've added the map coord sys to work with the case reported by cartodude and also added the remaining possibility. So now there are the below 4 to choose from. This will be in the next release.

    Code:
            //
            //       X
            //       |
            //       |
            //  Z----*
            //
            XZ_NorthWest,
    
            //
            //  Z
            //  |
            //  |
            //  *----X
            //
            ZX_NorthEast,
    
            //
            //  *----Z
            //  |
            //  |
            //  X
            //
            ZX_EastSouth,
    
            //
            //  X----*
            //       |
            //       |
            //       Z
            //
            ZX_SouthWest
    
    You can walk briefly on a map, first north, then east while watching /loctrack to figure out which one that map uses. Then you add a line like the below.

    Code:
    MapCoordSys,ZX_NorthEast
    
     
  8. coder1024

    coder1024 Avatar

    Messages:
    501
    Likes Received:
    537
    Trophy Points:
    75
    Gender:
    Male
    Thanks for the suggestions! Will add them to the feature request list and keep them in mind for a future version.
     
    FrostII and Time Lord like this.
  9. FrostII

    FrostII Bug Hunter

    Messages:
    5,337
    Likes Received:
    10,353
    Trophy Points:
    153
    Gender:
    Male
    Location:
    Pacific Northwest
    XZ_NorthWest, ZX_NorthEast, ZX_EastSouth, ZX_SouthWest
    I tried them all, one by one, in the .csv for my POT - but none change anything - so I assume (like you did say) that the changes will happen in the next release....

    Can't wait !
    This is gonna be so cool.........
     
  10. coder1024

    coder1024 Avatar

    Messages:
    501
    Likes Received:
    537
    Trophy Points:
    75
    Gender:
    Male
    v1.6 is available now! With this version, all 4 possible coordinate systems are supported for map data. See readme and/or OP for the values you can use and how to put them in your map files.
    Code:
    2016.09.20, v1.6
    - added two additional coordinate systems, both rotated an additional 90 degs
    from the previous, now all 4 possible cases are covered
    
     
    Time Lord, cartodude and FrostII like this.
  11. lollie

    lollie Avatar

    Messages:
    493
    Likes Received:
    1,552
    Trophy Points:
    55
    Gender:
    Female
    Location:
    Brittany
    Did you get anything on that bug report log I sent you days ago?
     
    Time Lord and coder1024 like this.
  12. coder1024

    coder1024 Avatar

    Messages:
    501
    Likes Received:
    537
    Trophy Points:
    75
    Gender:
    Male
    No, not yet. I wanted to push out the coord sys stuff first since that was an easy fix and opens up multiple maps which wouldn't have rendered correctly before. I'm not sure what caused the problem you saw, will look through the logs again when I have a chance.
     
    Time Lord and FrostII like this.
  13. FrostII

    FrostII Bug Hunter

    Messages:
    5,337
    Likes Received:
    10,353
    Trophy Points:
    153
    Gender:
    Male
    Location:
    Pacific Northwest
    Hey @coder1024
    I must be doing something wrong.
    Here's the way my .csv looks:

    [​IMG]

    I tried all 4 of the different coord entrys, and all look the same on the actual map that SotaMapper brings up.
    I am using the new 1.6 of course.
     
    Time Lord and coder1024 like this.
  14. coder1024

    coder1024 Avatar

    Messages:
    501
    Likes Received:
    537
    Trophy Points:
    75
    Gender:
    Male
    Well, I tested with Novia and then cartodude tested with the third one, and then I just added the fourth but haven't actually seen it in action myself.

    Can you Email me the map file which you're testing with? You can Email it to coder1024@gmail.com
     
    FrostII and Time Lord like this.
  15. coder1024

    coder1024 Avatar

    Messages:
    501
    Likes Received:
    537
    Trophy Points:
    75
    Gender:
    Male
    I found the problem. When saving that file from Excel, its normalizing the rows to all have the same # columns. So, when I open your map file in notepad, I get the below:
    Code:
    #Falling Waters Fortress,,,
    #Contributers: Robert Frost,,,
    MapCoordSys,ZX_SouthWest,,
    Name,X,Y,Z
    My Cabana,346.2672,36.95044,296.0369
    Row Boats,230.5266,35.9968,288.6559
    Town Crier,148.602,36.0768,264.7927
    Gate,130.9327,37.9967,224.4319
    
    Notice that the MapCoordSys line has 4 comma separated fields not 2. My code is checking for 2 fields and the first one being MapCoordSys. So it looks like my code is just a bit too strict. I'll modify that so it relaxes it a little and requires AT LEAST 2 fields :) In the meantime, I'll send you back a cleaned map file which should at least work for you immediately. You can also just open the file in notepad and get rid of those extra 2 commas on the end.
     
    Time Lord, cartodude and FrostII like this.
  16. coder1024

    coder1024 Avatar

    Messages:
    501
    Likes Received:
    537
    Trophy Points:
    75
    Gender:
    Male
    I sent you a test version via the messaging system here. Please give that a try and let me know how it goes. Hopefully that'll fix it for you.
     
    Time Lord likes this.
  17. coder1024

    coder1024 Avatar

    Messages:
    501
    Likes Received:
    537
    Trophy Points:
    75
    Gender:
    Male
    New version is up, v1.7! This is a fix to the issue reported by Frostll where, when you save with Excel, and include a coord sys line, Excel adds extra empty fields on the end. This is fine, but my parsing was a bit too strict. I relaxed it a bit so the extra empty fields aren't a problem. Bottom line you can edit the .csv file with Excel and put in a coord sys line and it'll work :)

    Code:
    2016.09.21, v1.7
    - relaxed map .csv parsing to account for Excel saving with extra empty fields
    
     
  18. FrostII

    FrostII Bug Hunter

    Messages:
    5,337
    Likes Received:
    10,353
    Trophy Points:
    153
    Gender:
    Male
    Location:
    Pacific Northwest
    coder1024, cartodude and Time Lord like this.
  19. FrostII

    FrostII Bug Hunter

    Messages:
    5,337
    Likes Received:
    10,353
    Trophy Points:
    153
    Gender:
    Male
    Location:
    Pacific Northwest
    I've already made a map of my guild's POT - and it's great ! ;)

    Now... we've got to get to work on the zooming and the skins stuff, right ? :p
     
    coder1024 and Time Lord like this.
  20. FrostII

    FrostII Bug Hunter

    Messages:
    5,337
    Likes Received:
    10,353
    Trophy Points:
    153
    Gender:
    Male
    Location:
    Pacific Northwest
    Oh, before I forget.... a couple of issues.

    Have a look at the pic pls...

    [​IMG]

    1) As you can see, the eastern portion of the map extends way beyond it's natural border - making the map larger than necessary.
    2) Please either change the color of my smiley, or better yet - give us a few color options for every manual entry !!!!
    I've pointed to 4 colors that come to mind as being very trackable on a black background.......
     
    coder1024 and Time Lord like this.
Thread Status:
Not open for further replies.