[Guide] How to mod Corruption of Champions
FlashDevelop (Other Code Editors are available) - http://www.flashdevelop.org/
- This is a program that will allow you to edit the code for CoC and then convert it into a game. Install this.
Adobe Flex SDK - http://www.adobe.com/devnet/flex/flex-sdk-download.html
- There are many coding languages out there. This tells FlashDevelop how to use the one CoC uses.
Corruption of Champions Source Code
Official CoC Source code by Fenoxo - https://github.com/herp-a-derp/Corruption-of-Champions
Revamp Mod by Kitteh6660
<Topic> - https://forum.fenoxo.com/threads/coc-revamp-mod-v1-3-25-for-coc-1-0-2.3/
<Code> - https://github.com/Kitteh6660/Corruption-of-Champions-Mod
Revamp - Xianxia Mod by Ormael
< Topic > - https://forum.fenoxo.com/threads/coc-xianxia-mod-0-7e1-for-coc-1-0-2.2346/
<Code> - https://github.com/Ormael7/Corruption-of-Champions
Revamp - Dragon Mod by Stadler76
<Topic> - https://forum.fenoxo.com/threads/dragon-mod-1-0-1-for-coc-revamp-1-4-dev.3764/
<Code> - https://github.com/Stadler76/Corruption-of-Champions-Mod
No Changing Monster Images Patch by hatternumber0
<Topic> - https://forum.fenoxo.com/threads/patch-no-changing-monster-images.3352/
- Grab a Source code. Things are edited here before being packed into a working game. In the code link, click the Releases tab, download the zip version of your choice and unpack it into a folder. Keep the zip in case something stops working if you edit it and want to reset it.
_ _ _
You will also need the Showdown.as file located here: https://github.com/herp-a-derp/Showdown.as
Download it and save it in the \classes\showdown folder located in the source code.
_ _ _
Open FlashDevelop. In the top toolbar and click Project > Open Project.... Navigate to the folder with the unpacked Source Code and open the file Corruption-of-Champions-FD-STANDALONE.as3proj
In the top toolbar, click Project > Properties.... In the opened window, select the SDK Tab and under Installed SDK(s), click Manage....
In the opened window, click anywhere on the Installed Flex SDKs line, then click the button that shows up on the right of the line consisting of 3 dots.
In the opened window, click the Add button. Then select the new line Path that shows up and click the button that shows up on the right of the line consisting of 3 dots. Select the Flex SDK folder you downloaded earlier.
Click OK / Close until you're back in the Properties window. Select the Output tab and make sure the dropdown under Platform has Flash Player selected.
Under General, in Output file:, Click browse and select a location to save the game when it's finished, as well as making a name for the file. Make sure it ends in .swf.
_ _ _
Don't edit any code yet. Test everything is set up correctly. In the top toolbar and click Project > Test Project. FlashDevelop will hopefully build the game without errors and you'll get the normal CoC main menu. In Test Project, nothing is saved.
_ _ _
Most game text will be in the classes/classes/Scenes folder if you'd like to edit those, with game mechanics and the engine being in the rest.
_ _ _
When you're done changing the code, and Test Project returns with no errors, in the top toolbar, click Project > Build Project. The created .swf file will be saved in the same folder as the Source code as default, or wherever you picked in the Properties window. The produced file is used just like the normal game.
_ _ _
Error: GC overhead limit exceeded
- The program is not assigning enough memory to Java
- In your Flex SDK folder, open \bin\JVM.config. Up the value of the line java.args=-Xmx384m -Dsun.io.useCanonCaches=false to java.args=-Xmx1024m -Dsun.io.useCanonCaches=false
_ _ _
Final Note: If you want to upload your compiled .swf file you've modded, ask for OK's first from any Mod authors whose code you're using as well as from CoC writers if you've edited some of their content. It's respectful.
Last edited: