Modding Research Question

How to place the arrows

As i found out the position of each research HUD button in the research tree is stored in its entity file

Example:

researchWindowLocation
    block 2
    pos [ 1 , 3 ]
ResearchField "NonCombat"

 

But how can i change the position of the arrows that link researches and their preferences together?

Or is this done automaticly if I define a preference for a research project?

 

6,414 views 5 replies
Reply #1 Top

It's done automatically assuming the linking arrow type exists. For example, if you have something in [0,0] and you want to link it to [3,0] it won't draw an arrow for you because there is no arrow that goes 3 down. But if you set it to [0,1] it'll draw you the arrow. There is an image file in the Textures folder I believe that has all the arrow graphics, but I don't remember the name.

As far as I'm aware, you can't actually add any of your own arrow types since ultimately their usage is coded in so even though you could add the image, the game still won't know how to use it.

+1 Loading…
Reply #2 Top

Ok thanks annatar!

I found the texture file with the arrows, and i hoped that i could add some new... :(

It seems there is a lot of hardcoded stuff.  :(

Reply #3 Top

I actually don't mind this one, it forces modders to try and keep the tech trees clean :) I'd rather have it this way than play 'snake' on it :P

Reply #4 Top

Lol good point!

I only want to add a few new researches, so no need for playing snake ;)

 

 

Reply #5 Top

Ahhh damn i wanted an arrow that goes down 2 i guess it dont exist :/