manicogaming / CSGOBetterBots

BOTs with some improvemes and other things.
92 stars 23 forks source link

How can I convert the signatures from windows to linux in botinventory.games.txt? #59

Closed tinygrox closed 1 year ago

tinygrox commented 2 years ago
"Games"
{
    "csgo"
    {
        "Signatures"
        {
            // Is the function below the string '#Cstrike_TitlesTXT_Game_afk_bomb_drop' in CCSPlayer:PostThink
            "CCSPlayer::SetRank" // MedalCategory_t category, MedalRank_t rank
            {
                "library"       "server"
                "windows"       "\x55\x8B\xEC\x81\xC1\xD8\x15\x00\x00"
            }
        }
        "Offsets"
        {
            "CGameClient::UpdateAcknowledgedFramecount"
            {
                "windows"       "17"
                "linux"         "55"
            }
        }
    }
}

Hello, I want to run the bot_inventory on my Linux server. In windows, it takes up too many resources and causes huge lag. I beg your help.plz 😢

manicogaming commented 2 years ago

I can try to look for it but you can also ask for it in this thread on the AlliedModders forum.

https://forums.alliedmods.net/showthread.php?t=78309

tinygrox commented 2 years ago

I just found it a few hours ago! 😃 "linux" "\x55\xB9\x04\x00\x00\x00\x89\xE5\x83\xEC\x48\x8B\x55\x0C\x89\x5D\xF4\x8B\x5D\x08\x89\x75\xF8\x89\x7D\xFC\x8D\x7D\x10\x8D\x84\x93\xF0\x15\x00\x00" but now my server keep spaning message like:

[Wearables (server)(536)] Failed to set model for wearable!
[Wearables (server)(121)] Failed to set model for wearable!
[Wearables (server)(164)] Failed to set model for wearable!
[Wearables (server)(275)] Failed to set model for wearable!
[Wearables (server)(155)] Failed to set model for wearable!

I try to complie the _botinventory.sp on my server but I failed! https://github.com/rogeraabbccdd/Kento-Rankme/issues/176#issue-1331064272

I can try to look for it but you can also ask for it in this thread on the AlliedModders forum.

https://forums.alliedmods.net/showthread.php?t=78309

manicogaming commented 2 years ago

Yeah I can't compile my bot_inventory for now as well, we need to wait for an update to Kento's RankMe

tinygrox commented 2 years ago

@manicogaming Then this issue can be close now. Thanks for your reply! 😄 BTW, my server install your _botimporver and it works well under my botprofile.db. But still, I have some questions: Is there any way to make bot more powerful? My friends and I have tested hundreds of games, and we found out it was very afraid of flashbang, even it can back to the flashbang, I mean even it was not affected by the flash, but it was still frozen for a few seconds. and sometimes it was shotting at me, it saw the flashbang, it would immediately stop the attack and turn its back to me. or maybe it just my botprofile make it wrong? botprofile.zip

manicogaming commented 2 years ago

It's not the botprofile.

The BOTs are hardcoded to either turn away from the flashbang or stop until the flashbang effect stops. It's not impossible to change that but I haven't found a good way to change it.