Greengroove / GG-LootFilter

Loot filter for Path of Exile
https://www.pathofexile.com/forum/view-thread/1566921
37 stars 19 forks source link

Error: Line xxxx: Unable to parse parameter for BaseType rule: No base types found matching "Maelstr�m Staff" #2

Closed TwerkFish closed 7 years ago

TwerkFish commented 7 years ago

When loading the Leveling Caster filter I am experiencing the following error: Line 1219: Unable to parse parameter for BaseType rule: No base types found matching "Maelstr�m Staff"

Greengroove commented 7 years ago

Uh that's odd. Can you send me the file you are using?

How about other versions? Do any of the other files work for you? This error is due to encoding. I used to have this problem after editing the filer with Filtration. I had no Issues with that since I changed the encoding. Did you copy the files downloaded from Github or did you paste the code in a txt file?

TwerkFish commented 7 years ago

I have loaded the 242butf8.filter as you suggested and it worked. Thanks very much. For the filter that does not work i copied the raw text from the caster leveling filter page on Github to a text file and changed the extension to .filter: https://raw.githubusercontent.com/Greengroove/GG-LootFilter/master/GG%20242b%20Filter/GG%20242b%20leveling%20CASTER.filter

I did the exact same thing with a previous version earlier this week and it worked perfectly fine. I have attached the file in .txt format since i cannot seem to get it to attach a zipped .filter file.

Thanks very much for the help and keep up the great work!

Greengrooves Caster Leveling.txt

Greengroove commented 7 years ago

Great!

What happened is that when you saved the pasted code in the txt file you actually saved it with a different encoding. You should save the file with the UTF-8 encoding. I use UTF-8 format for compatibility with Filtration.

In notepad you can set the encoding in the save as window right next to the save button.

It's a shame that you can't pull individual files on Github. But It's easier to just grab the zip file instead of doing the "manual" labor. You can grab the individual file from the zip and then just delete the zip. :)

TwerkFish commented 7 years ago

Alright, that sounds like it could be it. Although i must say that i initially just replaced the text of the working old filter with the raw text of the new one. So I can't really imagine how the encoding could have changed in the progress.

Oh well, you hooked me up with a working filter so my problems are solved. Thanks again!

Greengroove commented 7 years ago

I was able to reproduce the error. I saved the raw in notepad and saved it with ANSI encoding. Note that ANSI is the default encoding that notepad uses. Initially I was using ANSI encoding and it worked. But when I would edit the filter With Filtration I would get the same error. So I had to switch to UTF-8.

There's a few things about text files that are not that obvious. So when possible I prefer to take the files from the zip file.

TwerkFish commented 7 years ago

I will do that from now on, thanks!