Development > Newbie Coding

Some basic modding questions

(1/2) > >>

Drovic:
Hello, I just got this game (version 2.3.1) the other day, and I've been having a bit of trouble in the campaign and I decided I'd like to do a bit of editing/modding. I'm reasonably fluent in C, but I honestly have no idea what files to look for/in. I read some stuff about .ufo files, but I wasn't able to find any of them. Now, it's entirely possible that I've missed something totally obvious, as I've been rather sleep-deprived lately, but I was hoping someone could give me some pointers as to what I need to do if I'm interested in modifying the following:
-base, production, and purchase costs
-research times
-production times
-weapon accuracy
soldier stats (This one bugs me the most, I think - it seems silly that the soldiers who are presumably elites from around the world are, when recruited, never even 'competent' in any field save for 'mental'.)

Thanks for any advice you can provide.

DarkRain:
Hi Drovic and welcome to the forums.

Let me stress that cheating is BAD, that said...

I'm assuming you got the official installer, so you probably got several pk3 files in your ufoai/base (ufoai = where you installed the game) directory, those contain the the game data and the one you are looking for IIRC is ufos.pk3, pk3 files are simple zip files so you should be able to extract them with your favourite zip program (might need to rename it to .zip), once that's done you can mod to your heart's content :)

Otherwise (if you got it via git) there should be in ufoai/base/ufos

Some specific files of interest to you:

research.ufo
weapons*.ufo
armour.ufo

In 2.3 the character statistics are hard coded see src/game/inv_shared.c there are several templates defined before CHRSH_CharGenAbilitySkills(), in 2.4 they are scripted in team_templates.ufo (in case you want to try it out -- which I recommend :) )

Duque Atreides:
What program is necessary to mod this files? *.ufo? I try to open it with notepad, but it see strange.

Kildor:
Use any editor understood unix style of line-ends (any other than notepad).

H-Hour:

--- Quote from: Duque Atreides on June 19, 2012, 03:38:51 am ---What program is necessary to mod this files? *.ufo? I try to open it with notepad, but it see strange.

--- End quote ---

A nice simple one is Notepad++.

Navigation

[0] Message Index

[#] Next page

Go to full version