Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gesior
Copy link

@gesior gesior commented Dec 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant