jdmclark/gorc — pull request #1 by shinyquagsire23 (2014-08-28 02:32:45+00:00)
Title: Added initial alt engine support (Mots, SWDW, etc). Added proper loading directories for DroidWorks. 

At the moment it's very buggy and inventory loading is nulled out for any game other than JK:DF2. For the most part though it seems that the issues with porting gorc to work with alternate engines like the ones used in Star Wars: DroidWorks is the addition of more verbs in the gorc compiler, changes in loading (ie inventories swap a few things around) and other things. For the most part it seems that DroidWorks is very similar to DF2 in structure, but has a few differences in loading directories and a few more things in regards to how models are loaded due to the drag-n-drop nature of the robot building (ie arms, legs, and all other models are completely separate, even for NPCs).

So far the only maps that are working are moisture.jkl, factory.jkl, and deployment.jkl. All other maps crash due to unknown reasons. It should also be noted that the game defaults the character as a storage box since, under normal conditions, you build your droids, so the model parsing is overridden by the engine.

Aside from the additions to allow the loading of DroidWorks data, no regressions in terms of DF2 loading were made and the diffs are somewhat clean. HUD rendering still needs to be done and is nulled out for DroidWorks only. Criticism on the alt-engine checking is welcome. :)