What files do you need to edit to make new defenses?

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
User avatar
Arreon
Trained
Trained
Posts: 324
Joined: 15 Feb 2009, 05:57

What files do you need to edit to make new defenses?

Post by Arreon »

I realize there's more to edit than just the structures.txt file. There's also research files involved too, and some others. I need to know which files I need to edit in order to make new, buildable defenses. Also, I'm interested in finding a PIE editor or whatever I need to make new graphics (just to try my hand at).

If anyone can help me with these things, I would appreciate it. :)

EDIT: I just realized this thread may be more appropriate for the Mapping/Modding forum. Mods, feel free to move it if you want.
OS: Windows 7 Home Premium 64-bit
Processor: AMD Phenom II X6 1045T (6 CPUs), ~2.7GHz
Memory: 8192MB RAM
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: What files do you need to edit to make new defenses?

Post by Zarel »

Structures:

structures.txt
structureweapons.txt

Making structures researchable:

research/multiplayer/research.txt
research/multiplayer/prresearch.txt
research/multiplayer/resultstructure.txt
User avatar
Arreon
Trained
Trained
Posts: 324
Joined: 15 Feb 2009, 05:57

Re: What files do you need to edit to make new defenses?

Post by Arreon »

I tried adding in a new defense and I got this.

Code: Select all

error   |10:30:47: [strresGetString] Could not find string for id "Emplacement-Rail1"
error   |10:30:47: [strresGetString] Assert in Warzone: ../../../../lib/framework/strres.c:100 (string), last script event: '<none>'
fatal   |10:30:47: [allocateName] Unable to find string resource for Emplacement-Rail1
I don't know what to do with this.
OS: Windows 7 Home Premium 64-bit
Processor: AMD Phenom II X6 1045T (6 CPUs), ~2.7GHz
Memory: 8192MB RAM
User avatar
Black Project
Regular
Regular
Posts: 751
Joined: 04 Apr 2008, 20:53

Re: What files do you need to edit to make new defenses?

Post by Black Project »

You must add the structure name ID in the names.txt, it's located in "messages/strings/"

Example
Emplacement-Rail1 _("Needle Gun Emplacement")
BP
User avatar
Arreon
Trained
Trained
Posts: 324
Joined: 15 Feb 2009, 05:57

Re: What files do you need to edit to make new defenses?

Post by Arreon »

@ BP

I've put the ID in the names.txt and the structure appeared on the debug menu. The only problem is that the Needle Gun is missing. The base is there but the needle gun isn't.

I'm guessing the problem is minor but I can't find the source of it.
OS: Windows 7 Home Premium 64-bit
Processor: AMD Phenom II X6 1045T (6 CPUs), ~2.7GHz
Memory: 8192MB RAM
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: What files do you need to edit to make new defenses?

Post by Zarel »

Did you edit structureweapons.txt correctly?
User avatar
Arreon
Trained
Trained
Posts: 324
Joined: 15 Feb 2009, 05:57

Re: What files do you need to edit to make new defenses?

Post by Arreon »

Zarel wrote:Did you edit structureweapons.txt correctly?
Define "correctly." I'm pretty sure I did everything right so far because no errors popped up. Did I miss anything?

Sorry for the late reply.
OS: Windows 7 Home Premium 64-bit
Processor: AMD Phenom II X6 1045T (6 CPUs), ~2.7GHz
Memory: 8192MB RAM
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: What files do you need to edit to make new defenses?

Post by Zarel »

Well, I'm not sure it actually gives an error message, depending on what you do wrong. The basic idea is that numWeaps in structure.txt should be 1, and there should be a line in structureweapons.txt linking the structure with the weapon.