GithubHelp home page GithubHelp logo

headquarter's Introduction

Downloading the latest server public key

  1. Ensure Guild Wars is running.
  2. Use the following command:
> python tools\dump_key.py

Building Headquarter with CMake

With MSVC

> cmake -B build -G "Visual Studio 14 2015" -A Win32
> cmake --build build

On Debian based system, with ninja

Ensure ninja and cmake are installed.

> sudo apt install ninja-build cmake

Generate the project and compile it.

> cmake -B build -G "Ninja" -DCMAKE_C_COMPILER=clang
> cmake --build build

Running a test plugin

You can familiarize yourself with the project by compiling the client and then running the example plugin "chat".

Assuming you created the cmake build folder at $repo/build, you can run the following command:

> build/code/client/Debug/client.exe build\plugins\chat\Debug\chat.dll -email {email} -password {password} -character "{charname}" -mapid 449

Creating your own plugin

This project unfortunately had very narrow use cases due to being private for most of it's lifetime and especially for the part when I was still actively working on it. Due to that, creating your own plugin might require some fiddling.

Overall, you should always create your own plugin as a new directory in plugins/ and add the new directory in plugins/CMakeLists.txt. This is somewhat a private namespace and should be easy to make any modifications you want without having difficulty pulling the latest changes from my repository.

Any changes in other directory, especially in code/ are likely to create extra works for you, if you ever choose to pull the latest changes. I would recommend to try to upstream any of those changes to this repo.

CMake options

You can customize how to build the project using the following CMake variable. The syntax is simply:

> cmake -B build -DNAME_OF_THE_OPTIONS=VALUE
> cmake -B build -CBUILD_SHARED_LIBS=Off
  • BUILD_SHARED_LIBS:BOOL: Control whether the library are built as shared libs (DLL on Windows) or static libraries.
  • HQ_ENABLE_TESTING:BOOL: Control if the tests program are included in the solution.

headquarter's People

Contributors

reduf avatar 3vcloud avatar alexmacocian avatar dubbleclick avatar riftlurker avatar

Stargazers

Darius Ronkowitz avatar Stephen Clarke-Willson avatar

Watchers

Stephen Clarke-Willson avatar

Forkers

alexmacocian

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.