An error of openkore macros

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

Message
Author
bluesky
Noob
Noob
Posts: 13
Joined: 15 Feb 2016, 02:09
Noob?: No

An error of openkore macros

#1 Post by bluesky »

hi,I used the newest openkore and macro plugins

Code: Select all

*** OpenKore what-will-become-2.1 ( version ctime:2017_05_30 ) - Custom Ragnarok Online client ***

My control\macros.txt was UTF-8
but when I trade with other player always crashed

Code: Select all

Malformed UTF-8 character (fatal) at plugins/macro/Macro/Automacro.pm line 605.
this is my error message:

Code: Select all

OpenKore version what-will-become-2.1
@ai_seq = deal
Network state = 5
Network handler = Network::DirectConnection
Revision: ctime:2017_05_30
Loaded plugins:
  plugins/breakTime/breakTime.pl (breakTime; description: Automatically disconnect and reconnect at certain times of the day)
  plugins/macro/macro.pl (macro; description: allows usage of macros)
  plugins/profiles/profiles.pl (profiles; description: Profiles Selector)

Error message:
Malformed UTF-8 character (fatal) at plugins/macro/Macro/Automacro.pm line 605.

Stack trace:
Malformed UTF-8 character (fatal) at plugins/macro/Macro/Automacro.pm line 605.
 at src/Interface/Wx.pm line 163
	Interface::Wx::mainLoop('Interface::Wx=HASH(0x43207cc)') called at openkore.pl line 97
	main::__start() called at start.pl line 136

In this line when out:
  	my ($msg, $arg) = @_;
* 	$$arg[4] =~ s/[\r\n]*$//;
  	if (match($$arg[4],$msg)){


I did some test

If my macros.txt
only have
Image

or

Image
These both OK , do not crashed



But If I used console , it was be crashed
Image



And before I used openkore by version r8871 and it's old macros plugin
Didn't have this problem @@

Has anyone know how to fix it?
Thank you!

Mortimal
Developers
Developers
Posts: 389
Joined: 01 Nov 2008, 15:31
Noob?: No

Re: An error of openkore macros

#2 Post by Mortimal »

maybe your console is not utf8... you run your open core on win or lin?
Please use pin function for uploading your file contents!

bluesky
Noob
Noob
Posts: 13
Joined: 15 Feb 2016, 02:09
Noob?: No

Re: An error of openkore macros

#3 Post by bluesky »

Mortimal wrote:maybe your console is not utf8... you run your open core on win or lin?

I used WIN7 64bit

I tried to change both file to utf-8
src\Interface\Console.pm
src\Interface\Wx\console.pm

got the same error


and I tried change
plugins/macro/Macro/Automacro.pm
to utf-8

the same error :cry: :cry:

Post Reply