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. Time Lord

    Time Lord Avatar

    Messages:
    8,336
    Likes Received:
    28,405
    Trophy Points:
    165
    Gender:
    Male
    Location:
    ~SOTA Monk~ ~Monastery~ ~Thailand~
    "Go Team SOTAMapper!"
    [​IMG]
    [​IMG]
    ~Time Lord~:D
     
  2. FrostII

    FrostII Bug Hunter

    Messages:
    5,884
    Likes Received:
    11,033
    Trophy Points:
    153
    Gender:
    Male
    Location:
    Pacific Northwest
    Oh....
    Did I mention we could really, really use zoom capability....
    Pretty, pretty please ! ;)
     
    moko, Womby, coder1024 and 1 other person like this.
  3. Link_of_Hyrule

    Link_of_Hyrule Avatar

    Messages:
    1,394
    Likes Received:
    2,142
    Trophy Points:
    125
    Gender:
    Male
    Location:
    Ogden, Utah
    Last edited: Sep 22, 2016
  4. FrostII

    FrostII Bug Hunter

    Messages:
    5,884
    Likes Received:
    11,033
    Trophy Points:
    153
    Gender:
    Male
    Location:
    Pacific Northwest
    @coder1024

    There's still an issue with SotaMapper not always recognizing the scene that I am currently in.

    I had spent almost an hour "mapping" my perimeter of Ulfheim, then exited to Novia....
    Once there, I issued the /loc command no less than 3 times as well as opening/closing SotaMapper.

    No matter what I did, it would not recognize the Novia map (the one you supplied in my map folder)....

    See pic pls...

    [​IMG]

    *** EDIT *** Just went in to my POT nearby, and it still shows the Ulfheim map - and I have my POT map in the map folder as well.........
     
    coder1024 and Time Lord like this.
  5. mdsota152

    mdsota152 Avatar

    Messages:
    763
    Likes Received:
    2,047
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Virginia
    I think this is actually due to the fact that SotA stops logging itself. I've noticed this behavior and when I went to the log file nothing new was in it. When I deleted it, a new one was not generated. SotAmapper can then only read the last map listed in the games log file. So I don't think it's an error with mapper but SotA itself.
     
    Time Lord, Womby and coder1024 like this.
  6. coder1024

    coder1024 Avatar

    Messages:
    499
    Likes Received:
    531
    Trophy Points:
    75
    Gender:
    Male
    This is because SotAMapper is preserving the aspect ratio of the map data within a resizeable window. It could stretch the data to exactly fit the window, but this wouldn't be good for map data because the distances would no longer make sense (east/west vs north/south). You can see clearer how this works by resizing the window. Drag the size around, making it very short and wide, or very narrow and tall and you'll see how it sizes the data in such a way as to preserve aspect ratio. Zoom would help with this effect since you could then scroll in or something and not have that gap, but I think preserving correct aspect ratio is important.
    You can make the player icon be whatever you want! :) In the data/icons folder there's a Player.png file. You can replace this with any .png image and it'll use that instead. The smiley face was sort of a placeholder, initial icon, but I'd love to see what others come up with.
    Go Team! :)
    I liked and replied to that post. I think moving it to APPDATA is a good idea and including player name would be fine also. But I think it needs to include area name not just map name like the /loc command. i.e. it should have the same output as /loc command (and maybe also player name). That way, for multiple POTs using the same map, we'll know which one they're on. SotAMapper could then allow map .csv filenames to have "Area Map.csv" and would then properly support multiple POTs from the same template.
    @lollie reported something similar saying SotAMapper would get stuck on a map. I'm thinking maybe its the same thing being described here and maybe SotA just stopped writing to its log files after awhile?
     
    Womby, Time Lord and cartodude like this.
  7. mdsota152

    mdsota152 Avatar

    Messages:
    763
    Likes Received:
    2,047
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Virginia
    Yea, that's what I think. The mapper seems to stop but in reality it's the log file not getting updated. Each time I've seen it, I've checked the log file and sure enough, no new data is being added.
     
    Womby, Time Lord and coder1024 like this.
  8. coder1024

    coder1024 Avatar

    Messages:
    499
    Likes Received:
    531
    Trophy Points:
    75
    Gender:
    Male
    If you exit and restart the SotA client does it resume writing to the file? My guess would be yes, but am curious if anyone has verified that. Also, when this happens, does the player position on the map continue to update? i.e. is the CurrentPlayerData.txt file still being updated even though the logs are not? If so, then the suggestion from Link_of_Hyrule would help since SotAMapper could pull its data solely from that file. Granted, that would still be a bug which would need to be addressed given log parsing tools like Umuri's HUD.
     
    Womby and Time Lord like this.
  9. mdsota152

    mdsota152 Avatar

    Messages:
    763
    Likes Received:
    2,047
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Virginia
    Yes... that's how I've fixed it. It looks like the player log is updated but the main one is not. That's what threw me off at first when I looked into it. Didn't think the main one would stop but it did.

    Oh, and I can't repeat it... don't know what causes it... it seems random.
     
    Womby, Time Lord and coder1024 like this.
  10. FrostII

    FrostII Bug Hunter

    Messages:
    5,884
    Likes Received:
    11,033
    Trophy Points:
    153
    Gender:
    Male
    Location:
    Pacific Northwest
    Player log ???
    Are you referring to the chat log or a different file ??
     
    coder1024 and Time Lord like this.
  11. mdsota152

    mdsota152 Avatar

    Messages:
    763
    Likes Received:
    2,047
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Virginia
    The chat log. I've noticed on rare occasion it stops recording information. I'll type in /loc and nothing new appears in the log file. If I delete the file and type /loc or change scene... no new log file appears.

    If no new entries appear then SotAMapper can only use the last one it finds in the log file.
     
    coder1024 and Time Lord like this.
  12. mdsota152

    mdsota152 Avatar

    Messages:
    763
    Likes Received:
    2,047
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Virginia
    ... perfect timing... it's doing it to me right now. The log file has hung up... I can't get it take new entries.... let me see if it's just the /loc command or everything.
     
    coder1024 and Time Lord like this.
  13. mdsota152

    mdsota152 Avatar

    Messages:
    763
    Likes Received:
    2,047
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Virginia
    Yup... nothing writes to it... just tried scrapping some stuff and normally the results appear in the Chat Log file... but nothing is showing up. So it is the Chat Log hanging up for some reason.
     
    coder1024 and Time Lord like this.
  14. Browncoat Jayson

    Browncoat Jayson Legend of the Hearth

    Messages:
    6,334
    Likes Received:
    14,098
    Trophy Points:
    153
    Hate to ask, but has this been noticed while someone is NOT using a 3rd-party app (SotAMapper, Umari's HUD, etc)?

    Just asking as it could be caused by the open method. For example, opening the chat log in Notepad doesn't prevent it from being written to, but opening it in Word does. We might have an exclusive open in one of the applications, that gets this to lock the file.
     
    coder1024, cartodude and Time Lord like this.
  15. mdsota152

    mdsota152 Avatar

    Messages:
    763
    Likes Received:
    2,047
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Virginia
    Good point. I've not payed attention to the log until now. So I don't know.

    edit: Except I have noticed it will write to the log if I have it open in other software (notepade or notepadd++, but perhaps they don't lock the file while open.) But I've closed SM and SotA still won't write... so once it's messed up it's done until you restart.
     
    coder1024 and Time Lord like this.
  16. mdsota152

    mdsota152 Avatar

    Messages:
    763
    Likes Received:
    2,047
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Virginia
    Ok, just tested for that... you're right... Word locks the file and prevents anymore writing to it even after Word is closed. Had to restart the game to get it to write to the file again or create a new one. So it could very well be the lock on the file that causes the glitch.
     
    Time Lord and coder1024 like this.
  17. Natasha Ultara

    Natasha Ultara Avatar

    Messages:
    20
    Likes Received:
    54
    Trophy Points:
    3
    Has Portalarium commented on how they feel about your endeavor? is it against the EULA?
     
    Time Lord, FrostII and coder1024 like this.
  18. coder1024

    coder1024 Avatar

    Messages:
    499
    Likes Received:
    531
    Trophy Points:
    75
    Gender:
    Male
    Could you try reproducing the issue WITHOUT SotAMapper running or any other third party tool? I'm curious to see if it will still stop writing to the log eventually even with nothing else running. Note that SotAMapper does not hold an exclusive lock on the log files nor does it open them directly. It actually asks Windows to copy it to a temp file and it then opens the temp file and deletes it when done. I did this in an attempt to minimize any potential conflict.
    yes, they have commented. I contacted support awhile ago and they said they looked at it and it looks fine! so no issues there :)
     
    Time Lord, cartodude and FrostII like this.
  19. Browncoat Jayson

    Browncoat Jayson Legend of the Hearth

    Messages:
    6,334
    Likes Received:
    14,098
    Trophy Points:
    153
    Thats what I am afraid of. And I'm not trying to say its specifically SM that is doing this, just that it is a possibility that ONE of the programs is locking it.
     
    Time Lord, cartodude and coder1024 like this.
  20. coder1024

    coder1024 Avatar

    Messages:
    499
    Likes Received:
    531
    Trophy Points:
    75
    Gender:
    Male
    SotAMapper does not lock the file. It asks Windows to copy it to a temp file and it then works with the temp file. This was done this way to avoid such a conflict. Word is a special case as it does lock a file while you're editing it.
     
    Time Lord and cartodude like this.
Thread Status:
Not open for further replies.