OXCE Code Templates
The best way to learn how to mod OXC is by taking someone else mod and tweaking it, the problem with this approach is some mods are extremely complicated and it can be a little intimidating. My goal here is to provide a few simple code snippets that work of OXCE to help new modders get some thing in game quickly to see what they are effects these changes make in the real game.
Please note: i am still a amateur when it comes to the Ruleset side so if you need help with your mod, please check out the following places for help:
OpenXcom Formus:
https://openxcom.org/forum/index.php
UFO PEDIA pages:
https://www.ufopaedia.org/
Discord links:
OXC Discord Server :https://discord.gg/8efWHSE
IDT: Discord Server : https://discord.gg/QGGkax7
Always use the newest version of of OXCE to avoid any errors caused by using a code snippet not supported by your version of OXCE.
Also Final note: When ever adding or removing mods in game, as soon as you go into instant battle, press the RANDOM button to avoid errors.
Please note: i am still a amateur when it comes to the Ruleset side so if you need help with your mod, please check out the following places for help:
OpenXcom Formus:
https://openxcom.org/forum/index.php
UFO PEDIA pages:
https://www.ufopaedia.org/
Discord links:
OXC Discord Server :https://discord.gg/8efWHSE
IDT: Discord Server : https://discord.gg/QGGkax7
Always use the newest version of of OXCE to avoid any errors caused by using a code snippet not supported by your version of OXCE.
Also Final note: When ever adding or removing mods in game, as soon as you go into instant battle, press the RANDOM button to avoid errors.
Mod Structure
The below structure is a simple overview for all following mod code snippets, use this template as the base for your mod and then add in other items as you need them.
mod_template_v.01.zip | |
File Size: | 1234 kb |
File Type: | zip |
Adding New Enemy Units
The below Download is used to add new aliens to your game NOTE: the contents of this file are usually spraed out over several Rulesets as once your mod increase in size is usally easier to merge everything back into the correct naming convention, however for the purpose of learning, this method makes it easier to get new units in game, long story short, once you know what your doing, you should cut and paste each section of this back into the correct locations to allow sanity for anyone else who ever uses your mods or who is helping you with a bug fix :)
new_enermy_unit.zip | |
File Size: | 263 kb |
File Type: | zip |
Adding New UFOs
The below Download is used to add new UFO to your existing game
ufos_template.zip | |
File Size: | 75 kb |
File Type: | zip |
Adding New Player Units
The below Download is used to add new player controlled units to the game
Coming Soon
Adding New Weapons to gameThe below Download is used to add new weapons to game
|
|
V2 - uploaded - 24/10/19
Spawning New Mission ( Terror Mission Style)
The below is a Code Snippet only meaning to use in game you will need to merge into your own mod, reason for this is because its a work in progress one....Most things are commented so it should point you in the right direction.
kittyspawning_example.rul | |
File Size: | 11 kb |
File Type: | rul |