1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Greetings Guest!!

    In order to combat SPAM on the forums, all users are required to have a minimum of 2 posts before they can submit links in any post or thread.

    Dismiss Notice

Unable to edit ChatWindow.xml

Discussion in 'UO Enhanced Client Discussion' started by Nalif, Jan 14, 2011.

  1. Nalif

    Nalif Journeyman
    Stratics Veteran

    Joined:
    Nov 30, 2006
    Messages:
    131
    Likes Received:
    0
    I'm probably doing something wrong, but for some reason, no matter what I change in ChatWindow.xml, nothing changes...I've even tried erasing the file contents and putting nothing but gibberish, but chat still loads and works fine! The file I'm working on is:

    ..\UO_ChatWindow\Source\ChatWindow.xml


    Is this the right file to edit for the chat window? And if so, why does chat still work if I erase it's contents and save it?
     
  2. Pinco

    Pinco UOEC Modder
    Stratics Veteran Stratics Legend

    Joined:
    Jul 25, 2005
    Messages:
    5,673
    Likes Received:
    865
    the folder UO_ChatWindow is a fake, the client doesn't use it. The right one is integrated on the client :(
     
  3. Nalif

    Nalif Journeyman
    Stratics Veteran

    Joined:
    Nov 30, 2006
    Messages:
    131
    Likes Received:
    0
    Wow. So there's no way to re-map the skin for it?
     
  4. Pinco

    Pinco UOEC Modder
    Stratics Veteran Stratics Legend

    Joined:
    Jul 25, 2005
    Messages:
    5,673
    Likes Received:
    865
    nope :(

    you can only edit the default window object style but not re-do the window...
     
  5. Nalif

    Nalif Journeyman
    Stratics Veteran

    Joined:
    Nov 30, 2006
    Messages:
    131
    Likes Received:
    0
    Well that's annoying. I was almost done setting up my skin, and left this as one of the last things to re-work...I guess I'll have to leave that on it's own image...
     
  6. grimiz

    grimiz Seasoned Veteran

    Joined:
    Oct 29, 2014
    Messages:
    308
    Likes Received:
    158
    Has this been fixed in the last 3 years? It would be nice to be able to mod that chat window without being pigeonholed into the existing ui elements...

    I see there is a NewChatWindow.xml - is that going to be implemented soon?
     
  7. Pinco

    Pinco UOEC Modder
    Stratics Veteran Stratics Legend

    Joined:
    Jul 25, 2005
    Messages:
    5,673
    Likes Received:
    865
    the chatwindow still a fake script, the whole system is hardcoded inside the client. The new chat is the one that I designed on my UI, but it will never work on the default window due to a... let's call it... "philosophical" problem.
    Basically it requires a way to save things that the devs don't like and so the new chat is a dead end (at least on the default UI).
     
  8. petemage

    petemage Seasoned Veteran

    Joined:
    Oct 6, 2013
    Messages:
    460
    Likes Received:
    328
    I run a little check on the UI update loop and remove the default ChatWindow as soon as possible:
    Code:
        if ChatWindow ~= nil then
            WindowUnregisterEventHandler("ChatWindow", SystemData.Events.CHAT_ENTER_START)
            WindowUnregisterEventHandler("ChatWindow", SystemData.Events.TEXT_ARRIVED)
            LogDisplayRemoveLog("ChatWindowChatLogDisplay", "Chat")
            DestroyWindow("ChatWindow")
            DestroyWindow("ChatWindowInputTextButton")
         
            Interface.FixedChat = true
        end
    
    From there on you are free to build a new chat window by hooking those two events (CHAT_ENTER_START and TEXT_ARRIVED) yourself.
     

    Attached Files:

    • chat.png
      chat.png
      File size:
      210.4 KB
      Views:
      11
    #8 petemage, Nov 11, 2014
    Last edited: Nov 11, 2014
    grimiz likes this.
  9. grimiz

    grimiz Seasoned Veteran

    Joined:
    Oct 29, 2014
    Messages:
    308
    Likes Received:
    158
    That's a good workaround. Thank you!