Page 1 of 1
veteran lvl error
Posted: Sun Dec 23, 2018 3:50 pm
by Wahazar
I got following messages in chat window:
Code: Select all
in utype_veteran_level() [../../../../common/unittype.c::1625]: assertion 'vsystem->levels > level' failed.
in base_get_attack_power() [../../../../common/combat.c::436]: assertion 'vlevel != ((void *)0)' failed.
I'm not reporting it, because I'm using custom ruleset, instead I ask for advice, where I should search for bug in ruleset?
Re: veteran lvl error
Posted: Sun Dec 23, 2018 8:47 pm
by Ignatus
Have you set vet.chance to 0 for the top level?
Re: veteran lvl error
Posted: Sun Dec 23, 2018 9:29 pm
by Wahazar
Ignatus wrote:Have you set vet.chance to 0 for the top level?
Not sure I remember what do you mean "for the top level"...
I have unit, which have:
Code: Select all
veteran_names = _("green")
veteran_raise_chance = 0
veteran_work_raise_chance = 0
veteran_power_fact = 100
veteran_move_bonus = 0
but it can fight.
Some other units from this class can be trained in Barrack, but I have
Code: Select all
"UnitClass", "Small Land", "Local", TRUE
"UnitFlag", "NonMil", "Local", FALSE
"UnitFlag", "NoVeteran", "Local", FALSE
in Barrack effect.
Should I define something other?
Re: veteran lvl error
Posted: Sun Dec 23, 2018 10:31 pm
by Ignatus
Wahazar wrote:Ignatus wrote:Have you set vet.chance to 0 for the top level?
Not sure I remember what do you mean "for the top level"...
I mean that
any veteran_raise_chance list in the game must end in 0.
I have unit, which have:
Some other units from this class can be trained in Barrack
You mean other unit type of the same class? Does it have different veteran system? Does the green-only type have explicit NoVeteran flag (to avoid triggering the barracks effect)? Be sure not to have Veteran_Build effect above defined values for any buildable unit type.
Re: veteran lvl error
Posted: Sun Dec 23, 2018 11:15 pm
by Wahazar
Well, I tough that veteran raise chance 0 is enough, there was no "NoVeteran" flag indeed, I will fix it.
But it looks ambiguous and redundant for me.