Wir haben festgestellt, dass Euer Browser keine Cookies akzeptiert. Bitte erlaubt die Verwendung von Cookies in den Optionen Eures Browsers, um eine optimale Funktion dieser Webseite zu gewährleisten.
Ergebnis 1 bis 4 von 4
  1. #1
    Registriert seit
    13.06.2011
    Ort
    Germany
    Beiträge
    28

    Problem with saving chat-Shortcuts in quickslots containing umlauts

    Mae gowannen,

    First of all, I am not a developer! My English is not the best, sorry for that. I tried to search the forum here and on lotrointerface.com

    I also tried to contact the author at lotrointerface.com

    The problem:

    I am using TonicBars for emote-shortcuts with a german lotro-client. So I must use the german emotes. I can't use the original English ones instead. Now there is a problem with shortcuts containing german umlauts as ä, ö, ü or ß. I can create those shortcuts to the original clients quickslots an move them to a new tonicbars-quickslot.

    When I now click on that tb-qickslot the emote performs. But after a restart of the lotro-client all umlauts in the emotes are scrambled and of course they don't perform anymore. Umlaut-emotes in the original client-quickslot do not have this problem. They still perform after restart.

    The author NuclearTonic wrote me, that this problem might be on Turbine and I should try some other quickbar-plugins. But I can't see how this should help. If the problem is the same on other plugins, that would be no proof that the issue is on Turbine. It could be, that all developers did the same bug, because English is their native.

    So the questions are:

    Is there any plugin which has not this problem, so Tonic could look in that?

    or

    Is there ane function in LUA to check if a quickslot contains a chat-shortcut and then translate it to utf8, unicode or any of that kind before saving the configuration to file... and re-translate that after loading the configuration?

    or

    Is it on Turbine to fix that issue in the API?

    Thanks for your patience and, hopefully, for your help

    Hagridli of Morthond
    Toons:
    [color=cyan]
    Gwaihir:[/color] Hagridarius, Hagrideorn, Hagrideus, Xarah
    [color=yellow]Landroval:[/color] Curvith

  2. #2
    Registriert seit
    25.03.2007
    Beiträge
    1.181

    Re: Problem with saving chat-Shortcuts in quickslots containing umlauts

    I don't use Tonic bars, but there are two places where Turbine issues need workarounds. The first is in saving and loading UTF-8 characters with the default PluginData:Save() and PluginData:Load() methods - there is a patch originally presented by Vindar which can help resolve this. The patch can be found on LoTROInterface.com.

    The second issue has to do with creating the quickslots. There is a bug in the constructor that fails to properly process international characters, but if you creat the shortcut as a blank object then use the :SetData() method to set the string it will properly handle the international characters (I first found this used in Compendium by Lunarwater).

    Your issue may or may not be related to one of these issues but if you pass this on to the author it may help.

  3. #3
    Registriert seit
    02.06.2011
    Beiträge
    3

    Re: Problem with saving chat-Shortcuts in quickslots containing umlauts

    Well, you could do something like this after loading the settings file to set the shortcut:

    Code:
    function FixUmlauts(text)
    	text = string.gsub(text, 'ü', string.char(252))
    	text = string.gsub(text, 'ö', string.char(246))
    	text = string.gsub(text, 'ä', string.char(228))
    	text = string.gsub(text, 'ß', string.char(223))
    	return text
    end
    
    snr = Turbine.UI.Lotro.ShortcutType.Alias
    qSlot:SetShortcut(Turbine.UI.Lotro.Shortcut(snr,FixUmlauts(text)))
    This is not very elegant, but works. I was not aware that SetData() might work properly though, this would be the better solution then.

    oldjudge
    [charsig=http://lotrosigs.level3.turbine.com/2621a00000004f2f4/01003/signature.png]undefined[/charsig]

  4. #4
    Registriert seit
    01.06.2011
    Ort
    Germany
    Beiträge
    19

    Re: Problem with saving chat-Shortcuts in quickslots containing umlauts

    Had the same problem with Baruk but got it working using aliases. Create an alias of the "bad" emotes like

    /alias ;ruelpsen /rülpsen

    then use this to quickslot it

    /alias kurztext ;ruelpsen <quickslot>

 

 

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

Diese Formular-Sitzung ist abgelaufen. Du musst die Seite neu laden.

Neu laden