*Beta* Unfinished Tech editor.

Darva

Chieftain
Joined
Jun 8, 2004
Messages
27
Updated. Now capable of saving an xml file. It looks properly formatted, but I can't test it. (Long story, no cd-rom drive at the moment, at least the computers working again.) Also, everything is now editable except quote, button, sound, and soundmp.

v .01

* Fixed bugs reported by Conquestador
* Successfully tested loading default civ4techinfos, rewriting it, and loading into Civ4 as a mod without errors.
* Added beginings of visual placement of techs in the grid.


Some options in the menu don't work yet, for the moment just use save as, since plain Save doesn't work yet.

Source is included in the download marked SRC. The program is writen in VB.net 1.0. To install it, just drop the exe where ever you want it, and run it.

Comments are very much appreciated. (even if you just want to make fun of my ham handed code) :D Hopefully i will make progress a bit faster now, as I have repaired my computer and can once again run Civ 4.

Image of tech tree grid:
 

Attachments

How will this thing effect the F6 tech tree? Will all the lines connect properly for prerequisites?

In any case, thanks for working on this, its very much needed.
 
I'll give it a whirl later on. Is this the same one that was previewed in the main C&C 7-10 days ago?

If it works like I hope it works then it will be a boon to us all. ;)
 
Yes it is the same one i posted about previously. And when it is finished, yes it will edit the tech tree. (You already can, you just can't save it yet.)
 
Darva said:
Yes it is the same one i posted about previously. And when it is finished, yes it will edit the tech tree. (You already can, you just can't save it yet.)
As is move about the positions of the techs on a virtual tech tree so you can see what it's going to look like without having to boot up Civ?

That would be awsome...
 
That's something i hope to do eventually. Actually, i need some information for that... How big is the normal tech tree display? How many places verticle by how many places horizontal?
 
So, will there be a possiblity to somehow limit tech trees to make sure that a certain scenario would not have any techonological advance? Kind of crucial, as I see it, but it seems that this is just for techonologies in general.
 
Darva said:
That's something i hope to do eventually. Actually, i need some information for that... How big is the normal tech tree display? How many places verticle by how many places horizontal?
I don't think it's constrained... or if it is the constraints are pretty large.

IIRC the lowest tech is at step 14 in the vertical direction (steps starting from 0 - relating to iGridY), and each takes up about 1.5 steps in height... however, if you were to put a tech below step 15 then the tech-tree would have scroll arrows. The horizontal length is defined by how large the largest iGridX value is. The horizontal steps are quite large so you can't get overlap on them... with a default tech tree.

Unfortuntely with the game being so moddable the relative sizes I've given you will only work on an unmodded tech screen. If somebody wanted to edit CvTechChooser.py and half the distance between steps (redifining iGridX/Y) then they could quite easiy.

Having said that I'm yet to see somebody do something like that, so you're probably pretty safe.
 
Ok, So if i limit it to say 30x30 everything aughta be hunky dorey then. Well, creating a visual representation of the tech tree is a step ahead of where i am now though. I've got writing the actual file out about 80% done, i'll post back when that part is complete.
 
Ok, the only item i have left to add is the ability to modify/write The TerrainTrades element. However, i don't have a complete list of them, or see one in the xml. Can anyone help me with this?

(NM, i'm an idiot.)
 
Well, i see a couple of people have downloaded it.. Does it work? Is the interface ok... etc.
 
Hi Darva, i've tried your editor and the interface is nice but the XML file generated is'nt correct.
After some manual editing i've loaded it in civ4 and it work.
How did you generate the code ? You used some type of XML mapper ?
I would be glad if you continue your work because i think is a good idea.
 
Well, i just used .net's standard xml reader/writer classes, and tried to write the xml as close to the origonal civ4techinfos.xml file as i could. Can you upload a copy of a file the program produced that didn't work, and what it looked like after you fiddled with it to get it to work? I'm a little suprised that it didn't load correctly, since as far as i can tell, my produced .xml matches the schema completely. Ahh well.
 
There is (or at least was) some specific way in which you had to place to techs to get them to work in the tech chooser. You may have to do a few tests to get it right - I seem to remember you had to place them out as if it were a tree, until you got to something that required something you hadn't got yet, and then you went back to the previous branch.

Now if only that last paragraph made sense...
 
Well, unfortunatly, that's gonna have to wait till i either get a new power supply with enough plugs that i can plug my cd-rom back in, or untill a program that we can't talk about here is released for the new patch, so that i can test things as i go. ::Sigh::
 
Thank you Conquestador!! I feel rather stupid now, heh. Fixed both of the bugs you reported, one was just a stupid typo, and the other was due to not paying enough attention to the raw xml. Hopefully the version i just uploaded should fix both of those bugs.
 
Any progress on this?

Techtree looks good. What would be ideal is if you could implement it so that it looked a bit more like the Civ 4 techchooser with arrows and stuff. What would be even more ideal is if you could pick up links to techs from other XML files, and display them on the tree. That might be a bit tricky though...
 
Just a heads up Darva, I sent you an e-mail regarding this program. I've fixed a few rather serious bugs too.
 
Post a file with the bugs you noticed, and i'll update the main release. What's frustrating me right now, and delaying the next version is getting prereq links to show in the tech tree, i've made about 12 attempts, and they all have various problems.
 
Back
Top Bottom