![]() |
Tech tree viewer in the works...
...by me http://forum.shrapnelgames.com/images/icons/icon7.gif
shamanblues asked if there is something like this made here, it looks like there wasn't , and there isn't someone already working on it. The idea is too make a program which allows you to view the tech tree like in Civ. Here's what i had in mind, You got your basic window, inside there is one main view, in which the tree is shown, each tech is shown as a button, clicking on it will bring up a new window with information about the tech. The new window will tell you all new components, facilities, and spy ops gained upon completion of this tech. At the moment i'm not sure if one button should represent an entire tech area, or only one lvl in a tech area. ideas/thought? feature requests? oh, about features, i will not make this an editor, just a viewer...at least for now. And all of this will be written in Java. |
Re: Tech tree viewer in the works...
I like the ideas http://forum.shrapnelgames.com/images/icons/icon7.gif .
|
Re: Tech tree viewer in the works...
Quote:
This is going to be a vey complex tree, isn't it? |
Re: Tech tree viewer in the works...
Quote:
Quote:
[ May 22, 2002, 16:12: Message edited by: LemmyM ] |
Re: Tech tree viewer in the works...
i was also thinking about a search function by name, there is a textfield, and you must choose to search for a component, spy op, facility, or tech area, and then the main view would center in the corresponding tech button
|
Re: Tech tree viewer in the works...
I don't know if this helps.
I was able using Word to take the Tech Tree created by, um, was it you? and reduce it to a Tab Delimeted file.. From there I was able to port it to MicroSponge Access. A few preliminary efforts indicated I could do pretty defined searches on just a flat file. I could send you the results or the seriess of macros I used to do the "parsing". I realize not everyone has MicroSponge Access but ... I'm not a programmer but if this helps, please let me know. I will have guest for the next 6 days.. I may still be able to send it or upload it. |
Re: Tech tree viewer in the works...
It wasn't me who created that file.
I'm writing my own parser in Java and store the data in Java classes, figuring out how to connect with acces in Java (if possible) would take too much time. |
Re: Tech tree viewer in the works...
The JDBC/ODBC bridge connects Java to Access fairly quickly. But the better design is to do as you are planning, parse the SEIV files themselves for the data you need that way your techtree will be able to pickup patch changes and probably even mod changes easily.
|
Re: Tech tree viewer in the works...
I was thinking of doing something like this too. One difference is that I am planning to use SVG as the output format. This would allow you to just point at a tech-level node and see in a floating window exactly what became available at that point.
Sound like a good idea? |
Re: Tech tree viewer in the works...
Quote:
Quote:
|
Re: Tech tree viewer in the works...
I'm kinda confused, woudl this tech viewer be for only the "vanilla" mod or for any tech tree? Cool either way though, i have trouble planning my sneaky research schemes when im not at a computer with my game open.
|
Re: Tech tree viewer in the works...
This will be for any mod, all you have to do is specify the mod directory, and it will create graphical tech tree out of it.
|
Re: Tech tree viewer in the works...
Here is a link to a very, very, very simple tech cost program for weapons I wrote Last year sometime:
Download techview 0.13 You tell it where to find the components.txt file, and it tries to read that file and the techarea.txt in the same directory. Except for being pretty unforgiving of errors in those files, it will display the info for the default files or modded files. The program displays a list of weapons on the left and the cost to research each weapon in the family on the right. You can choose low, medium or high tech cost. I always hoped to someday expand this program to show tech costs for all the components but RL got in the way (that and RTCW). [ May 28, 2002, 03:08: Message edited by: raynor ] |
Re: Tech tree viewer in the works...
Excellent program raynor.
I'm trying to find what's the error in my modded files to make it run with them. Any suggestion. What common mistake can be overseen by the game but not by this program? Showing total tech cost of all tech areas should be more like removing a filter not like adding a new feature. |
Re: Tech tree viewer in the works...
Quote:
Quote:
|
Re: Tech tree viewer in the works...
Quote:
It is written in Java, so if you don't have the Java Virtual Machine installed, you would download that too, i think it's not larger than 5 MB's. i also noticed that certain weapons have a double "Weapon Displyay" field, it will cause an error in my program, maybe also in Raynors... |
Re: Tech tree viewer in the works...
No I don't think that the game accepts blank lines in the middle of a component definition or multiple blank lines (or it interpretes that like a premature EOF).
IIRC the double weapon display was a bug in components.txt fixed many patchs ago, the file I'm trying to load (sci-fi x-over mod's) does not have any of those errors. Lemmy I'd like to see your program too. I think that windows or IE install a java vm, so you can expect most Users to have it. |
Re: Tech tree viewer in the works...
|
Re: Tech tree viewer in the works...
Can't get the loader to do anything. It goes Java Main- Bad command and file name, then farts out.. I edited the .ini file, and I think I have Java installed.
EDIT: just downloaded and installed the MS java VM. no effect. Phoenix-D [ May 30, 2002, 04:01: Message edited by: Phoenix-D ] |
Re: Tech tree viewer in the works...
hmm, i know what wrong with that, the MS JVM odesn't have the java command, but "jview", that file is located in the c:\windows dir, so all you have to do is replace "java" with "c:\windows\jview" in the bat file.
(eidt: jview could be somewhere else if you downloaded it, just serach for it then) But then you'll get another error, called java.lang.NoClassDefFoundError, for which i got no solution yet... I suggest downloading the Sun JVM..i can't find the link yet...it's somwhere on java.sun.com, i'll post it when i find it.. [ May 30, 2002, 08:58: Message edited by: Lemmy ] |
Re: Tech tree viewer in the works...
|
Re: Tech tree viewer in the works...
I am getting an error when attempting to use this. Here is the error error1.bmp Here is the line it refers to error2.bmp
|
Re: Tech tree viewer in the works...
Getting the same error, but according to Metapad line 429 is..
"Name := Space Port Description := Facility which processes all generated resources in its system and makes them available for the empire. Facility Group := Resource Extraction Facility Family := 7 Roman Numeral := 0 Restrictions := None Pic Num := 7 Cost Minerals := 6000 Cost Organics := 0 Cost Radioactives := 0 <-- right here Number of Tech Req := 1 Tech Area Req 1 := Cargo Tech Level Req 1 := 1 Number of Abilities := 1 Ability 1 Type := Spaceport Ability 1 Descr := Acts as a spaceport for this system. Ability 1 Val 1 := 0 Ability 1 Val 2 := 0 Ability 2 Type := None" also, tried loading Proportions data. no go, "required tech area greater than max tech area". That's intential in Proportions, but looks like your loader doesn't like the concept. http://forum.shrapnelgames.com/images/icons/icon7.gif Phoenix-D |
Re: Tech tree viewer in the works...
Hey Lemmy,
As an alternative to distributing the app as plain Java consider performing a native compile and distributing it as an exe. I perform win32 native compiles with Excelsior JET. It has a free Version that works quite well. |
Re: Tech tree viewer in the works...
Oh and to answer why the error is occurring. You posted it right below!
Number of Abilities := 1 Ability 1 Type := Spaceport Ability 1 Descr := Acts as a spaceport for this system. Ability 1 Val 1 := 0 Ability 1 Val 2 := 0 Ability 2 Type := None" Note the Number of Abilities says "1". There is a "Ability 2 Type" in there. So technically, the data file has an error in it. Since the parser is very unforgiving, it registers that as an error. Edit: The workaround is of course to remove the "Ability 2 Type := None" line from the facility.txt file. [ May 31, 2002, 01:59: Message edited by: Hank ] |
Re: Tech tree viewer in the works...
Quote:
Quote:
it's true that my program only allows compononts with "real" tech levels reqs...i'll see if i can chabnge that. [ May 31, 2002, 15:00: Message edited by: Lemmy ] |
Re: Tech tree viewer in the works...
Quote:
Geoschmo |
Re: Tech tree viewer in the works...
I haven't seen a reply to my error so I am listing it again.
I am getting an error when attempting to use this. Here is the error error1.bmp Here is the line it refers to error2.bmp |
Re: Tech tree viewer in the works...
Gandalph:
I don't see what's wrong with that particular facility, the error could be somwhere in the previous facility, maybe there's a double line in there, that usually messes the program up... it is weird though...it really shouldn't be able to give that error at that particular line. |
Re: Tech tree viewer in the works...
Gandalph, are you sure you have the right line? Metapad said line 429 in the same file was an entry in the SPACE PORT, not what you posted..and when I changed it got past that file
|
Re: Tech tree viewer in the works...
Phoenix - I used Word to find the line number several times (after I saw your post), perhaps MS is wrong.
[edit] I downloaded Metapad and used it. Got past the first error and am now getting error in line 668 of vehiclesize.txt which is this; Requirement Must Have Bridge := True Requirement Can Have Aux Con := False Requirement Min Life Support := 1 Requirement Min Crew Quarters := 0 Requirement Uses Engines := True Requirement Max Engines := 9 Requirement Pct Fighter Bays := 0 Requirement Pct Colony Mods := 0 Requirement Pct Cargo := 0 <--- line 668 Name := Medium Fighter Short Name := Medium Fighter Description := Code := FM Primary Bitmap Name := FighterMedium Alternate Bitmap Name := FighterMedium Vehicle Type := Fighter [ June 01, 2002, 01:01: Message edited by: Gandalph ] |
Re: Tech tree viewer in the works...
Same problem here. I removed all the units, and it loaded the file successfully.. but it then goes through, loads everything, and doesn't DO anything. Goes to a Pause, and if I press a button the program termintes. Never goes off the pause.
|
Re: Tech tree viewer in the works...
Gandalph:
Is that vehicle size a unit? then it should have 2 more fields called Launched from planet and Launched from ship. Phoenix: It's supposed to do that, it's only the loader of the program i'm working on. So no user interface yet. |
Re: Tech tree viewer in the works...
Quote:
|
Re: Tech tree viewer in the works...
oh..didn't know that...i'll have to change my program then...
|
Re: Tech tree viewer in the works...
i changed the program so that it is no longer necessary to have those two line at the end of each unit size, i haven't added the ability to have higher tech requirements that max yet, that will probably have to wait till next week or so, and i didn't want to keep you waiting to long...
get it here |
Re: Tech tree viewer in the works...
OK, it now goes through without any errors, gets to the end, press any key to finish, then what? I did not see any new file created, so what does it do?
PS - Not trying to sound impatient, just curious. |
Re: Tech tree viewer in the works...
lol...well that's it... http://forum.shrapnelgames.com/images/icons/icon10.gif
it just checks if all the components etc have valid tech requirements... it's only one part of the tech viewer i'm working on. |
Re: Tech tree viewer in the works...
hmm, i just realized how big this tech tree really is, maybe i'll only show the techareas in the viewer, instead of all the levels..
this is a screenshot with only the starting techlevels shown http://planetlemmy.virtualave.net/screen1.JPG |
Re: Tech tree viewer in the works...
Use a JTree!
|
Re: Tech tree viewer in the works...
i don't think that will work, since one techarea can have multiple parents.
|
Re: Tech tree viewer in the works...
well, it could work...but then it won't be what i had in mind
|
Re: Tech tree viewer in the works...
Hey Lemmy,
1st, good work! I'm glad that someone with computer skill is taking this project on. It seems like a big project IMIO (In My not so Informed Opinion). I'm curious though... the full names of the technologies are very long, and so are difficult to get onto one page. Could your program rip the associated picture out of the pics folder instead? Then each tech would represented by basically an icon. Then if the player wants more info, have the hanging "about" window hover over the icon. Hmmm.. actually, does each tech have a picture, or is that each component and facility? Crappy, well maybe have one of the components or facilities mini-pic act as an iconographic representation of the technology? |
Re: Tech tree viewer in the works...
I've been thinking about adding the icons to the buttons, but i don't know how to read bmp files in Java yet, but techs don't have icons, so what i had in mind was showing the full name, and below that all the icons of components and facilities gained upon completion, but then this would make the tree even bigger.
Oh, and i've decided to only show the techareas, and put a number at each line to show what level is required for another techarea.....hmm, am i making any sense here? |
Re: Tech tree viewer in the works...
a new screenshot can be found here
|
Re: Tech tree viewer in the works...
Quote:
|
Re: Tech tree viewer in the works...
Looks super Lemmy!
Wish I had that when I was doing the Shadows AI for the B5 MOD http://forum.shrapnelgames.com/images/icons/icon12.gif |
Re: Tech tree viewer in the works...
Quote:
|
Re: Tech tree viewer in the works...
Wow just checked out the screen shot. Looks pretty cool.
Minor point maybe but shouldn't the tech levels start at number 1 instead of 0?? |
Re: Tech tree viewer in the works...
yeah, it should, but i think in one of the mods that i saw a components with "tech level req := 0", but i can't seem to find it right now.
And IIRC there are also mods which have tech level req > max level, i still have to find a way to store that in my program, and show them in the tree. |
All times are GMT -4. The time now is 01:02 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.