modding a tech researched from start

ok so I modded a little technology researched from start according to CariElf's Doc
and it works to a certain extent ....

here's the code :
< Culture ID="StarFaring" >
< DisplayName >Star Faring< /DisplayName >
< Cost>0< /Cost >
< Description >All the prerequesites to become a star faring race are packed here.< /Description >
< Details >This is the starting tech< /Details >
< Requires >None< /Requires >
< RangeAbility >-200< /RangeAbility >
< Category >Government< /Category >
< Model >stardemoc0
< CultureAbility >-200< /CultureAbility >
< AIValue >3< /AIValue >
< /Culture >

the techs does appear in the list, and is researched from start, the tech list the range & culture modifier
but here stops what is working
your current race, range & culture/influence are not changed at all

any idea ?
6,514 views 5 replies
Reply #1 Top
I found that it works only if I put more than 1, less than 10 or equal in tech cost (don't know exactly which number)
at that time it becomes a standard tech
if researched, bonuses are applied correctly
so I guess this is a sort of bug
Reply #2 Top
It may be like the Xeno Ethics. You may have to actually complete the research on it for it to trigger the bonus. If you give yourself Xeno Ethics at the start you will never be given the choice to select an alignment.

Looks like you might have to keep a cost of at least 1 for it to work correctly.
Reply #3 Top
I don't know if it is important, but your code is buggy.

< Model >stardemoc0
the closing tag < /Model > is missing, but it might be because of this so called "forum".
Reply #4 Top
This line too:
< /Culture >[/code]
Reply #5 Top
thanks moosetek13 & wareagle
I corrected these
the [/code] was an attempt to use a tag that does not exist in this forum it seems

the /culture refers to the first line culture id
the /model I forgot to put spaces between each < > or else the whole word disappear

1 is interpreted as 0 for tech cost

I did retry with 10 and it works but you have to research it
so I did change raceconfig.xml so that everyone has this starting tech
and it works too