Tech Tree Arrows Messed Up

Ryoken

Chieftain
Joined
Aug 12, 2005
Messages
29
I have modified the technology XML file to mod the prerequisites and positions of the technologies in the tech tree. When I load the game, the arrows dont match the new tech arrangement and it looks terrible. Here is a screenshot.

techtree9wx.jpg


What needs to be edited to fix this. The assets/python/screens python files appear to be drawing this screen and there is a drawArrows function in CvTechChooser but this appears to be the logic of drawing the arrows.

Do I need to somehow trigger a "redrawing" of this logic, or do I need to change the code of this section? How can I fix this problem?

Thanks in advance
 
The Arrows are just a picture, not dynamically generated by the game. I know this because some other games do the same thing. You need to locate the image that has the arrows in it.
 
No, you are wrong. I have done more research.

The file assets\python\screens\CvTechChooser.py is clearly drawing the arrows. It must not be drawing it because some variable is set to bypass the process.

Can someone who knows python better than me please interpret the function: def drawArrows (self): for me?
 
I don't see any errors with the arrows are being drawn, but I do see a problem with HOW they're being drawn. First and foremost, it looks like you need to move your techs around to more appropriate positions. This can be done by changing these values for each tech:
<iGridX></iGridX> and <iGridY></iGridY>
Think of it this way: (0,0) gives you the upper left corner. Fishing is (1,1), so, using the upper left corner of fishing, you should be able to draw a "box" telling you exactly where you need to put them, using those reference points.

The function is doing it's job right, it's just not doing it the way that you'd like. So, if you do this, it should be fixed.

If moving your techs around doesn't work and all else fails, I'd suggest disabling this function, see what happens when you load it up, and, if blank, hand drawing in your own arrows (too lazy at the moment to say exactly which file would need it).
 
The function appears to be retrieving the coordinates from the XML technologies file; which I did change. And I did change the coordinates there to the new positions I wanted. The function that draws the boxes in the right place appears to be working perfectly.

I hadnt thought about shutting down the function though, hrm. I have also been looking at the ScreenUtils files, something fishy here.
 
Back
Top Bottom