2.0.6 | Xkore 2 Bugs

This place is for Unresolvable bug reports only. NOT for asking help!

Moderators: Moderators, Developers

Message
Author
Drotsk
Noob
Noob
Posts: 4
Joined: 02 Nov 2008, 13:31
Noob?: No

2.0.6 | Xkore 2 Bugs

#1 Post by Drotsk »

Hi,
I'm having two problems with Xkore 2.
The first is that the Xkore_ID in config.txt isn't working the server name is always Ragnarok Online.
An the second problem is that my server allows ascii in name, so my char name has a · in the name, My name is displayed wrong in the info panel and I can't send pm's cause my name will show as ·nome·

Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: 2.0.6 | Xkore 2 Bugs

#2 Post by Technology »

There is no Xkore_ID in the source code either, i guess that config option got depreciated.
Give some more info on the 2nd problem, your description is very vague.
Are you trying to send a pm trough openkore or trough the ragnarok online client?
What do you mean by info pannel? The servers control pannel?

[EDIT]
hmm i think that someone forgot to put in Xkore_ID in XKore2.pm
altough, this option is only used for the naming of screenshots and such here is the patch:

I do not agree on the naming of the config option tough, since its not possible to do in XKore 1.

Code: Select all

Index: XKore2.pm
===================================================================
--- XKore2.pm	(revision 6583)
+++ XKore2.pm	(working copy)
@@ -48,7 +48,8 @@
 		serverType => $config{serverType},
 		rpackets => \%rpackets,
 		mapServer => $mapServer,
-		sessionStore => $sessionStore
+		sessionStore => $sessionStore,
+		name => $config{XKore_ID}
 	);
 	$accountServer = new Network::XKore2::AccountServer(
 		host => $publicIP,
Last edited by Technology on 03 Nov 2008, 18:48, edited 3 times in total.
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!

sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: 2.0.6 | Xkore 2 Bugs

#3 Post by sli »

The name bug seems like XKore is using $char->name() instead of $char->{name} as someone was having the same problem in another thread (which I trashed because they ignored my help).
cs : ee : realist

Drotsk
Noob
Noob
Posts: 4
Joined: 02 Nov 2008, 13:31
Noob?: No

Re: 2.0.6 | Xkore 2 Bugs

#4 Post by Drotsk »

Here is a screenshot of the problem.
I'm tring to send a pm trough the ragnarok online client.
The info panel that I'm talking about is in the upper right of the screen it displays my name HP SP etc.

Image

Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: 2.0.6 | Xkore 2 Bugs

#5 Post by Technology »

in src\Base\Ragnarok\CharServer.pm >> sub process_0065 >>
no encoding 'utf8';
use bytes;
...
$char->{name};

When use bytes is in effect, the encoding is temporarily ignored, and each string is treated as a series of bytes.


For that ASCII character in your name:
Unicode code point: U+00B7
character: ·
UTF-8 (hex.): c2 b7
name : MIDDLE DOT

So, first it displays C2 (as 1rst part of the UTF-8 in hex) as being U+00C2 (in Unicode) or  (LATIN CAPITAL LETTER A WITH CIRCUMFLEX)
secondly it displays B7 (as 2nd part of that UTF-8 in hex) as being U+00B7 (in Unicode) or · (MIDDLE DOT)

Basically, this name is in UTF-8, but we tell kore not to use UTF-8... hmm

on a sidenote:
Can you PM someone ingame trough the RO client normally? (without xkore2)
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!

Drotsk
Noob
Noob
Posts: 4
Joined: 02 Nov 2008, 13:31
Noob?: No

Re: 2.0.6 | Xkore 2 Bugs

#6 Post by Drotsk »

Thanks for your explanation it was realy helpfull, now I can understand what`s happening.

Yes I can pm other people in game trough the RO client without xkore2, I play in bRO and you can create a char name with ascii without client modification, I think it`s because we use caracters like ã,é,ì,ô in portuguese.

Edit:

I tested the patch and it`s working thanks!

Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: 2.0.6 | Xkore 2 Bugs

#7 Post by Technology »

xkore 2 related, this feature is unsupported atm.
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!

Post Reply