Skip to content

Merge TF2IDB and TF2II versions #29

@fakuivan

Description

@fakuivan

This plugin needs to be built for tf2ii and tf2idb separately because of name collisions occurring between some enums named the same way on both of their includes (on tf2idb, on tf2ii). This is just a compiler issue however and could be solved by just modifying the include files, both APIs can run simultaneously in one server.

Some options:

  • Use an intermediate include that redefines names before including them
    #define colliding_name api_colliding_name
    #include <api>
    #undef colliding_name
    #define colliding_name api2_colliding_name
    #include <api2>
    
    This will have to be done for each name that collides, and could break autocompletion on some scripting environments.
  • Patch the files in a precompile step.
  • Fork the repos and fix the issue for good.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions