UFO:Alien Invasion

General => User modifications => Topic started by: Latino210 on March 25, 2013, 01:52:45 am

Title: Mods option?
Post by: Latino210 on March 25, 2013, 01:52:45 am
I've just discovered the "Mods" option. Since I am interested in building a new mod, I would like to know how to use it. Can anyone help?
Title: Re: Mods option?
Post by: Mattn on March 25, 2013, 09:49:53 am
i'm trying to collect information about it in the wiki at http://ufoai.org/wiki/Mod

feel free to ask questions and i will extend the article(s).
Title: Re: Mods option?
Post by: Latino210 on March 25, 2013, 02:48:39 pm
All right, I made a "Mod" dir on the ufoAI directory, I made a new directory there with the name of my mod, then I copied the entire "Base" dir on it, deleting the files that I do want to keep from the original ufo (music, textures and some other things). Thanks for your help, as soon as I can set my priorities I will start working on the mod and trying to recruit a coder!
Title: Re: Mods option?
Post by: H-Hour on March 25, 2013, 02:57:46 pm
All of the base files will automatically be loaded, so by copying the files and then deleting the ones you don't want you've actually done nothing. You should work in the opposite fashion: overwrite the files you don't want in your mod with new files, but leaving the rest of the files in the /base/ directory.

This gets more complicated, however, when you talk about music, etc. Overwriting the files will not stop the game from trying to play them. Instead, you should look through the UFO scripts (http://ufoai.org/wiki/UFO-Scripts) to find where the items are referenced, then change this reference to a file you want or remove it where applicable. Not everything is specified via the UFO scripts, but a lot of it is.
Title: Re: Mods option?
Post by: H-Hour on March 25, 2013, 03:01:33 pm
You will also probably find useful the stickied post in this forum on where to find basic things in the UFO scripts (http://ufoai.org/forum/index.php/topic,6780.0.html).