It's not a secret that OctoPrint so far lacked support for Makerbot printers and their clones (e.g. Flashforge) and that I wasn't going to do anything about that due to various reasons (the most prominent one being no access to a machine to test with, but admittedly also some other reservations). With the arrival of the plugin system in OctoPrint's development branch +Mark Walker took it upon himself to change that and with "GPX" [1] developed a plugin around the "gpx" tool, which converts GCODE to the x3g format used by these printers. Mark has the plugin do this on the fly, basically having it act as a translation layer between OctoPrint itself and the serial port connected to the printer and thus allowing FlashForge and Makerbot printers up until Gen5 (read: Replicator 2 being the last one) to work together with OctoPrint.

Mark himself has it working with his FlashForge Creator Pro running Sailfish 7.7. While the plugin should still be considered alpha stage, he is still looking for feedback and input from other people who dare try it out. The README on the plugin's Github repository [2] (also linked from the plugin repository) contains setup instructions and an overview of current known issues/caveats plus a small roadmap, so be sure to check it out if you want to give this a try.

The plugin requires a very current devel build of OctoPrint (since it depends on a couple of hooks newly introduced) and Linux as underlying operating system.

Big thanks to Mark, this is truly a remarkable use of the still young plugin system!

[1] http://plugins.octoprint.org/plugins/gpx/
[2] https://github.com/markwal/OctoPrint-GPX/blob/master/README.md