vSRO Old Chat Interface

01/11/2024 00:08 Judgelemental#1
Hi,

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"
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]
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:
[Only registered and activated users can see links. Click Here To Register...]

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(0x007AD3E4asmOnChatWndHideShowCreate6);
    }

Important:
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.

[Only registered and activated users can see links. Click Here To Register...]

-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.
01/16/2024 12:27 ZeonNETWORK#2
The only challenge here was disabling the academy lamp
Since i were using dev-kit
It was only commenting some parts of IFChat
But still can't decrease the array of tabs
That's why the lamp was there so only remove it from the .txt haha
01/16/2024 15:51 Judgelemental#3
Quote:
Originally Posted by ZeonNETWORK View Post
The only challenge here was disabling the academy lamp
Since i were using dev-kit
It was only commenting some parts of IFChat
But still can't decrease the array of tabs
That's why the lamp was there so only remove it from the .txt haha
The size of the tabs and the positioning of them, as well as the size of the text and the positioning of it are all inside sro_client.exe.