User:Dekarl

From Mumble Wiki
Jump to: navigation, search

HackPositionalAudio

minimal plugin development for windows

As you are going to just build a plugin you can get away with just 3 steps instead of dozens.

minimal development environment for windows plugins

  • the current free msvc
  • git
  • checkout of the mumble source (don't need referenced celt sources, etc.)
  • see [BuildingWindows] for details on each step

setup

  • create a solution for your plugin
  • add your plugin.cpp to the project
  • create a project for your test program
  • make sure your test program includes mumbe_plugin.h

the test program

  • load the plugin
  • get debuging privileges (might require some administrative rights)
  • call trylock until it locks
  • call fetch until it fails
  • maybe output some of the values to see if the coordinate system matches (you want east:x+ up:y+ north:z+)
  • loop

standing on others shoulders

  • find a guide about automating the boring parts of your favourite game (there's lots of information about this so called botting/hacking on the interwebs)
  • pick avatar position and heading for starters and add them to the plugin
  • compile, test in your testprogram, if it works, test in mumble

contribute

  • prepare a patch
    • open git bash
    • git add yourplugin.cpp
    • git commit
    • git format-patch master
    • open patch ticket and attach the files 0000-comment.patch
  • prepare a patch for a patch
    • same as above but "git format-patch <hash of your latest patch>"