Jump to content

Recommended Posts

  • Active+ Member

Proto Reading simplification

Why?
I've found that adding types, subtypes and all of that stuff is way too boring, cumbersome and honestly error prone. Therefore I decided rewriting it fully to try and make it simpler and nicer to use, as well as maybe more performant (not guaranteed).

Requirements

Installing requirements (Using vcpkg and CMake)

Run command.

vcpkg install vincentlaucsb-csv-parser

 

Add to the CMakeLists.txt for db (src/db/CMakeLists.txt)

# vincentlaucsb/csv-parser
find_package(unofficial-vincentlaucsb-csv-parser CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE unofficial::vincentlaucsb-csv-parser::csv)

Changes

Please do not fully copy paste the values as your source will probably differ from my own code. I'm also using SPDLPG, you might want to change it's calls to the equivalent sys_ function.

"Name" should be in utf-8 or compatible, otherwise MySQL can have issues updating it

This is the hidden content, please

This code is easily adaptable to both the ProtoDump as well as the Client itself if you wish to reuse .txt files on the client.

Edited by soforyou
Clean up the hide?
  • Metin2 Dev 39
  • Eyes 1
  • Good 4
  • muscle 1
  • Love 19
Link to comment
https://metin2.dev/topic/34061-protoreader-simplification/
Share on other sites

  • Forum Moderator

Great work! This is what this forum and this game aspires to, to be modernized and make use of modern build systems and libraries to ditch most of the homemade and error-prone utils, parsers or methods that are also especially hard to maintain for newcomers (most of the help requests about porting to x64 server I received was about ProtoReader, go figure). Way to go. Well done! 

  • Love 2

Gurgarath
coming soon
My Services

Link to comment
https://metin2.dev/topic/34061-protoreader-simplification/#findComment-172759
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.