TheStonedTurtle / Loot-Logger

A RuneLite plugin that stores Loot Tracker data locally
BSD 2-Clause "Simplified" License
6 stars 9 forks source link

certain bosses not opening #22

Open ThiccFish opened 3 years ago

ThiccFish commented 3 years ago

so for example my issue is the Giant Mole boss, It worked up until around 1500-1600KC, now when I click him the yellow line appears but it doesn't take me into the loot screen, all other bosses etc work other than the mole.

TheStonedTurtle commented 3 years ago

There's probably an issue with the log file. Head to %USERPROFILE%/.runelite/loots/<login>/npc/ (~/.runelite/loots/<login>/npc on linux) and send me the giant mole log. (Replace <login> with your login name/email)

There's an extremely rare issue where instead of an entry being appended onto a new line it is added to an existing one. This causes the plugin to break as the file isn't in the correct format. If you send me your file I can fix it for you, or you can fix it yourself.

For example, instead of the file being like this:

{"name": "Giant mole", "level": 230, "killCount": 2, "type": "NPC", "drops": [{"name": "Big bones", "id": 532, "quantity": 1, "price": 256}, {"name": "Blood rune", "id": 565, "quantity": 15, "price": 263}, {"name": "Mole claw", "id": 7417, "quantity": 1, "price": 0}, {"name": "Mole skin", "id": 7419, "quantity": 2, "price": 0}]}
{"name": "Giant Mole", "level": 230, "killCount": 3, "type": "NPC", "drops": [{"name": "Big bones", "id": 532, "quantity": 1, "price": 300}, {"name": "Mole claw", "id": 7417, "quantity": 1, "price": 5409}, {"name": "Mole skin", "id": 7419, "quantity": 2, "price": 4262}, {"name": "Mithril bar", "id": 2359, "quantity": 1, "price": 877}]}

It is actually like this

{"name": "Giant mole", "level": 230, "killCount": 2, "type": "NPC", "drops": [{"name": "Big bones", "id": 532, "quantity": 1, "price": 256}, {"name": "Blood rune", "id": 565, "quantity": 15, "price": 263}, {"name": "Mole claw", "id": 7417, "quantity": 1, "price": 0}, {"name": "Mole skin", "id": 7419, "quantity": 2, "price": 0}]}                                            {"name": "Giant Mole", "level": 230, "killCount": 3, "type": "NPC", "drops": [{"name": "Big bones", "id": 532, "quantity": 1, "price": 300}, {"name": "Mole claw", "id": 7417, "quantity": 1, "price": 5409}, {"name": "Mole skin", "id": 7419, "quantity": 2, "price": 4262}, {"name": "Mithril bar", "id": 2359, "quantity": 1, "price": 877}]}

I have not been able to pinpoint why this occasionally happens to random people, so I can't prevent the problem from happening again :l

ThiccFish commented 3 years ago

giant mole.log ohh i see, im having a quick look through but cannot see it for some reason, this is my log.

I just found it, it turned out the whole line was extended over to the right (starting about the length of a normal entry) so itd look like a double entry but it was just a single with a tonne of spaces at the front.

Works now, thanks mate.

TheStonedTurtle commented 3 years ago

Yeah, i found the same issue around line 768, Glad you figured it out though :)

This is a really annoying issue and I wish I could pinpoint why this happens randomly. Sorry you ran into this problem :(

ThiccFish commented 3 years ago

Thats okay dude! I love the plugin, the fact it mixes the collection log with loot tracker is awesome! I recommend it to a few people, especially when I share screenshots of it, the only thing id consider is if you hover over the collection log section it could show what KC the item was obtained (Or multiple KCs) would be neat, but im happy as is!