pvpgn / pvpgn-server

Next generation of PvPGN server
https://pvpgn.pro
GNU General Public License v2.0
555 stars 156 forks source link

about Max Savefile size Help~~ #424

Closed MxCen closed 4 years ago

MxCen commented 4 years ago

Diablo2 about what restrictions pvpgn has on Max Savefile size? Help~~

MxCen commented 4 years ago

`D2dbs-setup: constexpr long kBufferSize = 1024L * 20L;

define kMaxPacketLength (1024 * 5)

D2cs-setup:

define MAX_SAVEFILE_SIZE 32 * 1024`

Are there any other restrictions excluding the above?

RElesgoe commented 4 years ago

d2dbs may write up to 2^16 bytes in a save file. d2cs will only handle save files up to 32 * 1024 bytes long.