Moar Gamecraft commands!
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031
  1. # ExtraCommands
  2. Proof of concept mod and reference implementation
  3. ## Installation
  4. 1. Patch Gamecraft with [GCIPA](https://git.exmods.org/modtainers/GCIPA).
  5. You should download the latest release and extract it to the Gamecraft folder.
  6. To patch, drag `Gamecraft.exe` onto `IPA.exe`. You will need to redo this step whenever Gamecraft is updated.
  7. 2. Extract the ExtraCommands zip into Gamecraft's `Plugins\` folder (GCIPA should have created this automatically in the previous step). You should see `0Harmony.dll` and `ExtraCommands.dll` in the `Plugins\` folder. If those files are in another folder in `Plugins\` it will not work.
  8. 3. Launch Gamecraft.
  9. You can check the log file `%APPDATA%\..\LocalLow\FreeJam\Gamecraft\Player.log` to confirm.
  10. You should be able to see a message near the top showing how many plugins have been loaded and their names.
  11. ## Development
  12. Interested in adding your own commands?
  13. Clone this repository and create a C# class file in `extracommands\`.
  14. A template command is provided in `ExampleCommandEngine.cs` which you can copy to get started.
  15. It's recommended that you create a symbolic link named `ref` in the root directory of this project linked to the folder containing Gamecraft `.dll` files.
  16. ### Testing
  17. Patch Gamecraft with [GCIPA](#installation).
  18. Create a symbolic link named `ref` in the root directory of this project linked to the folder containing Gamecraft `.dll` files (to resolve dependencies).
  19. Build the solution and copy `bin\Debug\net45\extracommands.dll` and `bin\Debug\net45\0Harmony.dll` into Gamecraft's `Plugins\` folder.
  20. Load a game and try out your command in the command line interface in Gamecraft.
  21. ### External Documentation
  22. More information about the IPlugin and IEnhancedPlugin interface can be found [on the IPA repository](https://github.com/Eusth/IPA).
  23. More information about Harmony can be found [on the Harmony wiki](https://github.com/pardeike/Harmony/wiki).