Вопрос Weave dt on supremacy

Начинающий
Статус
Оффлайн
Регистрация
10 Апр 2023
Сообщения
77
Реакции[?]
2
Поинты[?]
2K
does somebody know how to fix weave's dt on supremacy? It crashed because GetUserCMD(g_cl.m_cmd->m_command_number + 1), usercmd being null.
 
ЧВК EB_LAN
Эксперт
Статус
Оффлайн
Регистрация
26 Янв 2021
Сообщения
1,553
Реакции[?]
519
Поинты[?]
189K
does somebody know how to fix weave's dt on supremacy? It crashed because GetUserCMD(g_cl.m_cmd->m_command_number + 1), usercmd being null.
idk just make this proper checks
C++:
if (g_cl) {
    if (g_cl.m_cmd) {
        GetUserCMD(g_cl.m_cmd->m_command_number + 1)
    }
}
if it crashing too, throw GetUserCMD source
 
Начинающий
Статус
Оффлайн
Регистрация
10 Апр 2023
Сообщения
77
Реакции[?]
2
Поинты[?]
2K
idk just make this proper checks
C++:
if (g_cl) {
    if (g_cl.m_cmd) {
        GetUserCMD(g_cl.m_cmd->m_command_number + 1)
    }
}
if it crashing too, throw GetUserCMD source
C++:
    __forceinline CUserCmd* GetUserCmd( int sequence_number ) {
        return util::get_method< CUserCmd*( __thiscall* )( decltype( this ), int, int ) >( this, GETUSERCMD )( this, -1, sequence_number );
    }


CRASH HERE:
            auto next_command_number = g_cl.m_cmd->m_command_number + 1;
            auto user_cmd = g_csgo.m_input->GetUserCmd( next_command_number );

            memcpy( user_cmd, g_cl.m_cmd, sizeof( CUserCmd ) );
            user_cmd->m_command_number = next_command_number;
 
Keep Ev0lving, Stay Fatal
Эксперт
Статус
Оффлайн
Регистрация
6 Фев 2018
Сообщения
1,550
Реакции[?]
585
Поинты[?]
101K
C++:
    __forceinline CUserCmd* GetUserCmd( int sequence_number ) {
        return util::get_method< CUserCmd*( __thiscall* )( decltype( this ), int, int ) >( this, GETUSERCMD )( this, -1, sequence_number );
    }


CRASH HERE:
            auto next_command_number = g_cl.m_cmd->m_command_number + 1;
            auto user_cmd = g_csgo.m_input->GetUserCmd( next_command_number );

            memcpy( user_cmd, g_cl.m_cmd, sizeof( CUserCmd ) );
            user_cmd->m_command_number = next_command_number;
1. Are you sure, that your GETUSERCMD index is right?
2. Maybe, your input class is outdated (If you are porting shit from legacy to live CS:GO).
 
Начинающий
Статус
Оффлайн
Регистрация
10 Апр 2023
Сообщения
77
Реакции[?]
2
Поинты[?]
2K
1. Are you sure, that your GETUSERCMD index is right?
2. Maybe, your input class is outdated (If you are porting shit from legacy to live CS:GO).
I don't think it's about getusercmd. where the crash is, next_command_number is set to -(random numbers) even tho command number was 3k when i debugged it.
 
Похожие темы
Сверху Снизу