Tech Tree

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
User avatar
Tron
Greenhorn
Posts: 7
Joined: 28 Jun 2009, 19:52
Location: right in front of my PC

Re: Tech Tree

Post by Tron »

it starts getting frustrating....

I understood now, that you had to uncheck the "add to wdg" for the unwanted techs in wzck. But after the wzck crashed several times at compiling the .wdg I tried to edit the files manually. Result : no effect :mad;

- I made a copy from the mp.wz and deleted all files but the research.txt
- I opened the research.txt with notepad and decreased for testing the research points of the Fuel Injection Engine :

Code: Select all

   R-Vehicle-Engine01,Level One,IMAGE_RES_GRPUPG,0,IMAGE_RES_DROIDTECH,iceng.pie,0,RES_V_EN1,0,0,0,1200,1,1,1,0,0,0,0,0

Code: Select all

   R-Vehicle-Engine01,Level One,IMAGE_RES_GRPUPG,0,IMAGE_RES_DROIDTECH,iceng.pie,0,RES_V_EN1,0,0,0,120,1,1,1,0,0,0,0,0
- then I zipped the research.txt with the path "\stats\research\multiplayer", renamed it to .wz and put it into the "mods\multiplay" folder
- I start the game with the command line : "D:\Warzone 2100\warzone2100.exe" --mod_mp Test.wz"

but when I start a skirmish or multiplayer, the research time should be around 8 secs, but is as long as usual. I even deleted EVERYTHING but that engine from the research.txt, but ingame all techs have been available. So what am I doing wrong ?? Please have a look at the .wz, I'm going mad that I don't manage that thingy O_o :mad;
You do not have the required permissions to view the files attached to this post.
Thx in advance for your help
Tron

Warzone 2100 2.2.1 - Win XP SP2 - Joybook S73G, 1.5 GB RAM, Ati 1600 Mobility
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Tech Tree

Post by Zarel »

1. It should be "research.txt" (lowercase), not "Research.txt" (uppercase). This does matter.
2. It should be "ShortTime.wz", not "ShortTime.wz.zip"
User avatar
Tron
Greenhorn
Posts: 7
Joined: 28 Jun 2009, 19:52
Location: right in front of my PC

Re: Tech Tree

Post by Tron »

YOU SAVED THE DAY !!!

The lowercase was the problem, don't know how or why it became uppercase ! I just named them .zip for a quicker view, for the game I named them .wz.

thanks a lot mate, now I'll post some tech mods in future :D
User avatar
Tron
Greenhorn
Posts: 7
Joined: 28 Jun 2009, 19:52
Location: right in front of my PC

Re: Tech Tree

Post by Tron »

Hi again,

now I have a little problem with making a .txt : I wrote an Excel macro for importing, editing and exporting the research.txt (might become a replacement for the wzck someday). Works fine so far, but when I start multiplayer the game ctd. I compared my exported research.txt with an original research.txt and can't find any difference in the text, but the files differ for exactly 1 (!) kb. ?
file_diff.jpg
The error log shows this :
info |10:52:33: [SDL_main] mod_mp (Test.wz) is enabled
error |10:52:47: [strresGetString] Could not find string for id "
"error |10:52:47: [strresGetString] Assert in Warzone: strres.c:100 (string), last script event: '<none>'
error |10:52:47: [allocateName] Unable to find string resource for
What does that mean ? I compared the complete text line after line, but can't find any difference. Maybe you can find anything...
You do not have the required permissions to view the files attached to this post.
Thx in advance for your help
Tron

Warzone 2100 2.2.1 - Win XP SP2 - Joybook S73G, 1.5 GB RAM, Ati 1600 Mobility
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Tech Tree

Post by Zarel »

Tron wrote:I compared my exported research.txt with an original research.txt and can't find any difference in the text, but the files differ for exactly 1 (!) kb. ?
That's one byte, not one KB. It's a pretty big difference: One byte is one character; one KB is 1000 characters.
Tron wrote:What does that mean ? I compared the complete text line after line, but can't find any difference. Maybe you can find anything...
Means you have an extra line. Specifically, you have two blank lines at the end; you need exactly one.

(Yeah, the Warzone parser really isn't very forgiving of minor mistakes like this.)
User avatar
Tron
Greenhorn
Posts: 7
Joined: 28 Jun 2009, 19:52
Location: right in front of my PC

Minimal Tech Tree

Post by Tron »

hi,

after hours of programming I'm back with some more anoying questions ;)

I nearly completed a simple tech tree editor, the resulting .txt seem to work. I'll post it when all functions I planned are done. For now I'm interested in the minimal requirements a tech tree mod needs :

in the appended .wz, I deleted everything but the following techs from the research.txt and the prresearch.txt :

_("Construction Unit")
_("Engineering")
_("Fuel Injection Engine")
CAM1DEFENSES
CAM1RESEARCH
CAM1STRUCTURES
CAM1SYSTEMS
CAM1WEAPONS

I put only these two files into a .wz, started the game and it ctd (no surprise). Then I added all the other files from the stats/multiplayer/research folder, but it also ctd. So my questions are :
- what do I need as minimal data for a working tech tree mod ?
- if I delete techs, do I also have to edit the other files (redcomponents.txt, researchfunctions.txt etc.) or does it not matter, if the techs in that files are missing in the research.txt ?
- is it allowed to delete techs from the research.txt at all ? Or does it always have to have the full no. of lines, so that you must not delete techs but make them un-researchable ? This is also important for my tech editor, that you mark a tech as "deleted" but the proggy makes it just unreserchable.
You do not have the required permissions to view the files attached to this post.
Thx in advance for your help
Tron

Warzone 2100 2.2.1 - Win XP SP2 - Joybook S73G, 1.5 GB RAM, Ati 1600 Mobility
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Minimal Tech Tree

Post by Zarel »

Tron wrote: - what do I need as minimal data for a working tech tree mod ?
Zero. research.txt, prresearch.txt, researchstructure.txt, resultstructure.txt, resultcomponent.txt can all be completely blank.

Your problem is that you need to blank all the files. If you just delete them, Warzone will either use the default version in mp.wz or base.wz if it's available (which will crash since they refer to research topics that no longer exist in research.txt), or crash if it isn't.
Tron wrote: - if I delete techs, do I also have to edit the other files (redcomponents.txt, researchfunctions.txt etc.) or does it not matter, if the techs in that files are missing in the research.txt ?
Yes, you have to edit the other files and remove all references to the topics you have deleted.
Tron wrote: - is it allowed to delete techs from the research.txt at all ? Or does it always have to have the full no. of lines, so that you must not delete techs but make them un-researchable ? This is also important for my tech editor, that you mark a tech as "deleted" but the proggy makes it just unreserchable.
You can delete as many techs as you want, as long as you remove all references to them from the other research files.
User avatar
Tron
Greenhorn
Posts: 7
Joined: 28 Jun 2009, 19:52
Location: right in front of my PC

Re: Tech Tree

Post by Tron »

thx,

that info helps a lot ! :D

Edit : sorry, next question : I made with my small editor the appended .wz, works fine for about 20 min., then it ctd. I saved the game just before the crash, and after loading it crashes always after 20 sec. So there must be some issue with the tech tree (of course) and I believe the AI must set it off, because I do no research at this time. Is it possible to see what the ai is just doing / researching ? Would make things much more easier to identify the broken tech.
You do not have the required permissions to view the files attached to this post.
Thx in advance for your help
Tron

Warzone 2100 2.2.1 - Win XP SP2 - Joybook S73G, 1.5 GB RAM, Ati 1600 Mobility
nighthawk
Trained
Trained
Posts: 104
Joined: 31 Jan 2010, 00:36

Re: Tech Tree

Post by nighthawk »

i was looking at your pics and are those things what you are developing or are they a different mod? in any case may i please have them?
"to prepare for disaster is to invite it"-unknown

"The Gravedigger"