General > Discussion

Help with the modding

<< < (4/6) > >>

cevaralien:
Returning to my initial problem... I'm removing the Starchaser and Dragon aircraft. I removed all information related to both craft from the following files:
- research.ufo
- aircraftmanagement.ufo

But the ufoai console send me the error:

ERROR: 'craft_inter_dragon' not found.

Which files i must modify to remove a craft?

Thanks again!

geever:

--- Quote from: cevaralien on May 21, 2016, 01:32:01 am ---Returning to my initial problem... I'm removing the Starchaser and Dragon aircraft. I removed all information related to both craft from the following files:
- research.ufo
- aircraftmanagement.ufo

But the ufoai console send me the error:

ERROR: 'craft_inter_dragon' not found.

Which files i must modify to remove a craft?

Thanks again!

--- End quote ---

Unfortunately aircrafts are partly hardcoded (there are enums in C++ code referr to these entries. I think was needed for map selection for skirmish and multiplayer or so.).

What if you leave these aircrafts in, but make them never appear in game? (Make them not researchable)
Would it be good enough for you?

-geever

cevaralien:
Done. It works fine! Thanks again, geever.

cevaralien:
Hi again.

I lost my HDD partition table and... well... all my info, including my mod. I`m doing it again, but i have some problems. This one is older, in fact, i post it here before, but, i don`t remember how i fixed it.

The console drops this message:


--- Quote ---ERROR: RS_InitTree: Could not find a valid tech for item laserpistol
--- End quote ---

Again, i deleted all laser weapons from research.ufo, except the base turret and ammo and aircraft laser weapon. I deleted this weapons from all .ufo files of the 0ufo.pk3 file.

Thanks for the help

DarkRain:
Double check:

1. That you aren't mixing modded and unmodded (backup?) files: the game will read all the *.ufo files it can find, not only the ones that came with the game — so move your backups elsewhere.
2. That weapons_laser.ufo is either deleted or empty — if you really removed all handheld laser weapons this file can be removed.

I just tried this here (deleted weapons_laser.ufo and removed the techs from research.ufo and items from equipment.ufo) and it worked fine, so you likely missed removing some entry or file somewhere.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version