Tech tree

Other talk that doesn't fit elsewhere.
This is for General Discussion, not General chat.
AndyBobBean
New user
Posts: 3
Joined: 02 Aug 2009, 03:41

Tech tree

Post by AndyBobBean »

Hello, I recently came back to playing warzone 2100 as I do every once and a while.

One of the things that always grated on me a little in the past was the tech tree organization, because if you don't know the sequence of pre-requisites for a piece of technology very well (like me), it can lead to lots of frustrating research jobs in the wrong areas.

Anyway, I wanted to write a small program that allows you to search for a piece of technology by typing its name into a search box and shows you the research sequence to get it (and maybe power cost info etc). From there it could probably save bookmarks/print off results and such. The problem is that I don't have a ready source of info for the tech tree. I've seen the impressive graphical and linear tech tree in the guide section, so I assume there is a database/xml/text file or something that contains the structure. I guess it is probably in the source code files as well, but I couldn't see it when I quickly glanced through. Otherwise I would probably do it 'by hand' eventually, but it would nice if something like what I am after already exists.

If I manage to finish the program quickly and without too much bother, I'll upload it somewhere in case anybody would be interested.

Thanks in advance!
-Andy
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Tech tree

Post by Zarel »

AndyBobBean wrote:Anyway, I wanted to write a small program that allows you to search for a piece of technology by typing its name into a search box and shows you the research sequence to get it (and maybe power cost info etc). From there it could probably save bookmarks/print off results and such. The problem is that I don't have a ready source of info for the tech tree. I've seen the impressive graphical and linear tech tree in the guide section, so I assume there is a database/xml/text file or something that contains the structure. I guess it is probably in the source code files as well, but I couldn't see it when I quickly glanced through. Otherwise I would probably do it 'by hand' eventually, but it would nice if something like what I am after already exists.
If you click on one of the technologies in the graphical or linear tech trees, it'll show you the prerequisites.

If you need to find something, you can use Ctrl+F in your browser while viewing one of those tech trees.

Was that what you were looking for?
AndyBobBean
New user
Posts: 3
Joined: 02 Aug 2009, 03:41

Re: Tech tree

Post by AndyBobBean »

Hi Zarel, that's generally what I've been doing, but I was toying with the idea of writing a program that would run in my screen on my g15 keyboard as its fairly straight forward to program. That way I can do it in-game without task switching.

Of course what I'd really like to do is get some similar functionality into the game code itself as I'm a keen programmer, but I'm not sure my brain can handle programming c# all day for my job then coming home and programming/learning c/c++ with an unfamiliar code base at the moment. Maybe in the future when work is less hectic.

Anyway, is there any simple data source for the tech tree around?
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Tech tree

Post by Zarel »

Tech tree's right here:

http://developer.wz2100.net/browser/bra ... search.txt

Here's all the research data aggregated into a PHP file. It includes the tech tree:

http://guide.wz2100.net/cache/research.inc.txt

(I generate this from the data files, and use this to generate the Guide)

Note that it also uses some unused research topics. If its prereqs are empty, and it's not Machinegun, Engineering, or Sensor Turret, it's not used.
AndyBobBean
New user
Posts: 3
Joined: 02 Aug 2009, 03:41

Re: Tech tree

Post by AndyBobBean »

Wow, both of those look like they'll be perfect, and thanks for the tip about the unused research items. I'll get going then, thanks! :)