Jump to content
  • We need you!

    You must register to discover all the features of our community!

Snappy crypt/decrypt source side


Recommended Posts

Posted (edited)

Hello, today is MCSP release date. Have fun.

Some notes, if you like to implement new algorithms:

Open CryptAlgorithms.h and define a new class with new stuff, like I did with LZO and Snappy.

Make sure to modify Crypt.h "enum class CryptationTypes"

 

Last version: Update6

 

https://mega.nz/file/N8MiDYbb#KSB_jDk5oKyyMFi0bdYFeQQFIhH0d220UtLe1ubcddI

 

Oh btw, you need to add Snappy in your Extern.

 

How you may ask?

Download https://github.com/google/snappy

Install https://cmake.org/download/

Use cmake-gui to generate stuff, open snappy.sln and build it in release.

Copy the .h files inside a newly created "snappy" folder in Extern/iniclude

Go to (cmake build folder)/Release and copy your snappy.lib into Extern/lib

If you use the vcpkg method: vcpkg install snappy:x86-windows-static

Ready!

 

 

Edited by arves100
Update6 (see edit history)
  • Love 21

Ripymir(2013)

Link to post

#Updated

#Update as @Karbustpointed out, the tutorial was missing two lines in PythonNonPlayer.cpp and ItemManager.cpp make sure to download the new 7z file that contains the update.

Ripymir(2013)

Link to post
  • 2 months later...

Great system. Is it intended?

GameLib -> ItemManager.cpp

if (!CCrypt::Instance().Decompress(zObj, pbData, CryptationTypes::LZO, s_adwItemProtoKey))

change to 

if (!CCrypt::Instance().Decompress(zObj, pbData, types, s_adwItemProtoKey))

 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Current Donation Goals

  • Activity

    1. 11

      Mysql56 to Mysql8

    2. 0

      Does anyone have Kami-Sama's Contact?

    3. 1

      [Trailer][1/3]NerviL2 The return of the Legend

    4. 0

      Won " price" change

    5. 10

      Inferna - The new "metin3"?

    6. 6

      We need you!

    7. 2

      Highlight system bug

  • Recently Browsing

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.