General Plugin Template
Created by: A_of_s_t
Code snippets by:  Poiuy_qwert, the BWAPI team

Instructions:

1).  This Template is created for use with Bloodshed Dev-C++.  You can download it at: http://www.bloodshed.net/  Install it as usual.

2).  Go to the source folder of the General Plugin Template.  Copy all the files in the folder.

3).  Go to /Dev-cpp/bin/ and paste the files in the folder.

4).  Open "General Project.dev,"  it should have a Dev icon after Dev-C++ installation.

5).  The main file for beginners will be "main.cpp."  It should be available "Project Browser" area.  If the Project Browser area is not available, right click the area above the notepad and select "Project/Class Browser", or go to View->Project/Class Browser.


//The rest of these instructions are for creating a simple plugin
6). Once the main.cpp file is opened, scroll down untill you see:

BOOL __fastcall EnableDebugModeAction(ACTION* action) {
     //Plugin info goes here
     
     
     return true;
     }

7).  Type in: 

resources->playermin[1] = 1000;
resources->playergas[1] = 1000;

8).  Save main.cpp.

9).  Now go back to /Dev-cpp/bin/ and run: "compile.bat"

10).  Open Firegraft or MPQDraft and import "GeneralPlugin.qdp" in the appropriate area.

11).  Run the modification/custom.  You should notice that Player 1 gets 1000 minerals and 1000 gas.

12).  Congratulations!  You have just made your first plugin.

