/D2.ProtocolBuilder

A protocol builder for dofus 2.0

Primary LanguageSmarty

Dofus Protocol Builder

protocol dofus 2.0 builder using js to output

  • Parse dofus invoker into all the required files to make dofus protocol (warning jerakine files ignored)
  • Convert and compile AS files into a module for node.js (work with bytearray-node )

Extract Files

First you need to extract some AS files (around 1500) from the dofus Invoker on your computer

Extract files from dofus invoker :

npm run-script extract || node index.js -c "extract"

By default the script take C:/Users/${user}/AppData/Local/Ankama/zaap/dofus/DofusInvoker.swf as path

And outuput the content in ./tmp/protocol/as/

See constants.js for more details

Build JS Files

For the second step we need to parse and convert the AS files into javascript files

Convert AS files to JS files :

npm run-script build || node index.js -c "build"

By default the script will output files in./tmp/protocol/js/

See constants.js for more details

Compile JS into one file

For the third step with need to do is merging all JS files into one (more easier to use)

Merge JS files into one :

npm run-script compile || node index.js -c "compile"

By default the script will output file as ./build/protocol.js

See constants.js for more details