otcv8-dev icon indicating copy to clipboard operation
otcv8-dev copied to clipboard

Client without bot and with VS project to build special safe .exe for players

Open gesior opened this issue 1 year ago • 0 comments

Client without bot and with VS project to build special safe .exe for players. VS project has 2 new build targets:

  • OpenGL_admin
  • DirectX_admin

Only .exe build with "admin" can run with unencrypted files and run with --encrypt parameter. Normal builds OpenGL and DirectX generate .exe for players. With these .exes they can't run with unencrypted files (ex. official OTCv8 files) and they can't run --encrypt to generate own encrypted files. Also Lua functions like g_things.saveDat('Tibia.dat') are disabled in this version, so players can't export any files/images from client.

In normal OTCv8, bot files are not encrypted, so this client won't work with OTCv8 bot files.

Of course it's not 100% safe, but newbie hackers should give up on modification of client.

If you decide to use this version of client, make sure you setup own encryption/decryption key in src/framework/util/crypt.cpp:

// replace "0xABCD1234" with your unique encryption/decryption key values in 2 places in this file (bencrypt/bdecrypt)
    uint32_t const key[4] = {
        (uint32_t)((k >> 32) & 0xABCD1234),
        (uint32_t)(k & 0xABCD1234),
        (uint32_t)(k & 0xABCD1234),
        (uint32_t)(k & 0xABCD1234)
    };

It's in 2 places in this file, replace in both.

gesior avatar Dec 14 '24 16:12 gesior