So I'm trying to implement the old chat and I'm having some difficulties.
First, the new chat seem to use the "interface\\chattingwnd\\chat_long_tab.ddj" tabs,
as opposed to the old one that supposedly uses chat_tab.ddj or chat_re_tab.ddj from the same interface folder.
Things that I have tried and have not worked:
-Switching the .ddjs inside the Media.pk2 interface folder
-If we go to 007ABA80 and 007ABAAA we see that they use the new chat tabs, both "push 0xDBBEDC"
If I try to create a new address with the ASCII of "interface\\chattingwnd\\chat_re_tab.ddj" or "interface\\chattingwnd\\chat_tab.ddj"
then push both (007ABA80, 007ABAAA) to the new address, then the game will simply not load ANY texture if the Bloom effect is on (the Bloom effect works just fine otherwise).
If I do turn off the bloom effect then the chat turns into:
Such a weird interaction considering that I have those .ddjs inside the right folders so the buttons shouldn't be white?
-Messing around with ifchatviewer and ginterface also led to no results.
-Implementing it in C++ would probably be the way to go, but I only have this snippet of code:
OldChat.hpp:
PHP Code:
#pragma once
#include "GlobalDef.h"
namespace OldChat
{
SROPP_ASM_DECL asmOnChatWndHideShowCreate()
{
//007AD3E4 | 88 9E 8C 04 00 00 | mov byte ptr ds:[esi+48C],bl |d
__asm
{
mov byte ptr ds : [esi + 0x48C], 1
retn
}
}
void Patch()
{
SroPP::detail::MemoryHack::Hook(0x007AD3E4, asmOnChatWndHideShowCreate, 6);
}
}
If we do replace chat_long_tab.ddj with chat_re_tab.ddj or chat_tab.ddj the tabs look almost the same so I think the sro_client.exe controls the size of those.
The height x width of the button is 100x20 which is 64x14. I tried to look for 64 but there are too many results...
Here's a comparison of the old vs the new chat.
-Anyway, I'd love to hear your input and thoughts on this since I'm pretty sure it's way more complex than this (Text size and alignment, lamp and tab alignment, etc). The same goes with the old option interface and old target window as well.
Thank you.






