Thank you for your trying to fix it.
but it still doesn't work in other language enviroment, it doesn't apear in the plugins list.
because, the line
return petname.Replace("?", "\\195\\164").Replace("?", "\\195\\132")
changes to
return petname.Replace("?, "\\195\\164").Replace("?, "\\195\\132")
in other language environment,
so, the compiler can't compile it at all.
but i find a easy way to fix the charactor problem.
open the cs file with notepad in English environment, file--- save as.. --- changes Encoding to Unicode ---- save .
now,it appear in the plugins list and begin to work in other language environment.
BUT
the plugins doesn't work well with me even in English environment.
it approch a wild pet, try 6 six times and blacklist it.
the log likes this:
[07:03:44.351 D] Activity: Moving to next hotspot
[07:03:45.278 N] [BB] Pet HP's : 100:100:100
[07:03:45.278 N] [BB] Heavily injured pets : 0
[07:03:45.499 N] [BB] Battle Preparation
[07:03:45.609 N] [BB] Blacklist counter :1
[07:03:45.803 N] 2171481
[07:03:46.183 D] System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Pokehbuddyplug.Pokehbuddy.DumbChoiceTakeMoreDMG(Int32 enemytype) in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 1031
at Pokehbuddyplug.Pokehbuddy.BattleRating(Int32 petLevel, Int32 petHP, String petID, Int32 enemytype, Int32 enemylevel) in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 902
at Pokehbuddyplug.Pokehbuddy.PetSwappingPreCombat() in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 484
at Pokehbuddyplug.Pokehbuddy.Pulse() in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 229
at Styx.Plugins.PluginWrapper.Pulse()
[07:03:46.183 D] Plugin Pok?buddy threw an exception in 'Pulse'! Exception:
[07:03:46.183 D] System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Pokehbuddyplug.Pokehbuddy.DumbChoiceTakeMoreDMG(Int32 enemytype) in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 1031
at Pokehbuddyplug.Pokehbuddy.BattleRating(Int32 petLevel, Int32 petHP, String petID, Int32 enemytype, Int32 enemylevel) in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 902
at Pokehbuddyplug.Pokehbuddy.PetSwappingPreCombat() in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 484
at Pokehbuddyplug.Pokehbuddy.Pulse() in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 229
at Styx.Plugins.PluginWrapper.Pulse()
[07:03:46.525 D] [LuaEvents] Getting argument values for event COMBAT_LOG_EVENT_UNFILTERED
[07:03:46.929 N] [BB] Pet HP's : 100:100:100
[07:03:46.929 N] [BB] Heavily injured pets : 0
[07:03:47.396 N] [BB] Move to highspot
[07:03:48.474 N] [BB] Battle Preparation
[07:03:48.583 N] [BB] Blacklist counter :2
[07:03:48.772 N] 2171481
[07:03:49.157 D] System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Pokehbuddyplug.Pokehbuddy.DumbChoiceTakeMoreDMG(Int32 enemytype) in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 1031
at Pokehbuddyplug.Pokehbuddy.BattleRating(Int32 petLevel, Int32 petHP, String petID, Int32 enemytype, Int32 enemylevel) in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 902
at Pokehbuddyplug.Pokehbuddy.PetSwappingPreCombat() in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 484
at Pokehbuddyplug.Pokehbuddy.Pulse() in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 229
at Styx.Plugins.PluginWrapper.Pulse()
[07:03:49.157 D] Plugin Pok?buddy threw an exception in 'Pulse'! Exception:
[07:03:49.157 D] System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Pokehbuddyplug.Pokehbuddy.DumbChoiceTakeMoreDMG(Int32 enemytype) in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 1031
at Pokehbuddyplug.Pokehbuddy.BattleRating(Int32 petLevel, Int32 petHP, String petID, Int32 enemytype, Int32 enemylevel) in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 902
at Pokehbuddyplug.Pokehbuddy.PetSwappingPreCombat() in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 484
at Pokehbuddyplug.Pokehbuddy.Pulse() in c:\Users\LongHaitao\Desktop\515new\Plugins\Pokehbuddy\Pokehbuddy.cs:line 229