It would be a good idea to sticky a thread with more complete set of tutorials for modding UFO: Aftershock.
A single place where a new UFO modder can find out HOW to do things instead of searching through the whole forums and not finding half of the stuff he wants to know.
SECTIONS:
VFS tool
Allready explained nicely in ShadoWarrior's Guide to Modding Aftershock for Beginners
Take the time to read it as it includes details on what programs to use and which files you need to look at for modding.
Adding a weapon
Simple, what files have to be edited, what lines does what. Step by step instructions on how to add a new weapon/armor/device. Just follow the link below to the new textured model tutorial. It's even far simpler than that one. Just look for steps in which Automag V appears and those are the only ones you have to do - so that would be:
- copying and pasting another weapon from equipment.txt and editing it, paying attention to the ID number and increassing hte top array number
- adding that itme into research_item.txt and again, checking the array number.
- adding a new description and again, checking the array number.
Making a new texture
How to make a "new" model by chaning textures and adding it to the game. Tutorial here on both armor and weapons: WEAPON AND ARMOR TUTORIAL
Editing mine income, experience
First, you'll have to extract gamedata.vfs using vfs tool. Extract it to a directory called Gamedata.
Now copy Gamedata/Data/Share/Config/constant.txt to a new folder you created. Keep the directory structure the same (example - MyMod/Share/Configs/constant.txt )
Open the file in a text editor.
you will see a list of setting for different difficulties - Total resources, Enemy Damage, Friendly Damage, Mining, Basic Resourcce Yield, Research, Production, Experience and Visibility.
Aside from the Basic Resource Yield and Total Resources all FLT values are modifiers.
Let's take a look at some of the entires:
SubConstant RECORD <----- Begining of Veteran Mining Setting
id INT 12 <----- Identifier. Do not touch
name STR "Veteran Mining" <----- setting name
value FLT 1.5 <----- setting modifier (value to edit)
END_OF_SubConstant <------ end of Veteran Mining Setting
SubConstant RECORD
id INT 13
name STR "Superhero Mining"
value FLT 1.0
END_OF_SubConstant
As you notice, each difficulty setting has it's own modifier. Modifiers work in conjuction with the basic value. In this file we have the basic value for the Resource Yield.
SubConstant RECORD
id INT 14
name STR "Basic resource yield"
value FLT 30 <---------- how much each mines gives (average)
END_OF_SubConstant
I've put the value 30 for the mines (standard is 22), so each mine will roughly give 30 units of resource a hour (give or take a few units, this is randomized).
RESOURCE UNITS PER HOUR = BASIC RESOURCE YIELD * DIFFICULTY MODIFIER
On a veteran setting a mine with 30 units would give you 30*1.5 = 45 units of resource per hour. On superhero it will give you 30.
In this file you can also edit experience, enemy/friendly damage and similar settings. They contain only modifiers.
With this you can change how fast your troops gather experience, how fast you reseach things and so on.
SubConstant RECORD
id INT 16
name STR "Soldier Research"
value FLT 0.9 <--------------- bigger is better
END_OF_SubConstant
Again a simple modifier calculation.
A value of 0.5 means it will take you twice as long to research things on soldier setting as compared to what a normal research speed is (which doesn't have a basic value, but rather depends on the research power of your buildings/labs)
for Experience, Research, Production and Enemy Damage bigger = better.
for Friendly damage and visibility smaller = better.
Other stuff
------------------------------------------------------------------------------------
In adition, since most mods edit the equipment.txt file, and two mods editing it will conflict, it would also be a good idea to make a Ultimate Equipment Mod in a SVN like fashion.
In other words, to have a place where everyone can upload and download his work, and where the latest version of hte mod can be found with the latest addition.
Basicly you have a webspace that everyone can acess where everyone puth his own files in separate folders and then someone (ShadowWarrior, Me or someone else) every week or so compiles a new UltimateEquipmentMod.vfs with all the additions.
