Page 1 of 1

Want to mod Warzone, but where do I begin...?

Posted: 07 Sep 2007, 23:44
by Arcatus
Alright. If I am looking at the wrong places then this whole thread is going to make me look rather stupid. But well, if I can't find the stuff I am looking for I am guessing there are some others out there with the same problems, so hopefully this can be a help to everyone...

First off I want to start with some constructive criticism. I have spent quite some time in various modding communities out there, so some things immedatly hit me:

Where are the stickies? I would expect to find some sort of "getting started sticky" in the modder forum, but there is only one on mapping. Not modding. Why isn't there a modding sticky?

And you have a wiki, and I was kinda glad when I saw that. A wiki is an incredibly good tool. Ofcource; it need to have relevant information. Sadly I didn't find any in this one. Other sections of the wiki seems well documented, but the modder/mapping section seems thrown together and left that way.

I do understand that this site is all about the resurrection, but even I that is quite familliar with both c, c++ and java have no desire to jump into a code and start to mod there. I want to start simple, and when I saw you could just change some .txt files I thought that was perfect as a starting point. If I get some ideas that can no longer be done with .txt changes I might move into the source code, but right now thats just to big for me.

But ok. Over to the questions.

Is there any modder guides? If yes, where are they?

I am tempted to assume no. If there is you need to put it both as a sticky here and on top of the wiki section... But I started searching. That still left me with allot of questions....

I mentioned .txt files. Those where not easy to find. It was just pure chance that I saw that someone mentioned "they are zipped in the .wz file". So I opened it up in a winrar, and there they were. Nice.

I guess I could start editing them, but then what? Do I understand correctly that it has to be in a new .wz file? How is that made? I have yet to find any info on what I do after I edit them.

It also seems that in order to make one change ingame you need to change several .txt files. Without any sort of guide it is going to be allot of work to make sure that all the proper canges as made to all the proper files. It seems that bits and pices of that puzzle is in several different posts on this fourm, so it would be nice to gather that in one place. Right now it is just really confusing...

Aw. That turned out to be a long text that just asks one question. Has there been made any guides?

Re: Want to mod Warzone, but where do I begin...?

Posted: 08 Sep 2007, 01:13
by lav_coyote25
read the old documents project...all of it.... will give you something to go by untill the new stuff comes out.... as most of it is still usable.  also i am still working on updating ...  so if you (or anyone ) can contribute to the documentation... your help is appreciated. ;D

Re: Want to mod Warzone, but where do I begin...?

Posted: 08 Sep 2007, 10:28
by Watermelon
Arcatus wrote: Alright. If I am looking at the wrong places then this whole thread is going to make me look rather stupid. But well, if I can't find the stuff I am looking for I am guessing there are some others out there with the same problems, so hopefully this can be a help to everyone...

First off I want to start with some constructive criticism. I have spent quite some time in various modding communities out there, so some things immedatly hit me:

Where are the stickies? I would expect to find some sort of "getting started sticky" in the modder forum, but there is only one on mapping. Not modding. Why isn't there a modding sticky?
I think the sub-forums need to be specialized,e.g:
Modding
-Modding general(share mod and discuss)
-Modding help(solves problems encountered during modding)
-Modding tools(tools to improve modding speed etc)
And you have a wiki, and I was kinda glad when I saw that. A wiki is an incredibly good tool. Ofcource; it need to have relevant information. Sadly I didn't find any in this one. Other sections of the wiki seems well documented, but the modder/mapping section seems thrown together and left that way.

I do understand that this site is all about the resurrection, but even I that is quite familliar with both c, c++ and java have no desire to jump into a code and start to mod there. I want to start simple, and when I saw you could just change some .txt files I thought that was perfect as a starting point. If I get some ideas that can no longer be done with .txt changes I might move into the source code, but right now thats just to big for me.

But ok. Over to the questions.

Is there any modder guides? If yes, where are they?

I am tempted to assume no. If there is you need to put it both as a sticky here and on top of the wiki section... But I started searching. That still left me with allot of questions....

I mentioned .txt files. Those where not easy to find. It was just pure chance that I saw that someone mentioned "they are zipped in the .wz file". So I opened it up in a winrar, and there they were. Nice.

I guess I could start editing them, but then what? Do I understand correctly that it has to be in a new .wz file? How is that made? I have yet to find any info on what I do after I edit them.
1.extract the folders that contain files require modification in .wz to warzone\(warzone.wz is for sp campaign, so the normally you need the mp.wz one)
2.edit files in extracted folders
3.run the game to test the change(the ones in folders will 'override' the ones in .wz on the fly in run time)
4.archive the folders contain modded files as zip(rar wont work) and rename its extension to '.wz'
It also seems that in order to make one change ingame you need to change several .txt files. Without any sort of guide it is going to be allot of work to make sure that all the proper canges as made to all the proper files. It seems that bits and pices of that puzzle is in several different posts on this fourm, so it would be nice to gather that in one place. Right now it is just really confusing...

Aw. That turned out to be a long text that just asks one question. Has there been made any guides?
templates.txt(number of weapons on template X) assignweapons.txt(assign each weapons for template X)
structures.txt(number of weapons on structure X) assignstructweaps.txt(assign each weapons for structure X)

research.txt(number of prerequisites,number of result,result type)
-prresearch.txt(define prerequisite)
-resultcomponent.txt(define component results)
-resultstructure.txt(define structure results)

Tools to make understanding/modifying csv less of a headache, only works with svn data:
index.php?topic=889.0

Re: Want to mod Warzone, but where do I begin...?

Posted: 08 Sep 2007, 17:30
by Arcatus
lav_coyote25 wrote: read the old documents project...all of it.... will give you something to go by untill the new stuff comes out.... as most of it is still usable.  also i am still working on updating ...  so if you (or anyone ) can contribute to the documentation... your help is appreciated. ;D
Neat. Especially this page caught my eye: http://docs.wz2100.net/utilities/notyet.html.
And, yea, once I figure this out I will defiantly do some writing, but I think that will go into the wiki...
And what do you think of a partially merge between the documentation and the wiki? All the info that is useable when working on the "ressurection" version could be moved to the wiki...

And what is this "new stuff" you talk about?

Watermelon wrote: I think the sub-forums need to be specialized,e.g:
Modding
-Modding general(share mod and discuss)
-Modding help(solves problems encountered during modding)
-Modding tools(tools to improve modding speed etc)
Yea, some redesigning of the formums seems like a good idea, but dividing it into 3 sections is a bit big. It's not that many here. You can come a long way with some good stickies.
1.extract the folders that contain files require modification in .wz to warzone\(warzone.wz is for sp campaign, so the normally you need the mp.wz one)
2.edit files in extracted folders
3.run the game to test the change(the ones in folders will 'override' the ones in .wz on the fly in run time)
4.archive the folders contain modded files as zip(rar wont work) and rename its extension to '.wz'
Allright! Just those four lines are incredibly helpful. They need to go into a sticky.
templates.txt(number of weapons on template X) assignweapons.txt(assign each weapons for template X)
structures.txt(number of weapons on structure X) assignstructweaps.txt(assign each weapons for structure X)

research.txt(number of prerequisites,number of result,result type)
-prresearch.txt(define prerequisite)
-resultcomponent.txt(define component results)
-resultstructure.txt(define structure results)

Tools to make understanding/modifying csv less of a headache, only works with svn data:
index.php?topic=889.0
:o Okay. The next move for me now is to move into the .txt files and start experimenting...

//edit: I am making some progress, but you say that the folders will overwrite the .wz file ingame, but i have to rename (or remove) the mp.wz file to let let the changes I make show up ingame. I have the stats folder in the same folder as the warzone2100.exe - that is the right place right?

//edit2: I've made my first mod! A complete tech-tree overhaul (made by modifying prresearch.txt), so the only weapons left are the various machinegunn types. It works wery well... for the player. But. It seems the AI is still able to resarch and build whatever he wants. Is the AI-techtree hardcoded or something?